/* ===== Sihirli Matematik Sarıçam — Paylaşılan SEO Sayfa Stilleri =====
   index.html içindeki tasarım sistemiyle aynı token'ları kullanır.
   Bu dosya /1-sinif-matematik-ozel-ders/ gibi alt sayfalarda kullanılır. */

:root {
  --gold: #F59E0B;
  --gold-light: #FCD34D;
  --gold-dark: #D97706;
  --navy: #0F172A;
  --navy-mid: #1E293B;
  --navy-light: #334155;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --gray-800: #1E293B;
  --green: #10B981;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 24px rgba(15,23,42,0.08);
  --shadow-gold: 0 8px 32px rgba(245,158,11,0.3);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.content-link { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 2px; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

/* ===== NAV (index.html ile aynı) ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: 72px;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.1rem; color: var(--navy); white-space: nowrap; }
.nav-logo .star { font-size: 1.4rem; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-weight: 700; font-size: 0.9rem; color: var(--gray-600); transition: color var(--transition); }
.nav-links a:hover { color: var(--navy); }
.btn-nav {
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 0.9rem;
  padding: 10px 20px; border-radius: 10px; border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-nav:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--white);
  border-bottom: 1px solid var(--gray-200); z-index: 99; padding: 16px 24px 24px;
  flex-direction: column; gap: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-weight: 700; font-size: 1rem; color: var(--navy); padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.mobile-menu .btn-primary { justify-content: center; }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 96px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--gray-400); }
.breadcrumb a { color: var(--gray-600); font-weight: 700; }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--gray-400); }

/* ===== PAGE HERO ===== */
.page-hero { padding: 32px 0 56px; background: linear-gradient(135deg, #FFF8E7 0%, #FFFBF0 50%, #F0F9FF 100%); }
.page-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #92400E;
  font-weight: 800; font-size: 0.85rem; padding: 8px 16px; border-radius: 100px;
  margin-bottom: 16px; border: 1px solid #FCD34D;
}
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 900; line-height: 1.2; color: var(--navy); margin-bottom: 16px; }
.page-hero .lead { font-size: 1.05rem; color: var(--gray-600); max-width: 640px; line-height: 1.7; margin-bottom: 28px; }
.page-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.page-hero-badge-item {
  display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.82rem; color: var(--navy);
  background: var(--white); padding: 7px 13px; border-radius: 8px; border: 1.5px solid var(--gray-200);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; background: var(--gold); color: var(--navy);
  font-weight: 900; font-size: 1.05rem; padding: 16px 28px; border-radius: 14px; border: none; cursor: pointer;
  transition: all var(--transition); box-shadow: 0 4px 20px rgba(245,158,11,0.35); text-decoration: none;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(245,158,11,0.45); }
.btn-secondary-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; color: var(--gray-600); transition: color var(--transition); }
.btn-secondary-link:hover { color: var(--navy); }

/* ===== SECTION HEADERS ===== */
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 12px; }
.section-title { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 900; line-height: 1.25; color: var(--navy); margin-bottom: 16px; }
.section-subtitle { font-size: 1.02rem; color: var(--gray-600); max-width: 620px; line-height: 1.7; }
.section-header { margin-bottom: 40px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ===== CONTENT BLOCKS ===== */
.content-prose { max-width: 760px; }
.content-prose p { color: var(--gray-600); font-size: 1rem; line-height: 1.8; margin-bottom: 18px; }
.content-prose h2 { font-size: 1.5rem; font-weight: 900; color: var(--navy); margin: 32px 0 14px; }
.content-prose h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin: 24px 0 10px; }
.content-prose ul { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.content-prose ul li {
  position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--gray-600); font-size: 0.98rem; line-height: 1.6;
}
.content-prose ul li::before {
  content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: #D1FAE5; color: var(--green); font-size: 0.7rem; font-weight: 900; display: flex; align-items: center; justify-content: center;
}

.info-card { background: var(--off-white); border-radius: var(--radius); padding: 24px 28px; border: 1.5px solid var(--gray-200); }
.info-card + .info-card { margin-top: 16px; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.simple-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1.5px solid var(--gray-200); box-shadow: var(--shadow-card); }
.simple-card .icon { width: 44px; height: 44px; background: #FEF3C7; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.simple-card h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.simple-card p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.6; }

/* ===== INTERNAL LINK GRID ===== */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card {
  background: var(--white); border: 1.5px solid var(--gray-200); border-radius: 12px; padding: 16px 18px;
  font-weight: 800; font-size: 0.9rem; color: var(--navy); transition: border-color var(--transition), transform var(--transition);
}
.related-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.related-card span { display: block; font-size: 0.75rem; font-weight: 700; color: var(--gray-400); margin-top: 4px; }

/* ===== FAQ (index.html ile aynı) ===== */
.faq-list { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border-radius: var(--radius); border: 1.5px solid var(--gray-200); overflow: hidden; transition: border-color var(--transition); }
.faq-item.open { border-color: var(--gold); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px;
  background: none; border: none; cursor: pointer; text-align: left; font-family: inherit; font-size: 1rem; font-weight: 800;
  color: var(--navy); transition: color var(--transition);
}
.faq-question:hover { color: var(--gold-dark); }
.faq-chevron {
  width: 28px; height: 28px; background: var(--gray-100); border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 0.8rem; flex-shrink: 0; transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--gold); }
.faq-answer { padding: 0 24px 22px; font-size: 0.95rem; color: var(--gray-600); line-height: 1.7; }
.faq-answer[hidden] { display: none; }

