/* Footer Styles - Modern Premium Design - Dark Theme */
.site-footer {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 4rem;
    padding: 3rem 0 2rem;
    background: linear-gradient(135deg, rgba(17, 17, 34, 0.98) 0%, rgba(10, 10, 18, 0.98) 100%);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(124, 156, 255, 0.35), rgba(196, 181, 253, 0.35), transparent);
    opacity: 0.6;
}

.footer-content {
    max-width: calc(100% - 40px);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    align-items: start;
    box-sizing: border-box;
}

/* Üst Kat: Ana Footer İçeriği */
.footer-content-top {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* Alt Kat: Policy İçerikleri */
.footer-content-bottom {
    padding-top: 2rem;
    grid-template-columns: 1fr;
    gap: 0;
}

/* Footer Sol - Telif Hakkı */
.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-copyright-text {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
}

.footer-copyright-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-ai-attribution {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.footer-ai-attribution a {
    color: rgba(124, 156, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-ai-attribution a:hover {
    color: rgba(196, 181, 253, 0.9);
    text-decoration: underline;
}

/* Footer Orta - Popüler Linkler */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-links-title {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links-title i {
    color: rgba(124, 156, 255, 0.8);
    font-size: 1.1rem;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

.footer-link-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link-item a {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
}

.footer-link-item a:hover {
    color: rgba(124, 156, 255, 0.9);
    transform: translateX(4px);
}

.footer-link-item a i {
    font-size: 0.85rem;
    color: rgba(124, 156, 255, 0.7);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.footer-link-item a:hover i {
    color: rgba(196, 181, 253, 0.9);
    transform: scale(1.1);
}

.footer-link-text {
    flex: 1;
    min-width: 0;
}

/* Katman Badge - Footer Linkler */
.footer-link-layer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-left: auto;
    flex-shrink: 0;
    transition: all 0.3s ease;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Katman 0 Badge */
.footer-link-layer-badge[data-layer="0"] {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.14) 0%, rgba(71, 85, 105, 0.2) 100%);
    border: 1px solid rgba(203, 213, 225, 0.28);
    color: rgba(226, 232, 240, 0.95);
}

/* Katman 1 Badge */
.footer-link-layer-badge[data-layer="1"] {
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.16) 0%, rgba(196, 181, 253, 0.12) 100%);
    border: 1px solid rgba(124, 156, 255, 0.35);
    color: rgba(199, 210, 254, 0.98);
}

/* Katman 2 Badge */
.footer-link-layer-badge[data-layer="2"] {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.16) 0%, rgba(167, 139, 250, 0.12) 100%);
    border: 1px solid rgba(167, 139, 250, 0.35);
    color: rgba(221, 214, 254, 0.98);
}

.footer-link-item:hover .footer-link-layer-badge[data-layer="0"] {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.22) 0%, rgba(100, 116, 139, 0.22) 100%);
    border-color: rgba(226, 232, 240, 0.4);
    color: #f8fafc;
}

.footer-link-item:hover .footer-link-layer-badge[data-layer="1"] {
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.24) 0%, rgba(196, 181, 253, 0.18) 100%);
    border-color: rgba(124, 156, 255, 0.45);
    color: #eef2ff;
}

.footer-link-item:hover .footer-link-layer-badge[data-layer="2"] {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.24) 0%, rgba(167, 139, 250, 0.2) 100%);
    border-color: rgba(196, 181, 253, 0.45);
    color: #f5f3ff;
}

/* Footer Sağ - Policy Linkler ve Attributions */
.footer-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
}

/* Policy Linkler - Yan Yana */
.footer-policy-links {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: flex-end;
}

.footer-policy-link {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.1) 0%, rgba(196, 181, 253, 0.08) 100%);
    border: 1px solid rgba(124, 156, 255, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-policy-link:hover {
    background: linear-gradient(135deg, rgba(124, 156, 255, 0.15) 0%, rgba(196, 181, 253, 0.12) 100%);
    border-color: rgba(124, 156, 255, 0.35);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 156, 255, 0.15);
}

.footer-policy-link i {
    font-size: 0.85rem;
    color: rgba(124, 156, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-policy-link:hover i {
    color: rgba(196, 181, 253, 0.9);
    transform: scale(1.1);
}

/* Alt Kat: Policy İçerikleri */
.footer-policy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 100%;
    margin: 0 auto;
}

.footer-policy-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(22, 24, 42, 0.94) 0%, rgba(14, 16, 30, 0.92) 100%);
    border: 1px solid rgba(124, 156, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    position: relative;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Geri Dön Butonu */
.footer-policy-back-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 156, 255, 0.1);
    border: 1px solid rgba(124, 156, 255, 0.25);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.footer-policy-back-btn:hover {
    background: rgba(124, 156, 255, 0.2);
    border-color: rgba(124, 156, 255, 0.4);
    color: var(--text-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(124, 156, 255, 0.2);
}

.footer-policy-back-btn i {
    transition: transform 0.3s ease;
}

.footer-policy-back-btn:hover i {
    transform: translateY(-2px);
}

.footer-policy-item-title {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.75rem;
    padding-right: 3rem;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.02em;
    text-shadow: 0 0 28px rgba(199, 210, 254, 0.18);
}

.footer-policy-item-title i {
    color: rgba(124, 156, 255, 0.8);
    font-size: 1.1rem;
}

.footer-policy-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-policy-item-text p {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    position: relative;
    padding-left: 1.5rem;
}

.footer-policy-item-text p::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: rgba(124, 156, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 600;
}

.footer-policy-meta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-policy-meta p::before {
    display: none;
}

.footer-policy-update-date {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    padding-left: 0 !important;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-policy-update-date i {
    color: rgba(124, 156, 255, 0.7);
    font-size: 0.9rem;
}

.footer-policy-update-date strong {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-attributions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-attribution-item {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin: 0;
}

.footer-attribution-item a {
    color: rgba(124, 156, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-attribution-item a:hover {
    color: rgba(196, 181, 253, 0.9);
    text-decoration: underline;
}

.footer-attribution-item small {
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1.5fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        margin-top: 3rem;
        padding: 2rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.75rem;
        max-width: 100%;
    }

    .footer-content-bottom {
        padding-top: 1.5rem;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .footer-link-item a {
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .footer-link-layer-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }

    .footer-right {
        align-items: flex-start;
    }

    .footer-policy-links {
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .footer-policy-link {
        width: 100%;
        justify-content: center;
    }

    .footer-policy-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }

    .footer-policy-item {
        padding: 1.25rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .footer-attributions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-content {
        padding: 0 0.5rem;
        gap: 1.5rem;
        max-width: 100%;
    }

    .footer-copyright-text,
    .footer-ai-attribution {
        font-size: 0.8rem;
    }

    .footer-links-title,
    .footer-privacy-title {
        font-size: 0.95rem;
    }

    .footer-link-item a {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    .footer-link-layer-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.35rem;
        margin-left: 0.25rem;
    }

    .footer-policy-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .footer-policy-item {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .footer-policy-back-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        top: 0.75rem;
        right: 0.75rem;
    }

    .footer-policy-item-title {
        font-size: 1rem;
        padding-right: 2.5rem;
    }

    .footer-policy-item-text p {
        font-size: 0.85rem;
        padding-left: 1.25rem;
    }

    .footer-policy-item-text p::before {
        font-size: 0.9rem;
    }

    .footer-policy-meta {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .footer-policy-update-date {
        font-size: 0.8rem;
    }

    .footer-policy-update-date i {
        font-size: 0.85rem;
    }

    .footer-attribution-item {
        font-size: 0.75rem;
    }
}