/* ═══════════════════════════════════════════════════════════════════════════
   📜 LEGAL FOOTER & MODALS (Privacy, Terms, About)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Kayıt Hatırlatma Toast ─────────────────────────────────────────────── */
#reg-nudge {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(5,15,35,0.97), rgba(10,25,55,0.95));
    border: 1px solid rgba(var(--color-secondary-rgb), 0.5);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 12px rgba(var(--color-secondary-rgb),0.2);
    backdrop-filter: blur(10px);
    max-width: 520px;
    width: calc(100vw - 40px);
    animation: nudgeSlideUp 0.35s ease;
}

@keyframes nudgeSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.reg-nudge-icon { font-size: 1.6rem; flex-shrink: 0; }

.reg-nudge-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#reg-nudge-title {
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-family: var(--font-main);
}

#reg-nudge-msg {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.75);
    font-family: var(--font-main);
}

#reg-nudge-btn {
    background: var(--color-secondary);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-weight: bold;
    font-family: var(--font-main);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

#reg-nudge-btn:hover { filter: brightness(1.1); transform: scale(1.03); }

.reg-nudge-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}

.reg-nudge-close:hover { color: rgba(255,255,255,0.8); }

/* --- Footer Links --- */
.legal-footer {
    position: fixed;
    bottom: 10px;
    right: 15px;
    z-index: 50;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-main);
    display: flex;
    gap: 8px;
    align-items: center;
}

.footer-link {
    cursor: pointer;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 0 5px rgba(0, 234, 255, 0.5);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.2);
}

/* --- Play Store Badge --- */
#playstore-badge {
    position: fixed;
    bottom: 32px;
    right: 15px;
    z-index: 50;
    display: none; /* JS ile açılır: sadece web platformunda */
    align-items: center;
    gap: 7px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 8px;
    padding: 5px 10px 5px 8px;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

#playstore-badge:hover {
    border-color: rgba(0, 234, 255, 0.5);
    box-shadow: 0 0 12px rgba(0, 234, 255, 0.18);
    background: rgba(0, 10, 20, 0.65);
}

#playstore-badge .ps-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

#playstore-badge .ps-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

#playstore-badge .ps-text .ps-label {
    font-family: var(--font-main);
    font-size: 0.42rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

#playstore-badge .ps-text .ps-name {
    font-family: var(--font-main);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.3px;
}

body.in-game #playstore-badge,
body.crazygames-mode #playstore-badge,
body.reactnative-mode #playstore-badge {
    display: none !important;
}

/* Portrait mobile — footer top'a taşındığı için badge de top'ta */
@media (pointer: coarse) and (orientation: portrait) {
    #playstore-badge {
        bottom: auto;
        top: 28px;
        right: 10px;
        padding: 4px 8px 4px 6px;
        gap: 5px;
        border-radius: 7px;
    }

    #playstore-badge .ps-icon {
        width: 17px;
        height: 17px;
    }

    #playstore-badge .ps-text .ps-label {
        font-size: 0.37rem;
    }

    #playstore-badge .ps-text .ps-name {
        font-size: 0.6rem;
    }
}

/* Landscape mobile — footer aşağıda, badge hemen üstünde */
@media (pointer: coarse) and (orientation: landscape) {
    #playstore-badge {
        bottom: 26px;
        right: 10px;
        padding: 4px 8px 4px 6px;
        gap: 5px;
    }

    #playstore-badge .ps-icon {
        width: 17px;
        height: 17px;
    }

    #playstore-badge .ps-text .ps-label {
        font-size: 0.37rem;
    }

    #playstore-badge .ps-text .ps-name {
        font-size: 0.62rem;
    }
}

/* --- Legal Modal Wrapper --- */
.legal-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Legal Modal Content --- */
.legal-modal-content {
    background: linear-gradient(145deg, rgba(5, 15, 30, 0.98), rgba(10, 25, 50, 0.95));
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 234, 255, 0.2), inset 0 0 50px rgba(0, 234, 255, 0.05);
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ─── Günlük Giriş Ödülü Modal ─────────────────────────────────────────── */
.daily-reward-content {
    text-align: center;
    max-width: 380px;
    padding: 36px 28px 28px;
}

