/**
 * SANİAD Theme - Homepage (Front Page) CSS
 *
 * Anasayfaya özel modüller burada yer alır.
 * Genel stiller main.css'de.
 */

/* ============ NEWS TICKER (Üst Bant) ============ */
.news-ticker {
    background: var(--navy-deep);
    border-top: 3px solid var(--gold);
    border-bottom: 1px solid rgba(201, 169, 97, 0.25);
    padding: 0;
    overflow: hidden;
}
.news-ticker-inner {
    max-width: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}
.ticker-label {
    background: var(--gold);
    color: var(--navy-deep);
    padding: 20px 32px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.ticker-label::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(26, 35, 126, 0.45);
}
.ticker-content {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.ticker-content a {
    color: rgba(255,255,255,0.92);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 56px;
    min-height: 60px;
    display: inline-flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.12);
    transition: color 0.3s;
}
.ticker-content a:hover { color: var(--gold); }
.ticker-content i {
    color: var(--gold);
    margin-right: 18px;
    font-size: 10px;
}

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 640px;
    background:
        radial-gradient(ellipse at top right, rgba(201, 169, 97, 0.18), transparent 50%),
        linear-gradient(135deg, rgba(26, 35, 126, 0.92) 0%, rgba(35, 42, 143, 0.85) 50%, rgba(26, 35, 126, 0.95) 100%),
        url('https://images.unsplash.com/photo-1486325212027-8081e485255e?q=80&w=1920&auto=format&fit=crop') center/cover;
    color: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 80px,
        rgba(201, 169, 97, 0.04) 80px,
        rgba(201, 169, 97, 0.04) 81px
    );
    pointer-events: none;
}
.hero-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px 32px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 28px;
}
.hero-eyebrow::before {
    content: '';
    width: 50px;
    height: 1px;
    background: var(--gold);
}
.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 60px;
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    color: #fff;
}
.hero h1 em {
    font-style: italic;
    color: var(--gold-light);
    font-weight: 500;
}
.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 540px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero .btn-primary {
    background: var(--gold);
    color: var(--navy-deep);
    border: 2px solid var(--gold);
}
.hero .btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
}
.hero .btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}
.hero .btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* HERO NEWS CARD (Sağdaki 3'lü mini haber) */
.hero-news-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 169, 97, 0.3);
    padding: 32px;
    position: relative;
}
.hero-news-card::before,
.hero-news-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid var(--gold);
}
.hero-news-card::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}
.hero-news-card::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}
.hero-news-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-news-card h3 .see-all {
    font-size: 11px;
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 12px;
    transition: all 0.3s;
}
.hero-news-card h3 .see-all:hover {
    color: var(--gold);
    border-color: var(--gold);
}
.hero-news-list {
    display: flex;
    flex-direction: column;
}
.hero-news-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}
.hero-news-item:last-child { border-bottom: none; }
.hero-news-item:hover { padding-left: 8px; }
.hero-news-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    background: var(--navy);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(201, 169, 97, 0.2);
}
.hero-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-news-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 24px;
}
.hero-news-content { flex: 1; min-width: 0; }
.hero-news-date {
    font-size: 11px;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-weight: 600;
}
.hero-news-content h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: #fff;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-news-item:hover h4 { color: var(--gold-light); }

/* ============ SECTIONS GENEL ============ */
section.home-section { padding: 100px 0; }

.section-head {
    text-align: center;
    margin-bottom: 64px;
}
.section-eyebrow {
    color: var(--gold-dark);
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
    display: inline-block;
    position: relative;
    padding: 0 60px;
}
.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--gold);
}
.section-eyebrow::before { left: 0; }
.section-eyebrow::after { right: 0; }
.section-head h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    color: var(--navy-deep);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.section-head h2 em {
    font-style: italic;
    color: var(--gold-dark);
}
.section-head p {
    color: var(--muted);
    font-size: 17px;
    max-width: 640px;
    margin: 20px auto 0;
}

