/**
 * Landing Page Styles
 * Card-based layout for question type selection
 */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px 20px;
}

.header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.header .subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 400;
}

/* Question Types Grid */
.question-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Overall Analytics Section */
.overall-analytics {
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.overall-analytics-header h2 {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.overall-analytics-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.overall-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.overall-analytics-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    border-left: 4px solid #4A90E2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.overall-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.overall-card-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 6px;
}

.overall-card-stat span {
    font-weight: 600;
    color: #222;
}

.overall-insights {
    margin-top: 20px;
    padding: 14px 16px;
    background: #f5f7ff;
    border-radius: 10px;
    border-left: 4px solid #4A90E2;
}

.overall-insight-item {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 6px;
}

.overall-insight-item:last-child {
    margin-bottom: 0;
}

/* Question Type Card */
.question-type-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid transparent;
}

.question-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #4A90E2;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.question-type-card h2 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
}

.question-type-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Card Stats */
.card-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.card-stats span {
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #555;
}

/* Card Button */
.card-button {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.card-button:hover {
    background: #357ABD;
}

.card-button:active {
    transform: scale(0.98);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .header .subtitle {
        font-size: 1rem;
    }

    .question-types-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .question-type-card {
        padding: 25px;
    }

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

    .question-type-card h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .header {
        margin-bottom: 30px;
        padding: 20px 10px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .question-type-card {
        padding: 20px;
    }
}

/* Global body reset if needed */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    transition: background 0.3s ease;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode-toggle i {
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.dark-mode-toggle .fa-sun {
    display: none;
    color: #ffd700;
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

body.dark-mode .dark-mode-toggle {
    background: rgba(46, 46, 82, 0.95);
}

body.dark-mode .dark-mode-toggle i {
    color: #ffd700;
}

body.dark-mode .header h1 {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

body.dark-mode .header .subtitle {
    color: #b8b8d4;
}

body.dark-mode .question-type-card {
    background: linear-gradient(145deg, #2d2d44 0%, #1a1a2e 100%);
    border: 2px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.dark-mode .question-type-card:hover {
    border-color: #8a2be2;
    box-shadow: 0 12px 48px rgba(138, 43, 226, 0.4);
    transform: translateY(-8px);
}

body.dark-mode .question-type-card h2 {
    color: #e8e8ff;
}

body.dark-mode .question-type-card p {
    color: #a8a8c8;
}

body.dark-mode .card-stats span {
    background: rgba(138, 43, 226, 0.2);
    color: #b8b8d4;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

body.dark-mode .card-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

body.dark-mode .card-button:hover {
    background: linear-gradient(135deg, #7c8fe8 0%, #8a5cb8 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

body.dark-mode .overall-analytics {
    background: rgba(26, 26, 46, 0.85);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .overall-analytics-header h2 {
    color: #f0f0ff;
}

body.dark-mode .overall-analytics-subtitle {
    color: #b8b8d4;
}

body.dark-mode .overall-analytics-card {
    background: #1f1f38;
    border-left-color: #8a2be2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .overall-card-title {
    color: #e8e8ff;
}

body.dark-mode .overall-card-stat {
    color: #b8b8d4;
}

body.dark-mode .overall-card-stat span {
    color: #f0f0ff;
}

body.dark-mode .overall-insights {
    background: rgba(138, 43, 226, 0.15);
    border-left-color: #8a2be2;
}

body.dark-mode .overall-insight-item {
    color: #d8d8f0;
}
