/* ========================================================== */
/* Adobe Download Landing Page - Dark Adobe Theme             */
/* ========================================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
                 'Helvetica Neue', Arial, sans-serif;
    background: #121212;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Full-screen background image with dark overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('imgs/bg.jpg') no-repeat center center / cover fixed;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

/* --- Adobe Brand Bar --- */
.brand-bar {
    width: 100%;
    background: #eb1000;
    height: 4px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

/* --- Container (Dark Card) --- */
.container {
    max-width: 680px;
    width: 100%;
    margin: 2rem auto;
    padding: 2.5rem 2rem;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    z-index: 1;
    border: 1px solid #333333;
}

/* --- Adobe Logo --- */
.adobe-logo {
    margin-bottom: 1.5rem;
}

.adobe-logo img {
    width: 200px;
    height: auto;
    display: inline-block;
}

/* --- Headings --- */
h1 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

p.description {
    font-size: 1rem;
    color: #aaaaaa;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

p.description strong {
    color: #e0e0e0;
}

/* --- Divider --- */
.divider {
    height: 1px;
    background: #333333;
    margin: 1.5rem 0;
}

/* --- Download Section --- */
.download-section {
    padding: 1rem 0;
}

/* Countdown */
.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: #aaaaaa;
}

.countdown-container .timer-icon {
    width: 20px;
    height: 20px;
    color: #eb1000;
}

#countdown {
    font-size: 1.3rem;
    font-weight: 700;
    color: #eb1000;
    min-width: 28px;
    display: inline-block;
}

/* Manual download button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2.4rem;
    background: #eb1000;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(235, 16, 0, 0.3);
}

.btn-download:hover {
    background: #c00e00;
    box-shadow: 0 4px 14px rgba(235, 16, 0, 0.45);
}

.btn-download:active {
    transform: scale(0.97);
}

.btn-download:disabled {
    background: #555555;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-download svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* --- Download Progress Bar --- */
.download-progress {
    display: none;
    margin-top: 1.25rem;
}

.download-progress.active {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #333333;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar .bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #eb1000, #ff4d2e);
    border-radius: 3px;
    transition: width 1.5s ease-in-out;
}

.download-progress.active .bar-fill {
    width: 100%;
}

.download-progress .progress-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #888888;
}

/* --- Footer --- */
.footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #333333;
    font-size: 0.8rem;
    color: #666666;
}

.footer a {
    color: #eb1000;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ========================================================== */
/* Mobile Blocked Screen                                      */
/* ========================================================== */

.mobile-blocked {
    display: none; /* Shown only when PHP serves the blocked variant */
}

.mobile-blocked-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(13, 13, 13, 0.85);
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.mobile-blocked-screen .blocked-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    color: #eb1000;
}

.mobile-blocked-screen h1 {
    font-size: 1.8rem;
    color: #f0f0f0;
    margin-bottom: 1rem;
}

.mobile-blocked-screen p {
    font-size: 1rem;
    color: #999999;
    max-width: 420px;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.mobile-blocked-screen .blocked-divider {
    width: 60px;
    height: 3px;
    background: #eb1000;
    margin: 1.5rem auto;
    border-radius: 2px;
}

.mobile-blocked-screen .blocked-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #555555;
}

/* ========================================================== */
/* Download Modal                                             */
/* ========================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 14px;
    padding: 2.5rem 2.2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    background: rgba(235, 16, 0, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50;
}

.modal-icon svg {
    width: 28px;
    height: 28px;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 0.6rem;
}

.modal-desc {
    font-size: 0.92rem;
    color: #999;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn-modal {
    padding: 0.7rem 1.6rem;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-modal:active {
    transform: scale(0.96);
}

.btn-modal-close {
    background: #eb1000;
    color: #fff;
    box-shadow: 0 2px 8px rgba(235, 16, 0, 0.3);
}

.btn-modal-close:hover {
    background: #c00e00;
}

.btn-modal-keep {
    background: #333;
    color: #ccc;
}

.btn-modal-keep:hover {
    background: #444;
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .container {
        margin: 1rem;
        padding: 1.5rem 1.25rem;
        border-radius: 8px;
    }

    h1 {
        font-size: 1.3rem;
    }

    p.description {
        font-size: 0.9rem;
    }

    .btn-download {
        padding: 0.75rem 1.8rem;
        font-size: 0.95rem;
    }

    .adobe-logo img {
        width: 160px;
    }
}
