/* =========================================================
   STYLE.CSS — Global stiller, layout, bileşenler
   Token'lar main.css'den, reusable class'lar components.css'den.
   ========================================================= */


/* ── RESET ── */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}


/* ── VISUAL EFFECTS ── */

.ambient-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 50% -20%, var(--ambient-1), transparent 50%),
        radial-gradient(circle at 10% 90%, var(--ambient-2), transparent 40%),
        radial-gradient(circle at 90% 90%, var(--ambient-3), transparent 40%);
}

.orb-blur {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--orb-color) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}


/* ── LOGO ── */

.logo {
    font-size: 18px;
    justify-content: center;
    color: var(--text-primary);
    font-weight: 400;
    gap: 6px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 24px;
    height: 24px;
}


/* ── BUTTONS ── */

.btn-google,
.btn-sm-google {
    background: var(--btn-bg);
    color: var(--btn-color) !important;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-google  { padding: 12px 32px; font-size: 15px; }
.btn-sm-google { padding: 6px 16px; font-size: 15px; }

.btn-google:hover,
.btn-sm-google:hover {
    background: var(--btn-hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--btn-shadow);
}

.btn-outline-google {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur-webkit);
    color: var(--btn-bg) !important;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid var(--border-outline);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 15px;

}

.btn-outline-google:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--border-outline);
    transform: translateY(-3px);
}


/* ── HERO ── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 24px;
    overflow: hidden;
}

.hero h1,
.hero p,
.hero .desc {
    position: relative;
    z-index: 2;
}

.hero .reveal {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.hero h1 {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 24px;
    background: var(--hero-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.2vw, 1rem);
    max-width: 650px;
    margin-bottom: 48px;
    line-height: 1.4;
}

.desc {
    font-size: 18px;
    font-weight: 500;
}


/* ── PARTICLES ── */

.sel-particles {
    position: relative;
    overflow: hidden;
}

.sel-particles > *:not(canvas) {
    position: relative;
    z-index: 2;
}


/* ── FEATURES ── */

.features {
    padding: 100px 6%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 32px;
    border-radius: var(--radius-xl);
    transition: border var(--duration-normal);
}

.feature-card:hover {
    border-color: var(--accent-blue);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero .reveal {
        gap: 10px;
    }

    .hero .btn-google,
    .hero .btn-outline-google {
        padding: 10px 20px;
        font-size: 14px;
    }

    .features {
        /* Kartları alt alta dizmek için sütun sayısını 1'e düşürüyoruz */
        grid-template-columns: 1fr;
        padding: 40px 20px;
        /* Mobilde kenar boşluklarını daraltıyoruz */
        gap: 16px;
        /* Kartlar arasındaki dikey boşluğu biraz azaltıyoruz */
    }

    .feature-card {
        padding: 24px;
        /* Mobilde kart iç boşluğunu biraz küçültüyoruz */
    }

    .feature-card h3 {
        font-size: 20px;
        /* Mobilde başlık boyutunu optimize ediyoruz */
    }
}

/* ── FOOTER ── */

.google-footer {
    padding-top: 100px;
    margin-top: 100px;
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding: 0 6% 80px 6%;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-links-grid {
    display: flex;
    gap: clamp(40px, 10vw, 120px);
    flex-wrap: wrap;
    font-weight: 700;
}

.link-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color var(--duration-fast);

}

.link-col a:hover {
    color: var(--link-hover);
    transform: translateX(5px);
        transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    }



.massive-text-container {
    padding: 20px 0;
    overflow: hidden;
    border-bottom: 1px solid var(--footer-border);
    width: 100%;
}

.massive-logo {
    font-size: 25vw;
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.8;
    text-align: center;
    background: var(--massive-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    user-select: none;
    white-space: nowrap;
    display: block;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 40px 6%;
    color: var(--text-secondary);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: var(--link-hover);
}


/* ── SUPPORT FORM ── */

.support-form {
    margin-top: 20px;
}

.support-wrapper {
    position: relative;
    display: inline-block;
}

.support-dropdown {
    position: absolute;
    top: calc(100% + 22px);
    right: 0;
    width: 320px;

    background: var(--dropdown-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur-webkit);

    border: 1px solid var(--dropdown-border);
    border-radius: var(--radius-md);
    padding: 20px 15px;
    box-shadow: var(--shadow-dropdown);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s var(--ease-out);
    z-index: 1000;
}

.support-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.support-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--input-color);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all var(--duration-fast) ease;
    margin-bottom: 12px;
}

.support-input::placeholder {
    color: var(--text-secondary);
}

.support-input:focus {
    border-color: var(--accent-blue);
    background: var(--input-focus-bg);
}

.btn-send {
    width: 100%;
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    padding: 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: opacity var(--duration-fast);
}

.btn-send:hover {
    opacity: 0.85;
}


/* ── TEXT ANIMATIONS ── */

.reveal-text {
    opacity: 0;
}

.reveal-text .char {
    opacity: 0;
    transform: translateX(-20px);
    display: inline-block;
}


/* ── ARTICLE LINKS ── */

article a {
    text-decoration: none !important;
    color: var(--text-primary);
}


/* ── NOTIFICATION PANEL ── */

#notifToggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--dropdown-border);
    background: var(--dropdown-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) ease;
}

#notifToggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

#notifBadge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    background: var(--accent-red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) ease;
}

.notif-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.notif-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 380px;
    max-width: 90vw;
    z-index: 1002;
    background: rgba(10, 10, 14, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--card-border);
    transform: translateX(-100%);
    transition: transform var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
}

.notif-panel.open {
    transform: translateX(0);
}

.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.notif-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.notif-close:hover {
    color: #fff;
}

.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* Thin scrollbar */
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4px;
}

.notif-body {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
    word-break: break-word;
}

.notif-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 6px;
}


/* ── TOAST ── */

.notif-toast {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(10, 10, 14, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    max-width: 360px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(-20px);
    transition: all var(--duration-normal) var(--ease-out);
    pointer-events: none;
}

.notif-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notif-toast strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.socket-links-container {
    text-align: center;
    /* Metni merkeze hizalar */
    display: flex;
    /* Esnek yapı */
    justify-content: center;
    /* Yatayda tam ortalar */
    align-items: center;
    /* Dikeyde hizalar */
    flex-wrap: wrap;
    /* Mobilde alt alta geçebilmesini sağlar */
    gap: 10px;
    /* Linkler arasındaki boşluk */
    padding: 20px 0;


}

.socket-link {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.socket-link:hover {
    color: var(--accent-blue);
    transform: translateY(-3px);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.socket-link:not(:last-child)::after {
    content: "|";
    margin-left: 10px;
    color: var(--text-secondary);
    opacity: 0.5;
    cursor: default;
}