#daily-reward-icon {
    font-size: 3.5rem;
    margin-bottom: 8px;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.daily-reward-content h2 {
    background: none;
    padding: 0;
    margin: 0 0 6px;
    font-size: 1.3rem;
    color: #fff;
    border: none;
}

#daily-reward-streak {
    color: var(--color-primary);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-family: var(--font-main);
}

#daily-reward-amount {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--color-secondary);
    margin: 8px 0 20px;
    text-shadow: 0 0 15px rgba(var(--color-secondary-rgb), 0.6);
    font-family: var(--font-main);
}

#daily-reward-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-bottom: 22px;
}

.reward-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
}

.reward-dot.big-day {
    border-radius: 3px;
    border-color: rgba(var(--color-secondary-rgb), 0.5);
}

.reward-dot.completed {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.reward-dot.big-day.completed {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.reward-dot.current {
    transform: scale(1.4);
    box-shadow: 0 0 8px var(--color-primary);
}

.reward-dot.big-day.current {
    box-shadow: 0 0 10px var(--color-secondary);
}

.btn-claim-reward {
    background: linear-gradient(135deg, var(--color-primary), rgba(var(--color-primary-rgb), 0.6));
    border: none;
    color: #000;
    font-weight: bold;
    font-family: var(--font-main);
    font-size: 0.95rem;
    letter-spacing: 1px;
    padding: 12px 36px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-claim-reward:hover {
    box-shadow: 0 0 15px var(--color-primary);
    transform: scale(1.04);
}
/* ─────────────────────────────────────────────────────────────────────────── */

.legal-modal-content h2 {
    background: linear-gradient(90deg, rgba(0, 234, 255, 0.15), transparent);
    padding: 20px 25px;
    margin: 0;
    font-size: 1.3rem;
    color: var(--color-primary);
    border-bottom: 1px solid rgba(0, 234, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-modal-content h2 i {
    font-size: 1.1rem;
}

/* --- Close Button --- */
.close-legal-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 0, 85, 0.2);
    border: 1px solid rgba(255, 0, 85, 0.4);
    color: #ff0055;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-legal-modal:hover {
    background: rgba(255, 0, 85, 0.4);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
    transform: scale(1.1);
}

/* --- Legal Text Content --- */
.legal-text {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.legal-text::-webkit-scrollbar {
    width: 6px;
}

.legal-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.legal-text::-webkit-scrollbar-thumb {
    background: rgba(0, 234, 255, 0.3);
    border-radius: 3px;
}

.legal-text::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 234, 255, 0.5);
}

.legal-text .last-updated {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-style: italic;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-text h3 {
    color: var(--color-primary);
    font-size: 1rem;
    margin: 25px 0 12px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 234, 255, 0.2);
}

.legal-text h3:first-of-type {
    margin-top: 0;
}

.legal-text p {
    margin: 10px 0;
}

.legal-text ul {
    margin: 10px 0;
    padding-left: 25px;
}

.legal-text li {
    margin: 8px 0;
    position: relative;
}

.legal-text li::marker {
    color: var(--color-primary);
}

.legal-text strong {
    color: var(--color-secondary);
}

/* --- About Modal Special Styles --- */
.about-content {
    max-width: 800px;
}

.about-text {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

.about-text::-webkit-scrollbar {
    width: 6px;
}

.about-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.about-text::-webkit-scrollbar-thumb {
    background: rgba(0, 234, 255, 0.3);
    border-radius: 3px;
}

/* --- About Hero Section --- */
.about-hero {
    text-align: center;
    padding: 20px 0 30px 0;
    border-bottom: 1px solid rgba(0, 234, 255, 0.2);
    margin-bottom: 25px;
}

.about-hero h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 15px;
    font-weight: 400;
}

/* --- About Ships Display --- */
.about-ships-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.about-ship {
    width: 60px;
    height: 60px;
    background: linear-gradient(145deg, rgba(0, 234, 255, 0.1), rgba(0, 234, 255, 0.05));
    border: 2px solid rgba(0, 234, 255, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    animation: shipFloat 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.3);
}

.about-ship.elite {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-color: rgba(255, 215, 0, 0.5);
    color: var(--color-secondary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    animation-delay: 0.5s;
}

.about-ship.small {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
}

@keyframes shipFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* --- About Sections --- */
.about-section {
    margin-bottom: 25px;
}

.about-section h4 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section h4 i {
    color: var(--color-secondary);
}

.about-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 10px 0;
}

/* --- About Features --- */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(0, 234, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.about-feature i {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 2px;
}

.about-feature span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* --- About Ships Grid --- */
.about-ships-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.about-ship-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(0, 234, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 234, 255, 0.2);
    transition: all var(--transition-fast);
}

.about-ship-item:hover {
    background: rgba(0, 234, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 234, 255, 0.2);
}

.about-ship-item.elite-ship {
    background: rgba(255, 215, 0, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
}

.about-ship-item.elite-ship:hover {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.ship-mini-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
}

.ship-mini-icon.fighter {
    background: linear-gradient(145deg, rgba(0, 234, 255, 0.2), transparent);
    color: var(--color-primary);
}

.ship-mini-icon.sniper {
    background: linear-gradient(145deg, rgba(255, 0, 85, 0.2), transparent);
    color: var(--color-danger);
}

.ship-mini-icon.tank {
    background: linear-gradient(145deg, rgba(0, 136, 255, 0.2), transparent);
    color: var(--glow-blue);
}

.ship-mini-icon.speedy {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.2), transparent);
    color: var(--color-secondary);
}

.ship-mini-icon.healer {
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.2), transparent);
    color: var(--color-success);
}

