/*
Theme Name: Plus UI WordPress
Theme URI: https://example.com/plus-ui
Author: Custom Conversion
Version: 3.2.0
Description: Fully functional Plus UI theme ported from Blogger XML to WordPress with responsive design and Dark Mode support.
*/

/* Font Imports */
@font-face {
  font-family: 'Google Sans Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Google Sans Text'), url(https://fonts.gstatic.com/s/googlesanstext/v16/5aUu9-KzpRiLCAt4Unrc-xIKmCU5qEp2iw.woff2) format('woff2');
}
@font-face {
  font-family: 'Google Sans Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Google Sans Text'), url(https://fonts.gstatic.com/s/googlesanstext/v16/5aUp9-KzpRiLCAt4Unrc-xIKmCU5oPFTnmhjtg.woff2) format('woff2');
}

:root {
  --font-body: 'Google Sans Text', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bg-color: #ffffff;
  --text-color: #202124;
  --card-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --primary-color: #1a73e8;
  --secondary-text: #5f6368;
}

[data-theme='dark'] {
  --bg-color: #121212;
  --text-color: #e8eaed;
  --card-bg: #1e1e1e;
  --border-color: #333333;
  --primary-color: #8ab4f8;
  --secondary-text: #9aa0a6;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}
.site-title a {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.main-navigation a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}
.main-navigation a:hover {
  color: var(--primary-color);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
}

/* Main Layout Grid */
.main-layout {
  display: grid;
  grid-template-columns: 2.8fr 1.2fr;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 40px;
}

@media (max-width: 850px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* Post Cards */
.post-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}
.post-card .post-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}
.post-title {
  margin: 0 0 10px 0;
  font-size: 22px;
}
.post-title a {
  color: var(--text-color);
  text-decoration: none;
}
.post-title a:hover {
  color: var(--primary-color);
}
.post-meta {
  font-size: 14px;
  color: var(--secondary-text);
  margin-bottom: 12px;
}
.post-excerpt {
  color: var(--text-color);
}

/* Single Post */
.single-post {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.single-post h1.post-title {
  font-size: 30px;
  margin-bottom: 15px;
}
.post-content {
  margin-top: 20px;
  line-height: 1.8;
}

/* Sidebar */
.sidebar .widget {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.sidebar .widget-title {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  color: var(--secondary-text);
  margin-top: 40px;
}