/* PotatoPlayer Launch Modal Styles */

/* OVERLAY */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* MODAL */
#modal {
    position: relative;
    width: 50vw;
    max-width: 900px;
    min-width: 600px;
    height: min(90vh, 700px);
    border-radius: 24px;
    background: linear-gradient(180deg,#ffffff,#f4faff);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    animation: modalEnter 0.5s ease-out forwards;
}

@keyframes modalEnter {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* CELEBRATION (TOP MOST) */
.celebration-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
    overflow: hidden;
}

.rocket {
    position: absolute;
    width: 4px;
    height: 26px;
    border-radius: 3px;
    opacity: 0.6;
}

.burst-stick {
    position: absolute;
    width: 4px;
    height: 14px;
    border-radius: 3px;
    opacity: 0.65;
    transform-origin: center bottom;
}

/* CONTENT */
.modal-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 60px 20px 20px 20px;
    display: flex;
    flex-direction: column;
}

.close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.1);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease;
}

.close:hover {
    background: rgba(0,0,0,0.2);
}

/* MODAL HERO */
.modal-hero {
    text-align: center;
    margin-top: 0;
    padding-top: 0;
}

.modal-app-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 10px;
    border-radius: 16px;
    display: block;
}

.modal-hero-badge {
    font-weight: 900;
    white-space: nowrap;
    background: linear-gradient(135deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.modal-hero-sub {
    margin-top: 6px;
    font-size: 15px;
    color: #666;
}

/* TABS - Previous style */
.tabs {
    margin-top: 16px;
    display: flex;
    border-bottom: 1px solid #eee;
    position: relative;
}

.tab-btn {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn.active {
    color: #333;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #feca57);
    border-radius: 3px 3px 0 0;
}

/* TAB CONTENT */
.tab-content {
    flex: 1;
    margin-top: 16px;
    display: none;
    overflow-y: auto;
    padding-right: 6px;
}

.tab-content.active {
    display: block;
}

.tab-content::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* INFO */
/* Modal Features List - Separate from site features */
.modal-features {
    max-width: 620px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.modal-features li {
    margin: 0;
    padding: 8px 0 8px 32px;
    position: relative;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    white-space: normal;
    display: block !important;
    width: 100% !important;
}

.modal-features li i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #4ade80;
    font-size: 16px;
}

/* Site Features List (for other pages) */
.features {
    max-width: 620px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.features li {
    margin: 12px 0;
    padding-left: 32px;
    position: relative;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    white-space: normal;
}

.features li i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #4ade80;
    font-size: 16px;
}

/* HOW TO */
.steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
    max-width: 780px;
    margin: 0 auto;
}

.step {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #eee;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.step img {
    width: 100%;
    height: 200px; /* Fixed height for full display */
    border-radius: 10px;
    margin-bottom: 10px;
    object-fit: contain; /* Show full image without cropping */
    background: #fff;
    border: 1px solid #e0e0e0;
}

.step-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    color: #333;
}

.step-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-details li {
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    color: #555;
    line-height: 1.4;
}

.step-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #00b4ff;
    font-weight: bold;
}

/* CTA */
.cta-wrap {
    display: flex;
    justify-content: center;
    padding: 18px 0 10px;
}

.cta {
    display: block;
    width: 100%;
    max-width: 320px;
    padding: 16px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.cta.google-play-btn {
    background: url('/assets/img/google-play-dl-btn.png') center/contain no-repeat;
    background-color: transparent;
    height: 90px;
    box-shadow: none;
    padding: 0;
}

/* COMMON NOTE (SAME ON ALL TABS) */
.common-note {
    margin: 18px auto 12px;
    max-width: 760px;
    padding-top: 14px;
    font-size: 14px;
    border-top: 1px dashed #cbd5e1;
    color: #374151;
    text-align: center;
    line-height: 1.6;
}

/* MOBILE RESPONSIVENESS */
@media(max-width: 768px) {
    /* Modal container for mobile */
    #modal {
        width: 95vw;
        max-width: 95vw;
        min-width: auto;
        height: 90vh;
        border-radius: 16px;
    }

    /* Content padding for mobile */
    .modal-content {
        padding: 5px 15px 15px 15px;
    }

    /* Hero adjustments for mobile */
    .modal-hero {
        margin-top: 0;
    }

    .modal-app-logo {
        width: 48px;
        height: 48px;
    }

    .modal-hero-badge {
        font-size: 1.3rem;
    }

    .modal-hero-sub {
        font-size: 13px;
    }

    /* Tabs for mobile */
    .tabs {
        margin-top: 12px;
    }

    .tab-btn {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    /* Features list for mobile - each point on new line */
    .features {
        max-width: 100%;
    }

    .features li {
        margin: 10px 0;
        padding-left: 28px;
        font-size: 13px;
        white-space: normal;
        display: block;
        width: 100%;
    }

    .features li i {
        font-size: 14px;
    }

    /* Steps grid for mobile */
    .steps {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 100%;
    }

    /* Step items for mobile */
    .step {
        padding: 12px;
        background: #f8f9fa;
        border: 1px solid #eee;
        border-radius: 12px;
    }

    /* Screenshots - show full height, maintain aspect ratio */
    .step img {
        width: 100%;
        height: 180px; /* Fixed height for consistency */
        object-fit: contain; /* Show full image without cropping */
        background: #fff;
        border: 1px solid #e0e0e0;
        margin-bottom: 8px;
    }

    .step-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .step-details li {
        font-size: 12px;
        line-height: 1.3;
    }

    /* CTA for mobile */
    .cta-wrap {
        padding: 14px 0 8px;
    }

    .cta {
        max-width: 100%;
        padding: 14px 20px;
        font-size: 0.9rem;
    }

    .cta.google-play-btn {
        height: 70px;
    }

    /* Common note for mobile */
    .common-note {
        font-size: 12px;
        margin: 14px auto 10px;
        padding-top: 12px;
    }

    /* Close button for mobile */
    .close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* VERY SMALL SCREENS */
@media(max-width: 480px) {
    .modal-hero-badge {
        font-size: 1.1rem;
    }

    .features li {
        font-size: 12px;
        padding-left: 24px;
    }

    .step img {
        height: 150px;
    }

    .step-title {
        font-size: 13px;
    }
}