/* ===== PAGE CTA BANNER ===== */
.page-cta { background: linear-gradient(135deg, var(--navy) 0%, #1a2744 50%, #0d1f3c 100%); padding: 72px 0; text-align: center; }
.page-cta h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; color: var(--white); margin-bottom: 14px; }
.page-cta p { color: var(--gray-400); font-size: 1.02rem; margin-bottom: 28px; }

/* ===== FOOTER (index.html ile aynı) ===== */
footer { background: #070D1A; color: var(--gray-400); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .nav-logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: background var(--transition), color var(--transition); color: var(--gray-400); }
.social-link:hover { background: var(--gold); color: var(--navy); }
.footer-column h4 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--gray-400); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; }

/* ===== STICKY MOBILE CTA ===== */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); padding: 12px 16px; border-top: 1px solid var(--gray-200); z-index: 90; box-shadow: 0 -4px 20px rgba(0,0,0,0.1); }
.sticky-cta a { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--gold); color: var(--navy); font-weight: 900; font-size: 1rem; padding: 14px; border-radius: 12px; text-decoration: none; }

/* ===== ÇÖZÜM / ÖZELLİK GRID ===== */
.cozum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cozum-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1.5px solid var(--gray-200); box-shadow: var(--shadow-card); text-align: center; }
.cozum-card .icon { width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: #FEF3C7; }
.cozum-card h3 { font-size: 1rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.cozum-card p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.6; }

/* ===== GERÇEK DERSLER VIDEO GRID (index.html ile aynı) ===== */
.lesson-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lesson-video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--gray-200); box-shadow: var(--shadow-card); transition: transform var(--transition), box-shadow var(--transition); }
.lesson-video-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(15,23,42,0.12); }
.lesson-video-media { position: relative; aspect-ratio: 9/16; max-height: 360px; background: var(--navy); cursor: pointer; overflow: hidden; }
.lesson-video-media img, .lesson-video-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lesson-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; background: var(--gold); color: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  box-shadow: 0 0 0 10px rgba(245,158,11,0.2); transition: transform var(--transition);
}
.lesson-video-media:hover .lesson-play-btn { transform: translate(-50%,-50%) scale(1.1); }
.lesson-video-media.playing .lesson-play-btn { display: none; }
.lesson-video-body { padding: 14px 16px 18px; }
.lesson-video-tag { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-dark); background: #FEF3C7; padding: 3px 10px; border-radius: 100px; margin-bottom: 8px; }
.lesson-video-body h3 { font-size: 0.95rem; font-weight: 800; color: var(--navy); line-height: 1.4; }

/* ===== TESTIMONIALS (dark, index.html ile aynı) ===== */
.testimonials-dark { background: var(--navy); }
.testimonials-dark .section-label { color: var(--gold-light); }
.testimonials-dark .section-title, .testimonials-dark .section-subtitle { color: var(--white); }
.testimonials-dark .section-subtitle { color: var(--gray-400); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card { background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 28px; transition: background var(--transition), border-color var(--transition), transform var(--transition); }
.testimonial-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(245,158,11,0.3); transform: translateY(-4px); }
.testimonial-card--shot { padding: 14px 14px 20px; }
.testimonial-shot { width: 100%; height: auto; border-radius: 12px; margin-bottom: 16px; display: block; }
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-quote { font-size: 1.05rem; font-weight: 700; color: var(--white); line-height: 1.6; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-card--shot .testimonial-author { padding: 0 8px; }
.author-avatar { width: 40px; height: 40px; background: linear-gradient(135deg, var(--gold), var(--gold-dark)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 0.85rem; color: var(--navy); flex-shrink: 0; }
.author-name { font-size: 0.85rem; font-weight: 800; color: var(--white); }
.author-role { font-size: 0.75rem; color: var(--gray-400); }

/* ===== SINIF KARŞILAŞTIRMA TABLOSU ===== */
.grade-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.grade-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.grade-table th { padding: 16px 20px; font-size: 0.85rem; font-weight: 900; text-align: left; background: var(--navy); color: var(--white); }
.grade-table td { padding: 14px 20px; font-size: 0.9rem; border-top: 1px solid var(--gray-200); color: var(--gray-600); }
.grade-table tr:nth-child(even) td { background: var(--off-white); }

/* ===== TIMELINE (ders sistemi) ===== */
.step-timeline { display: flex; flex-direction: column; gap: 0; max-width: 680px; margin: 0 auto; position: relative; }
.step-timeline::before { content: ''; position: absolute; left: 27px; top: 40px; bottom: 40px; width: 2px; background: linear-gradient(to bottom, var(--gold), var(--gold-dark)); border-radius: 1px; }
.step-row { display: flex; gap: 24px; align-items: flex-start; padding: 16px 0; }
.step-num { width: 56px; height: 56px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.05rem; color: var(--navy); flex-shrink: 0; position: relative; z-index: 1; box-shadow: 0 4px 16px rgba(245,158,11,0.3); }
.step-box { background: var(--off-white); border-radius: var(--radius); padding: 20px 24px; flex: 1; border: 1.5px solid var(--gray-200); }
.step-box h3 { font-size: 1.05rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.step-box p { font-size: 0.9rem; color: var(--gray-600); line-height: 1.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .btn-nav { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sticky-cta { display: block; }
  body { padding-bottom: 80px; }
  section { padding: 56px 0; }
  .breadcrumb { padding-top: 88px; }
  .cozum-grid { grid-template-columns: repeat(2, 1fr); }
  .lesson-video-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cozum-grid { grid-template-columns: 1fr; }
  .lesson-video-grid { grid-template-columns: 1fr; }
}
