/* Common Styles for All Mock Test Pages */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header - Slate Style */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 10px;
    z-index: 999;
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Slate Logo Styling */
.slate-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 100;
}

.slate-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.slate-logo-link:hover {
    transform: scale(1.05);
}

.slate-logo-link:active {
    transform: scale(0.98);
}

.slate-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Timer Styles */
.timer {
    background: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 20px;
    font-weight: bold;
    font-family: monospace;
    display: none !important;
    position: relative;
}

.timer-icon {
    display: none;
    margin-right: 5px;
}

.timer.warning {
    background: #ff9800;
    animation: pulse-warning 1s ease-in-out infinite;
}

.timer.danger {
    background: #f44336;
    animation: pulse 0.5s ease-in-out infinite;
}

/* Desktop Timer in Question Panel */
.desktop-timer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 15px;
    min-width: 100px;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.desktop-timer .timer-icon {
    font-size: 16px;
}

.desktop-timer.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 2px 10px rgba(255, 152, 0, 0.3);
    animation: pulse 1s infinite;
}

.desktop-timer.danger {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.3);
    animation: pulse 0.5s infinite;
}

/* Screen Management */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Button Styles */
.btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn.secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn.secondary:hover {
    background: #f7f7ff;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Question Area Styles */
.question-area {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.question-number {
    font-size: 18px;
    color: #667eea;
    font-weight: 600;
}

.question-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #333;
}

/* Options Styles */
.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.option {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.option:hover {
    background: #f8f8ff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Animation Keyframes */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes pulse-warning {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header {
        padding: 10px 12px;
        height: 45px;
        border-radius: 0;
        margin-bottom: 15px;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .header .timer {
        display: flex !important;
    }
    
    .desktop-timer {
        display: none !important;
    }
    
    .slate-logo-container {
        flex: 1;
        gap: 10px;
    }
    
    .slate-logo-img {
        height: 30px;
    }
    
    .timer {
        padding: 6px 12px;
        font-size: 14px;
        border-radius: 20px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        align-items: center;
        min-width: 65px;
        justify-content: center;
    }
    
    .timer-icon {
        display: inline;
        font-size: 12px;
    }
    
    .options {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .option {
        padding: 12px 15px;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .slate-logo-container {
        gap: 8px;
    }
    
    .slate-logo-img {
        height: 28px;
    }
    
    .timer {
        padding: 5px 10px;
        font-size: 13px;
        min-width: 60px;
    }
}

/* Hide header timer on desktop completely */
@media (min-width: 769px) {
    .header .timer {
        display: none !important;
    }
}

/* Ad Container Styles - Matching slate.freejobalert.com */
.ad-container {
    text-align: center;
    margin: 3rem auto;
    padding: 1rem;
    max-width: 1200px;
    width: 100%;
    position: relative;
}

.video-ad-container {
    margin: 2rem auto;
    text-align: center;
    min-height: 280px;
    max-width: 1200px;
    padding: 1rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
    position: relative;
}

.display-ad-container {
    margin: 2rem auto;
    text-align: center;
    max-width: 1200px;
    padding: 1rem;
    min-height: 90px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.video-ad-container[data-ad-loaded="true"] {
    background: transparent;
    animation: none;
    min-height: auto;
}

/* Mobile Ad Adjustments */
@media (max-width: 768px) {
    .ad-container,
    .video-ad-container,
    .display-ad-container {
        margin: 1.5rem auto;
        padding: 0.75rem;
    }
    
    .video-ad-container {
        min-height: 200px;
    }
}