/* ========================================
   Gatekeeper Download Manager - Public Styles
   Version: 1.0.1
   ======================================== */

/* ========== Reset & Base ========== */
.gatekeeper-gate-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
}

/* ========== Container ========== */
.gatekeeper-container {
    width: 90%;
    max-width: 600px;
    padding: 20px;
}

/* ========== Card ========== */
.gatekeeper-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 40px;
    text-align: center;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Branding ========== */
.gatekeeper-branding {
    margin-bottom: 30px;
}

.gatekeeper-site-link {
    display: inline-flex;
    align-items: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.gatekeeper-site-link:hover {
    color: #3b82f6;
}

/* ========== Heading ========== */
.gatekeeper-heading {
    margin: 0 0 30px;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

/* ========== Ad Slot ========== */
.gatekeeper-ad-slot {
    margin: 30px 0;
    min-height: 100px;
    background: #f9fafb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gatekeeper-ad-placeholder {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

/* ========== Countdown Timer ========== */
.gatekeeper-timer {
    margin: 40px 0;
}

.gatekeeper-countdown-wrapper {
    display: inline-block;
    padding: 30px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

#gatekeeper-countdown {
    display: block;
    font-size: 72px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gatekeeper-countdown-text {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== Download Button ========== */
.gatekeeper-action {
    margin-top: 40px;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gatekeeper-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #10b981;
    color: #ffffff !important;
    padding: 16px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.gatekeeper-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.gatekeeper-download-btn:hover::before {
    left: 100%;
}

.gatekeeper-download-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

.gatekeeper-download-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.3);
}

.gatekeeper-btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.gatekeeper-download-note {
    margin-top: 15px;
    font-size: 13px;
    color: #6b7280;
}

/* ========== Footer Note ========== */
.gatekeeper-footer-note {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.gatekeeper-footer-note p {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
}

/* ========== Responsive Design ========== */
@media (max-width: 640px) {
    .gatekeeper-card {
        padding: 30px 20px;
    }
    
    .gatekeeper-heading {
        font-size: 24px;
    }
    
    #gatekeeper-countdown {
        font-size: 60px;
    }
    
    .gatekeeper-countdown-wrapper {
        padding: 25px 35px;
    }
    
    .gatekeeper-download-btn {
        padding: 14px 32px;
        font-size: 16px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gatekeeper-container {
        width: 95%;
        padding: 10px;
    }
    
    .gatekeeper-card {
        padding: 25px 15px;
    }
    
    .gatekeeper-heading {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    #gatekeeper-countdown {
        font-size: 48px;
    }
    
    .gatekeeper-countdown-wrapper {
        padding: 20px 30px;
    }
    
    .gatekeeper-ad-slot {
        margin: 20px 0;
        min-height: 80px;
    }
}

/* ========== Print Styles ========== */
@media print {
    .gatekeeper-gate-body {
        background: #ffffff;
    }
    
    .gatekeeper-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    .gatekeeper-ad-slot {
        display: none;
    }
}
