/* --- TEMEL AYARLAR VE ARKA PLAN --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--ytu-blue);
    background-image: url('https://i.ibb.co/JWtF6VTv/makfak.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    z-index: -1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    will-change: backdrop-filter;
}

/* --- LOGO VE BAŞLIK BÖLÜMÜ --- */
.logo-container {
    margin-bottom: 25px;
    text-align: center;
    animation: fadeInDown 1s ease;
    padding: 0 20px;
    flex-shrink: 1;
}

.logo-img {
    max-width: 160px;
    /* Logo küçültüldü */
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 0 15px rgba(160, 140, 91, 0.6)) drop-shadow(0 0 30px rgba(160, 140, 91, 0.4));
}

.main-title {
    color: var(--ytu-gold);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-top: 10px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

/* --- ANA MENÜ (HUB) KARTLARI --- */
.menu-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 500px;
    padding: 0 15px;
    margin-bottom: 30px;
    flex-shrink: 0;
    animation: fadeInDown 1.2s ease;
}

.hub-item {
    display: flex;
    gap: 10px;
    width: 100%;
    position: relative;
}

.game-mode-btn {
    flex: 1;
    background: rgba(31, 34, 86, 0.85);
    border: 2px solid var(--ytu-gold);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.info-btn {
    width: 65px;
    background: rgba(31, 34, 86, 0.85);
    border: 2px solid var(--ytu-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ytu-gold);
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    flex-shrink: 0;
}

/* Buton İçindeki Logolar Büyütüldü */
.btn-icon {
    width: 55px;
    height: 55px;
    border: 2px solid var(--ytu-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: rgba(31, 34, 86, 0.6);
    color: var(--ytu-gold);
    flex-shrink: 0;
    overflow: hidden;
}

.hub-btn-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.btn-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 4px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.btn-desc {
    font-size: 0.85rem;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Bakım Modu */
.maintenance-mode {
    filter: grayscale(100%);
    opacity: 0.8;
    border-color: #777;
    cursor: not-allowed;
}

.maintenance-mode .btn-icon {
    border-color: #777;
    color: #ccc;
}

.maintenance-mode:hover {
    transform: none !important;
    border-color: #777 !important;
    background: rgba(31, 34, 86, 0.85) !important;
}

/* İşbirliği Etiketleri */
.collab-badge {
    position: absolute;
    top: -12px;
    right: 15px;
    background: linear-gradient(45deg, #a08c5b, #d4c08b);
    color: #1f2256;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 10;
    border: 1px solid #fff;
    transform: rotate(3deg);
    text-transform: uppercase;
}

.collab-badge-small {
    font-size: 0.65rem;
    background: rgba(160, 140, 91, 0.15);
    color: var(--ytu-gold);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--ytu-gold);
    margin-left: auto;
    font-weight: bold;
    text-transform: uppercase;
}

/* Yakında (Coming Soon) Butonu */
.btn-soon-container {
    justify-content: center;
}

.btn-soon {
    filter: grayscale(100%);
    opacity: 0.6;
    pointer-events: none;
    border-color: #777;
    cursor: default;
}

.btn-soon .btn-icon {
    color: #ccc;
    border-color: #777;
    font-size: 1.5rem;
}

/* --- SOSYAL MEDYA ALANI --- */
.social-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 10px;
    animation: fadeInDown 1.5s ease;
    flex-wrap: wrap;
    width: 100%;
    flex-shrink: 0;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    width: 85px;
}

/* Alt Butonlar Büyütüldü */
.social-pp {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid var(--ytu-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.3rem;
    color: var(--ytu-gold);
    background: rgba(31, 34, 86, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.social-name {
    color: var(--ytu-gold);
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 1);
    text-align: center;
    margin-top: 10px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* --- MODALLAR GENEL YAPI --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(31, 34, 86, 0.95);
    border: 2px solid var(--ytu-gold);
    padding: 30px 25px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close-x {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #aaa;
    cursor: pointer;
    font-size: 1.8rem;
    transition: color 0.2s;
    z-index: 10;
}

.modal-close-x:hover {
    color: white;
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--ytu-gold);
    line-height: 1.2;
}

.modal-desc {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.action-btn.menu {
    background: var(--correct);
    color: white;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(83, 141, 78, 0.4);
    text-align: center;
}

/* --- INSTAGRAM MODAL LİSTESİ --- */
.ig-links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.ig-link-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.ig-link-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--ytu-gold);
}

/* IG Modalı İçindeki Resimler Büyütüldü ve Yuvarlak Yapıldı */
.ig-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
    border: 1px solid var(--ytu-gold);
}

.ig-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ig-link-item span {
    font-weight: bold;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

/* --- HATA BİLDİR FORM MODALI --- */
.bug-modal-content {
    text-align: left;
}

.bug-form-group {
    margin-bottom: 15px;
}

.bug-form-group label {
    display: block;
    color: var(--ytu-gold);
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: bold;
}

.bug-file-label {
    display: block;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    border: 2px dashed #666;
    text-align: center;
    transition: 0.2s;
}

.bug-file-label:hover {
    border-color: var(--ytu-gold);
    color: white;
    background: rgba(0, 0, 0, 0.5);
}

.bug-textarea,
.bug-input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #555;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    transition: 0.3s;
}

.bug-textarea {
    height: 110px;
    resize: vertical;
}

.bug-textarea:focus,
.bug-input:focus {
    border-color: var(--ytu-gold);
    outline: none;
    background: rgba(0, 0, 0, 0.5);
}

#bugFileList {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #aaa;
    padding-left: 5px;
}

/* --- HATA BİLDİR FAB --- */
.bug-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.6);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    animation: bounceIn 1s;
}

/* --- ANİMASYONLAR --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- RESPONSIVE --- */
@media (max-height: 750px) {
    .logo-img {
        max-width: 130px;
    }

    .main-title {
        font-size: 1.8rem;
        margin-top: 5px;
    }

    .menu-container {
        gap: 14px;
        margin-bottom: 20px;
    }

    .game-mode-btn {
        padding: 12px 15px;
    }

    .collab-badge {
        top: -8px;
        right: 10px;
        font-size: 0.6rem;
        padding: 3px 8px;
    }

    .info-btn {
        width: 55px;
        font-size: 1.5rem;
    }

    .btn-icon {
        width: 45px;
        height: 45px;
        margin-right: 10px;
    }

    .btn-title {
        font-size: 1rem;
    }

    .social-pp {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .bug-fab {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        bottom: 15px;
        right: 15px;
    }

    .modal-content {
        padding: 20px 15px;
    }

    .ig-link-item {
        padding: 10px 12px;
    }

    .ig-icon-wrapper {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
}

@media (hover: hover) {

    .game-mode-btn:hover:not(.maintenance-mode),
    .info-btn:hover {
        background: rgba(31, 34, 86, 1);
        border-color: #fff;
        transform: translateY(-3px);
    }

    .social-link:hover .social-pp {
        border-color: #fff;
        background: var(--ytu-gold);
        color: var(--ytu-blue);
        transform: scale(1.1) translateY(-5px);
    }

    .bug-fab:hover {
        transform: scale(1.1) rotate(15deg);
        background: #c9302c;
    }
}