/* ==========================================
   TELEGRAM GRUBU LANDING
   Vademecum Online
   ========================================== */

:root {
    --tg-blue: #27A7E7;
    --tg-blue-dark: #1E8BC3;
    --tg-blue-soft: rgba(39, 167, 231, 0.12);
}

/* Page Hero (diğer sayfalarla aynı zemin, Telegram mavisi vurgu) */
.page-hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(39, 167, 231, 0.14) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-3%, 3%); }
}

.tg-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.tg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(39, 167, 231, 0.16);
    color: #8FD3F4;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.page-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.tg-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    max-width: 540px;
    margin-bottom: 32px;
}

.tg-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

/* Telegram CTA butonu: marka kırmızısından ayrışsın diye Telegram mavisi */
.tg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    border-radius: var(--radius-sm);
    background: var(--tg-blue);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.02rem;
    box-shadow: 0 8px 24px rgba(39, 167, 231, 0.35);
    transition: var(--transition);
}

.tg-btn i {
    font-size: 1.15rem;
}

.tg-btn:hover {
    background: var(--tg-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(39, 167, 231, 0.45);
}

.tg-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.tg-handle i {
    color: var(--tg-blue);
}

.tg-hero-visual {
    margin: 0;
    text-align: center;
}

.tg-hero-visual img {
    width: 100%;
    max-width: 360px;
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.tg-hero-visual figcaption {
    margin-top: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.tg-cap-mobile { display: none; }

/* QR görseli: tıklanınca büyür */
.tg-zoom {
    position: relative;
    display: inline-block;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: 24px;
}

.tg-zoom:focus-visible {
    outline: 3px solid var(--tg-blue);
    outline-offset: 6px;
}

.tg-zoom img {
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.tg-zoom:hover img {
    transform: translateY(-4px);
}

.tg-zoom-badge {
    position: absolute;
    right: 8%;
    bottom: 6%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(26, 26, 46, 0.85);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: var(--transition);
}

.tg-zoom:hover .tg-zoom-badge {
    background: var(--tg-blue);
}

/* Lightbox */
.tg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 10, 20, 0.88);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.tg-lightbox[hidden] { display: none; } /* [hidden] > display:flex: kapalıyken tıklamaları yutmasın */
.tg-lightbox.is-open { opacity: 1; }

.tg-lightbox-figure {
    margin: 0;
    text-align: center;
    transform: scale(0.94);
    transition: transform 0.22s ease;
}

.tg-lightbox.is-open .tg-lightbox-figure { transform: scale(1); }

.tg-lightbox-figure img {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: min(92vw, 600px);
    max-height: 80vh;
    height: auto;
}

.tg-lightbox-figure figcaption {
    margin-top: 16px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.tg-lightbox-handle {
    font-family: var(--font-mono);
    color: var(--tg-blue);
}

.tg-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.tg-lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }

/* Katılım butonu dikkat animasyonu (grup kartına tıklanınca) */
.tg-btn.is-attention {
    animation: tgAttention 0.8s ease-in-out 3;
}

@keyframes tgAttention {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(39, 167, 231, 0.35), 0 0 0 0 rgba(39, 167, 231, 0.55); }
    40%      { transform: scale(1.06); box-shadow: 0 12px 30px rgba(39, 167, 231, 0.5), 0 0 0 14px rgba(39, 167, 231, 0); }
    70%      { transform: scale(1); }
}

/* Faydalar */
.tg-benefits {
    padding: 90px 0;
    background: var(--color-bg-light);
}

.tg-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tg-benefit {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    padding: 30px 26px 28px;
    text-align: center;
    transition: var(--transition);
}

.tg-benefit:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Tıklanabilir grup kartları */
.tg-group-card {
    cursor: pointer;
    position: relative;
}

.tg-group-card:hover { border-color: rgba(39, 167, 231, 0.45); }

.tg-group-card:focus-visible {
    outline: 3px solid var(--tg-blue);
    outline-offset: 3px;
}

.tg-benefit-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tg-blue-soft);
    color: var(--tg-blue-dark);
    font-size: 1.35rem;
    margin: 0 auto 16px;
}

.tg-benefit h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.tg-benefit p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-gray-light);
}

/* İkinci kart bölümü beyaz zemin, adımlar açık gri: bölümler dönüşümlü */
.tg-benefits--alt {
    background: var(--color-white);
}

/* Nasıl katılırım */
.tg-steps {
    padding: 90px 0;
    background: var(--color-bg-light);
}

.tg-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.tg-step {
    text-align: center;
    padding: 0 12px;
}

.tg-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-dark);
    color: var(--color-white);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
}

.tg-step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.tg-step p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-gray-light);
}

.tg-step p a {
    color: var(--tg-blue-dark);
    font-weight: 600;
}

/* Kapanış CTA */
.tg-final {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-dark) 0%, #0F3460 100%);
    text-align: center;
}

.tg-final h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.tg-final > .container > p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto 28px;
}

.tg-rules {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 22px;
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
}

.tg-rules li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.tg-rules li i {
    color: var(--tg-blue);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .tg-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .tg-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .tg-cta-row {
        justify-content: center;
    }

    /* Yığılmış görünümde görsel ortalanır (img global olarak display:block) */
    .tg-hero-visual img {
        max-width: 300px;
        display: block;
        margin: 0 auto;
    }

    .tg-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 56px;
    }

    .tg-btn {
        width: 100%;
    }

    /* Mobilde kullanıcı kendi ekranındaki QR'ı okutamaz: görsel küçülür, ipucu değişir */
    .tg-hero-visual img {
        max-width: 220px;
    }

    .tg-cap-desktop { display: none; }
    .tg-cap-mobile { display: block; }

    .tg-benefits,
    .tg-steps {
        padding: 60px 0;
    }

    .tg-benefit p {
        font-size: 0.95rem;
    }

    .tg-benefits-grid,
    .tg-steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tg-step {
        text-align: left;
        display: grid;
        grid-template-columns: 44px 1fr;
        gap: 16px;
        align-items: start;
        padding: 0;
    }

    .tg-step-num {
        margin-bottom: 0;
    }

    .tg-final {
        padding: 60px 0;
    }

    .tg-final h2 {
        font-size: 1.6rem;
    }

    .tg-rules {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tg-btn.is-attention { animation: none; outline: 3px solid var(--tg-blue); outline-offset: 4px; }
    .tg-lightbox, .tg-lightbox-figure, .tg-zoom img { transition: none; }
}
