:root {
  --bg-color: #fdfdfd;
  --surface-color: #ffffff;
  --text-main: #202124;
  --text-muted: #5f6368;
  --border-color: #e0e0e0;
  --input-bg: #f8f9fa;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --bg-color: #121212;
  --surface-color: #1e1e1e;
  --text-main: #e8eaed;
  --text-muted: #9aa0a6;
  --border-color: #3c4043;
  --input-bg: #2d2d2d;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

:root, .theme-hub, .theme-photo {
  --accent-color: #4285f4;
  --accent-hover: #3367d6;
  --accent-light: #e8f0fe;
}
[data-theme="dark"] .theme-photo { --accent-light: #1f3762; }

.theme-music {
  --accent-color: #b51200;
  --accent-hover: #900e00;
  --accent-light: #fce8e6;
}
[data-theme="dark"] .theme-music { --accent-light: #521814; }

.theme-moto {
  --accent-color: #0b8043;
  --accent-hover: #096a37;
  --accent-light: #e6f4ea;
}
[data-theme="dark"] .theme-moto { --accent-light: #113822; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
  flex: 1;
  box-sizing: border-box;
  width: 100%;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.site-logo {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-color);
}

.theme-toggle-btn {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-family: 'Roboto', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.theme-toggle-btn:hover {
  background: var(--border-color);
}

.header-banner {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background-color: var(--border-color);
}

.header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  padding: 30px 20px;
  color: #ffffff;
}

.header-overlay h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 32px;
  margin: 0;
}

.search-container {
  margin-bottom: 25px;
}

.search-input {
  width: 100%;
  padding: 12px 18px;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-sizing: border-box;
  background-color: var(--input-bg);
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.grid-layout, .tikaei-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.card, .tikaei-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 5px solid var(--accent-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.card:hover, .tikaei-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-img-wrapper, .tikaei-img-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background-color: var(--input-bg);
}

.card-img, .tikaei-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img, .tikaei-card:hover .tikaei-img {
  transform: scale(1.05);
}

.card-body, .tikaei-card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.card-date, .tikaei-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-title, .tikaei-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px 0;
  color: var(--text-main);
  line-height: 1.3;
}

.card-snippet, .tikaei-snippet {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-btn, .tikaei-readmore {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tikaei-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: var(--accent-light);
  color: var(--accent-color);
}

.site-footer {
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}
