/*
Theme Name: Инвестодром
Theme URI: https://investodrom.com
Author: Инвестодром
Description: Custom theme for Инвестодром - финансовый блог
Version: 1.0
*/

/* ===== VARIABLES ===== */
:root {
  --navy: #1a2744;
  --navy-light: #243460;
  --green: #2d7a3a;
  --green-light: #3a9e4a;
  --green-pale: #e8f5ea;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-400: #adb5bd;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --white: #ffffff;
  --font-heading: 'Georgia', serif;
  --font-body: 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1100px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(26,39,68,0.08);
  --shadow-hover: 0 6px 24px rgba(26,39,68,0.14);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-light); }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.site-content { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding: 48px 0; }
@media (max-width: 768px) { .site-content { grid-template-columns: 1fr; } }

/* ===== HEADER ===== */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.site-logo img { height: 44px; width: auto; }
.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}
.site-logo .logo-text span { color: #4ade80; }
.main-nav ul { list-style: none; display: flex; gap: 8px; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.main-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; border-radius: 2px; }
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy); padding: 16px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 64px 0;
  color: white;
  text-align: center;
}
.hero h1 { font-family: var(--font-heading); font-size: 42px; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.hero h1 span { color: #4ade80; }
.hero p { font-size: 18px; color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 32px; }
.hero-tagline {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.3);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* ===== ARTICLE CARDS ===== */
.posts-grid { display: flex; flex-direction: column; gap: 28px; }
.post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--green-pale); }
.post-card-image { height: 200px; background: var(--gray-100); overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-image img { transform: scale(1.03); }
.post-card-body { padding: 24px; }
.post-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-pale);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.post-card h2 { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.35; }
.post-card h2 a { color: inherit; }
.post-card h2 a:hover { color: var(--green); }
.post-card p { font-size: 15px; color: var(--gray-600); line-height: 1.65; margin-bottom: 16px; }
.post-meta { font-size: 12px; color: var(--gray-400); display: flex; align-items: center; gap: 12px; }
.post-meta span::before { content: '·'; margin-right: 12px; }
.post-meta span:first-child::before { content: ''; margin-right: 0; }
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-top: 12px;
}
.read-more::after { content: '→'; transition: transform 0.2s; }
.read-more:hover::after { transform: translateX(4px); }

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.widget-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  padding: 14px 20px;
  letter-spacing: 0.5px;
}
.widget-content { padding: 20px; }
.newsletter-widget { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: white; padding: 24px; text-align: center; }
.newsletter-widget h3 { font-family: var(--font-heading); font-size: 18px; margin-bottom: 8px; }
.newsletter-widget p { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 16px; }
.newsletter-widget input {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 10px;
}
.newsletter-widget button {
  width: 100%;
  padding: 10px 14px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-widget button:hover { background: var(--green-light); }
.recent-post-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-item .thumb { width: 60px; height: 60px; background: var(--gray-100); border-radius: 6px; flex-shrink: 0; overflow: hidden; }
.recent-post-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-item h4 { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.4; margin-bottom: 4px; }
.recent-post-item h4 a { color: inherit; }
.recent-post-item h4 a:hover { color: var(--green); }
.recent-post-item span { font-size: 11px; color: var(--gray-400); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 12px;
  color: var(--navy);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}
.tag-cloud a:hover { background: var(--green-pale); border-color: var(--green); color: var(--green); }

/* ===== SINGLE POST ===== */
.single-post-header { background: var(--navy); padding: 48px 0; color: white; }
.single-post-header .post-category { margin-bottom: 16px; }
.single-post-header h1 { font-family: var(--font-heading); font-size: 36px; font-weight: 700; line-height: 1.25; max-width: 700px; }
.single-post-header .post-meta { color: rgba(255,255,255,0.6); margin-top: 16px; }
.post-content { max-width: 720px; }
.post-content h2 { font-family: var(--font-heading); font-size: 26px; color: var(--navy); margin: 36px 0 14px; }
.post-content h3 { font-family: var(--font-heading); font-size: 20px; color: var(--navy); margin: 28px 0 10px; }
.post-content p { margin-bottom: 20px; line-height: 1.8; }
.post-content ul, .post-content ol { margin: 0 0 20px 24px; }
.post-content li { margin-bottom: 8px; line-height: 1.7; }
.post-content blockquote { border-left: 4px solid var(--green); padding: 16px 20px; background: var(--green-pale); margin: 28px 0; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--gray-600); }
.post-content img { border-radius: var(--radius); margin: 28px 0; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 48px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-about .logo-text { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: white; margin-bottom: 12px; }
.footer-about .logo-text span { color: #4ade80; }
.footer-about p { font-size: 14px; line-height: 1.7; }
.footer-tagline { font-size: 12px; color: #4ade80; letter-spacing: 2px; text-transform: uppercase; margin-top: 8px; }
.footer-heading { font-size: 13px; font-weight: 700; color: white; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer-links a:hover { color: #4ade80; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
@media (max-width: 768px) { .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .current { background: var(--navy); color: white; border-color: var(--navy); }

/* ===== BREADCRUMBS ===== */
.breadcrumbs { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.breadcrumbs a { color: rgba(255,255,255,0.65); }
.breadcrumbs a:hover { color: #4ade80; }
.breadcrumbs span { margin: 0 6px; }