/* ============ ABOUT ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-image {
    position: relative;
    aspect-ratio: 4/5;
    background:
        linear-gradient(180deg, rgba(26,35,126,0.1) 0%, rgba(26,35,126,0.85) 100%),
        url('https://images.unsplash.com/photo-1560472354-b33ff0c44a43?q=80&w=800&auto=format&fit=crop') center/cover;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.about-image-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--gold);
    padding: 40px;
}
.about-image-content i {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--gold-light);
    opacity: 0.85;
}
.about-image-content .year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 80px;
    line-height: 1;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}
.about-image-content .label {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 12px;
    font-weight: 600;
}
.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--gold);
    z-index: -1;
}
.about-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    color: var(--navy-deep);
    margin-bottom: 24px;
    line-height: 1.2;
}
.about-content p {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}
.pillar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}
.pillar {
    border-top: 2px solid var(--gold);
    padding-top: 16px;
}
.pillar h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--navy-deep);
    margin-bottom: 8px;
}
.pillar p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

/* ============ NEWS (Anasayfa Haber Listesi) ============ */
.news-section { background: var(--paper); }
.news-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}
.news-card {
    background: #fff;
    border: 1px solid var(--line);
    transition: all 0.4s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(26, 35, 126, 0.12);
}
.news-image {
    aspect-ratio: 16/10;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.news-card:hover .news-image img { transform: scale(1.08); }
.news-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gold);
    color: var(--navy-deep);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.news-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-meta {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}
.news-meta i {
    color: var(--gold-dark);
    margin-right: 6px;
}
.news-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--navy-deep);
    margin-bottom: 14px;
    line-height: 1.3;
    font-weight: 600;
}
.news-card.featured .news-body h3 { font-size: 30px; }
.news-body p {
    color: var(--muted);
    font-size: 15px;
    flex: 1;
}
.news-link {
    color: var(--gold-dark);
    font-weight: 600;
    font-size: 13px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}
.news-link:hover { gap: 14px; }

/* ============ MEMBERS (Sektörler) ============ */
.members-section {
    background: var(--navy-deep);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.members-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="50" cy="50" r="1" fill="rgba(201,169,97,0.15)"/></svg>');
    opacity: 0.5;
}
.members-section .section-head h2 { color: #fff; }
.members-section .section-head h2 em { color: var(--gold); }
.members-section .section-eyebrow { color: var(--gold); }
.members-section .section-eyebrow::before,
.members-section .section-eyebrow::after { background: var(--gold); }
.members-section .section-head p { color: rgba(255,255,255,0.7); }
.sector-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}
.sector-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,169,97,0.2);
    padding: 44px 28px;
    text-align: center;
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}
.sector-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform: translateY(100%);
    transition: transform 0.4s;
    z-index: -1;
}
.sector-card:hover {
    border-color: var(--gold);
    color: var(--navy-deep);
}
.sector-card:hover::before { transform: translateY(0); }
.sector-card i {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 22px;
    transition: color 0.4s;
}
.sector-card:hover i { color: var(--navy-deep); }
.sector-card-empty {
    grid-column: 1 / -1;
    cursor: default;
}
.sector-card-empty::before { display: none; }
.sector-card-empty:hover {
    color: #fff;
    border-color: rgba(201,169,97,0.2);
}
.sector-card-empty:hover i { color: var(--gold); }
.sector-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    margin-bottom: 0;
    font-weight: 600;
    color: #fff;
    transition: color 0.4s;
}
.sector-card:hover h4 { color: var(--navy-deep); }
.sector-card-empty:hover h4 { color: #fff; }
.member-cta {
    text-align: center;
    margin-top: 64px;
    position: relative;
    z-index: 2;
}

/* ============ EVENTS ============ */
.events-section { background: var(--cream); }
.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.event-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 32px;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}
.event-card:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(26, 35, 126, 0.08);
}
.event-date {
    text-align: center;
    border: 2px solid var(--navy-deep);
    padding: 20px 12px;
    height: fit-content;
    background: var(--navy-deep);
    color: #fff;
}
.event-date .day {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    line-height: 1;
    font-weight: 700;
}
.event-date .month {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 6px;
    font-weight: 600;
}
.event-date .year {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}
.event-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--navy-deep);
    margin-bottom: 14px;
    line-height: 1.3;
}
.event-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.event-meta span {
    font-size: 13px;
    color: var(--muted);
}
.event-meta i {
    color: var(--gold-dark);
    margin-right: 6px;
}
.event-content p {
    font-size: 14px;
    color: var(--muted);
}

/* ============ SANCAKTEPE ============ */
.sancaktepe-section {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(201, 169, 97, 0.15), transparent 50%),
        linear-gradient(135deg, rgba(35, 42, 143, 0.95) 0%, rgba(26, 35, 126, 0.92) 100%),
        url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?q=80&w=1920&auto=format&fit=crop') center/cover;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.sancaktepe-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}
