/* Common CSS for 500Quiz.com Quiz Site */

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Container Styles */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.container.quiz {
    max-width: 800px;
}

/* Header Styles */
.header {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 50px 30px;
    text-align: center;
}

.header.quiz {
    padding: 30px;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 15px;
}

.header.quiz h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Content Area */
.content {
    padding: 40px;
}

/* Button Styles */
.btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.large {
    padding: 15px 40px;
}

/* Card Styles */
.card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid #4ecdc4;
}

.card.question {
    background: #f8f9fa;
}

.card.result {
    text-align: center;
    padding: 30px;
    font-size: 1.3em;
}

/* Typography */
.text-center {
    text-align: center;
}

.text-primary {
    color: #4ecdc4;
}

.text-success {
    color: #28a745;
}

.text-danger {
    color: #dc3545;
}

.text-warning {
    color: #ffc107;
}

.text-muted {
    color: #666;
}

.text-dark {
    color: #333;
}

/* Score Display */
.score {
    font-size: 2em;
    font-weight: bold;
    color: #4ecdc4;
    margin: 20px 0;
}

/* Timer Styles */
.timer {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}

/* Grid Systems */
.grid {
    display: grid;
    gap: 25px;
}

.grid.auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.features {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Spacing Utilities */
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 15px; }
.mb-3 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 30px; }
.mb-5 { margin-bottom: 40px; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 15px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 30px; }
.mt-5 { margin-top: 40px; }

.p-1 { padding: 10px; }
.p-2 { padding: 15px; }
.p-3 { padding: 20px; }
.p-4 { padding: 30px; }

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2.2em;
    }
    
    .header.quiz h1 {
        font-size: 2em;
    }
    
    .content {
        padding: 20px;
    }
    
    .grid.auto-fit {
        grid-template-columns: 1fr;
    }
    
    .grid.features {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
        margin: 20px 0;
        padding: 20px 0;
    }
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
