/* enhancements.css - New Minimalist Focus & Reverse Blur Design */

/* 1. Global Arka Plan: Sayfanın geneli 8px bulanık */
body {
    background: #0d0e14 !important;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    z-index: -2;
    background: url('cobra.webp') no-repeat center center fixed;
    background-size: cover;
    filter: brightness(0.9) blur(8px);
    transform: scale(1.04);
    pointer-events: none;
}

/* Kendi arka planı / resmi olan kartlar için kenarlarda fade geçişi */
.bubble-game-other > div[style*="background"],
.main-card-bg-other,
.main-card-bg {
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 45%, rgba(0,0,0,0) 95%) !important;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 45%, rgba(0,0,0,0) 95%) !important;
}

/* 3. Etkileşimler */
.mainpage-btn-effect,
.show-more-btn,
.social-btn,
.bubble-game-other .button-container a {
    position: relative;
    overflow: hidden;
}

/* 4. Scroll Progress Indicator (Sade beyaz çizgi) */
#scroll-indicator-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 999999;
    pointer-events: none;
}

#scroll-indicator-bar {
    height: 100%;
    width: 0%;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    transition: width 0.1s ease-out;
}

/* 5. Global Footer (Transparan & Sade Çizgi) */
.global-footer {
    width: 100%;
    padding: 32px 0;
    margin-top: 60px;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-rights {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.25s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* GitHub Buton Sadeleştirmesi (LED tabela efekti kaldırıldı) */
.github-btn {
    position: relative;
    overflow: hidden;
}

.btn-marquee-container {
    display: none !important;
}

.github-btn:hover .btn-static-text,
.github-btn:hover i {
    opacity: 1 !important;
    transform: none !important;
}

/* 5. Desktop Scrollbar Fix */
.main-card {
    width: 100% !important;
    max-width: 100% !important;
}

/* Logo Link Reset (Prevent underline and effects) */
.navbar-icon .logo-link::after {
    display: none !important;
}
.navbar-icon .logo-link {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transform: none !important;
}

/* Menu Open Styles (Lock scroll and blur background) */
body.menu-open {
    overflow: hidden !important;
}

body.menu-open::-webkit-scrollbar {
    display: none !important; /* Mobilde kaydırma çubuğunu gizle */
}

body.menu-open .custom-scroll-wrapper {
    filter: blur(8px);
    pointer-events: none; /* Arka plana tıklanmasın */
    transition: filter 0.3s ease;
}

/* 6. Mobile Fixes for Address Bar and Spacing */
@media (max-width: 768px) {
    html, body {
        overflow: auto !important; /* Kilitli kaydırmayı kaldır */
    }

    body {
        min-height: 100vh !important; /* Fallback */
        min-height: 100dvh !important;
        height: auto !important; /* Arka planın tüm içeriği kaplaması için */
        background-attachment: fixed !important; /* Arka plan hiç kaymasın */
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-color: #101018 !important; /* Koyu lacivert/siyah, navbar ile uyumlu */
    }

    .main-card {
        margin: 0 auto !important;
        padding: 20px 15px 20px 15px !important; /* Padding küçültüldü */
        min-height: auto !important; /* Header'ın devasa olmasını engelle */
        border-radius: 0 !important;
    }

    /* Kartların içindeki büyük başlık resimlerini mobilde küçült */
    .bubble-game img {
        max-width: 65% !important;
        margin-bottom: 12px !important;
        margin-top: 5px !important;
    }

    /* Mobilde içerik kaydırma alanını serbest bırak (Edge-to-Edge için) */
    .custom-scroll-wrapper {
        height: auto !important;
        overflow: visible !important;
        margin-top: 54px !important;
    }

    /* Fix for buttons overflowing cards on mobile and adding padding */
    .bubble, .bubble-game {
        overflow: hidden !important;
        padding: 25px 20px !important; /* Kart içi boşluk artırıldı */
    }

    /* Kartlar arası boşluğu artır */
    .dashboard-grid {
        gap: 28px !important;
    }

    /* Resize buttons on mobile to fit inside cards */
    .mainpage-btn-effect,
    .mainpage-btn-texture-move,
    .mainpage-btn-scale {
        width: 85% !important;
        max-width: 320px !important;
        font-size: 1em !important;
        padding: 12px 15px !important;
        margin: 15px auto !important;
        border-radius: 12px !important;
        height: auto !important;
    }

    /* Dokunma Geri Bildirimleri (Active States) */
    .mainpage-btn-effect:active,
    .mainpage-btn-texture-move:active,
    .mainpage-btn-scale:active,
    .social-btn:active {
        transform: scale(0.95) !important;
        opacity: 0.9;
    }

    /* Font Boyutlarının Optimizasyonu */
    body {
        font-size: 16px !important;
    }

    .bubble-desc {
        font-size: 0.95em !important;
        line-height: 1.5 !important;
    }
}