.sancaktepe-content .section-eyebrow { color: var(--gold); }
.sancaktepe-content .section-eyebrow::before,
.sancaktepe-content .section-eyebrow::after { background: var(--gold); }
.sancaktepe-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 28px;
    font-weight: 600;
    color: #fff;
}
.sancaktepe-content h2 em {
    color: var(--gold-light);
    font-style: italic;
}
.sancaktepe-content p {
    color: rgba(255,255,255,0.8);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 36px;
}
.data-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.data-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,169,97,0.2);
    padding: 32px 24px;
    text-align: center;
}
.data-card .num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    color: var(--gold);
    font-weight: 600;
    line-height: 1;
}
.data-card .label {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 12px;
}

/* ============ HOMEPAGE BUTONS ============ */
.btn-primary, .btn-outline {
    padding: 16px 36px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: 2px solid;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
    }
    .hero-inner,
    .about-grid,
    .sancaktepe-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .hero-news-card {
        max-width: 720px;
        width: 100%;
    }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .news-card.featured { grid-column: span 2; }
    .sector-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .news-ticker-inner {
        display: grid;
        grid-template-columns: auto 1fr;
    }
    .news-ticker-inner {
        align-items: stretch;
    }
    .ticker-label {
        padding: 16px 18px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }
    .ticker-content a {
        min-height: 52px;
        padding: 0 24px;
        font-size: 14px;
    }
    .hero {
        align-items: flex-start;
    }
    .hero-inner {
        padding: 52px 24px;
        gap: 42px;
    }
    .hero-eyebrow {
        align-items: flex-start;
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 22px;
    }
    .hero-eyebrow::before {
        width: 36px;
        margin-top: 7px;
        flex-shrink: 0;
    }
    .hero h1,
    .section-head h2,
    .sancaktepe-content h2 {
        font-size: 38px;
    }
    .hero p {
        font-size: 16px;
        line-height: 1.65;
        margin-bottom: 30px;
    }
    .hero-news-card {
        padding: 26px;
    }
    .hero-news-card h3 {
        font-size: 22px;
    }
    .hero-news-item {
        gap: 14px;
    }
    .hero-news-thumb {
        width: 58px;
        height: 58px;
    }
    .news-grid,
    .events-grid,
    .sector-grid,
    .data-card-grid,
    .pillar-grid {
        grid-template-columns: 1fr;
    }
    .news-card.featured { grid-column: auto; }
    .event-card { grid-template-columns: 1fr; }
    section.home-section { padding: 60px 0; }
    .sector-card {
        padding: 34px 22px;
    }
    .data-card .num {
        font-size: 44px;
    }
}

@media (max-width: 480px) {
    .news-ticker-inner {
        grid-template-columns: 1fr;
    }
    .ticker-label {
        justify-content: center;
    }
    .ticker-content {
        min-width: 0;
    }
    .ticker-content a {
        width: 100%;
        padding: 0 18px;
        justify-content: flex-start;
        white-space: normal;
        line-height: 1.4;
    }
    .hero-inner {
        padding: 44px 18px;
    }
    .hero h1,
    .section-head h2,
    .sancaktepe-content h2 {
        font-size: 34px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions a,
    .member-cta a,
    .sancaktepe-content a {
        justify-content: center;
        width: 100%;
    }
    .hero-news-card {
        padding: 22px;
    }
    .hero-news-card h3 {
        gap: 16px;
        align-items: flex-start;
    }
    .hero-news-card h3 .see-all {
        flex-shrink: 0;
    }
    .hero-news-item {
        align-items: flex-start;
    }
    .about-image {
        min-height: 280px;
    }
    .sector-card {
        min-height: 180px;
    }
    .btn-primary,
    .btn-outline {
        padding: 14px 22px;
    }
}

/* Final polish: shared ticker and homepage news cards */
.news-ticker {
    position: relative;
    z-index: 5;
}

.home-section.news-section {
    overflow: visible;
}

.news-section .section-head {
    padding-top: 12px;
    margin-bottom: 64px;
}

.news-section .news-grid {
    align-items: stretch;
}

.news-section .news-card {
    min-width: 0;
}

.news-section .news-body h3 {
    overflow-wrap: anywhere;
}

.news-section .news-grid:has(.news-card:only-child) {
    grid-template-columns: minmax(0, 620px);
    justify-content: center;
}

.events-section .events-grid:has(.event-card:only-child) {
    grid-template-columns: minmax(0, 900px);
    justify-content: center;
}

@media (max-width: 720px) {
    .news-section .section-head {
        margin-bottom: 40px;
    }

    .news-section .news-grid:has(.news-card:only-child),
    .events-section .events-grid:has(.event-card:only-child) {
        grid-template-columns: 1fr;
    }
}