.ship-mini-icon.elite-phantom {
    background: linear-gradient(145deg, rgba(170, 0, 255, 0.2), transparent);
    color: var(--glow-purple);
}

.ship-mini-icon.elite-titan {
    background: linear-gradient(145deg, rgba(255, 170, 0, 0.2), transparent);
    color: var(--color-warning);
}

.ship-mini-icon.elite-omega {
    background: linear-gradient(145deg, rgba(255, 215, 0, 0.2), transparent);
    color: var(--color-secondary);
}

.about-ship-item span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.about-ship-item.elite-ship span {
    color: var(--color-secondary);
}

.about-note {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

/* --- About Footer --- */
.about-footer {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid rgba(0, 234, 255, 0.2);
}

.about-version {
    display: inline-block;
    background: linear-gradient(90deg, rgba(0, 234, 255, 0.2), rgba(255, 215, 0, 0.2));
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.about-footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.about-contact {
    margin: 15px 0;
}

.about-contact a {
    color: #00eaff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 20px;
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 25px;
    background: rgba(0, 234, 255, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.about-contact a:hover {
    background: rgba(0, 234, 255, 0.2);
    border-color: #00eaff;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.3);
    transform: translateY(-2px);
}

.about-contact a i {
    font-size: 1rem;
}

/* --- Hide footer during gameplay --- */
body.in-game .legal-footer {
    display: none;
}

/* --- Mobile Responsive for Legal Footer & Modals --- */
@media (pointer: coarse) and (orientation: portrait) {
    .legal-footer {
        bottom: auto;
        top: 10px;
        right: 10px;
        font-size: 0.5rem;
        gap: 5px;
    }

    .legal-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .legal-modal-content h2 {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .legal-text,
    .about-text {
        padding: 15px;
        font-size: 0.8rem;
    }

    .about-ships-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .about-ship-item {
        padding: 8px 4px;
    }

    .ship-mini-icon {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .about-ship-item span {
        font-size: 0.55rem;
    }

    .about-ship {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (pointer: coarse) and (orientation: landscape) {
    .legal-footer {
        bottom: 8px;
        right: 10px;
        font-size: 0.55rem;
        gap: 6px;
    }

    .legal-modal-content {
        max-height: 95vh;
    }

    .about-ships-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

