/**
 * Ad Gate Page Styles
 */

/* ========================================
   Variables
   ======================================== */
:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --text: #1f2937;
    --text-muted: #6b7280;
    --bg: #f3f4f6;
    --card-bg: #ffffff;
    --border: #e5e7eb;
    --radius: 16px;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ========================================
   Gate Container
   ======================================== */
.gate-container {
    width: 100%;
    max-width: 500px;
}

.gate-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
}

/* ========================================
   Logo
   ======================================== */
.gate-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

/* ========================================
   Ad Space
   ======================================== */
.ad-space {
    margin-bottom: 32px;
}

.ad-placeholder {
    background: var(--bg);
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========================================
   Progress
   ======================================== */
.gate-progress {
    margin-bottom: 24px;
}

.progress-bar {
    height: 8px;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 1s linear;
    border-radius: 4px;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

#countdown {
    font-weight: 700;
    color: var(--primary);
}

/* ========================================
   Button
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 48px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}

.btn-primary:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
}

.btn-skip {
    margin-bottom: 24px;
}

/* ========================================
   Info
   ======================================== */
.gate-info {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========================================
   Affiliate Section
   ======================================== */
.affiliate-section {
    margin-top: 24px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.affiliate-section p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.affiliate-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.affiliate-btn {
    padding: 10px 20px;
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.affiliate-btn:hover {
    background: var(--primary);
    color: white;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 500px) {
    .gate-card {
        padding: 30px 20px;
    }
    
    .affiliate-links {
        flex-direction: column;
    }
    
    .affiliate-btn {
        width: 100%;
    }
}
