/* PrepSharp Question Page Styles - Dashboard Style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #F0FBFF 0%, #E1F5FE 100%);
    min-height: 100vh;
    padding-top: 106px;
    line-height: 1.6;
    color: #2c3e50;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    height: 56px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.back-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateX(-2px);
}

.breadcrumb-center {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-center a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.breadcrumb-center a:hover {
    opacity: 1;
}

/* Question Meta Bar */
.question-meta-bar {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    font-weight: 600;
    color: #4f46e5;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 99;
}

.question-number {
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
}

.paper-info {
    font-size: 14px;
    color: #666;
}

/* Container */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Question Panel */
.question-panel {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Question Tags */
.question-tags {
    display: flex;
    gap: 10px;
    padding: 20px 30px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(248,250,255,0.8), rgba(241,245,249,0.8));
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
}

.tag {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.subject-physics {
    background: #e3f2fd;
    color: #1976d2;
}

.subject-chemistry {
    background: #fff3e0;
    color: #f57c00;
}

.subject-mathematics {
    background: #f3e5f5;
    color: #7b1fa2;
}

.chapter-tag {
    background: #f3e5f5;
    color: #7b1fa2;
}

.difficulty-easy {
    background: #e8f5e9;
    color: #388e3c;
}

.difficulty-medium {
    background: #fff3e0;
    color: #f59e0b;
}

.difficulty-hard {
    background: #ffebee;
    color: #d32f2f;
}

.marks-tag {
    background: #fce4ec;
    color: #c2185b;
}

.type-tag {
    background: #e8eaf6;
    color: #5e35b1;
}

/* Question Content */
.question-content {
    padding: 30px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #4f46e5;
}

.question-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #2c3e50;
}

.question-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
    margin: 20px 0;
    display: block;
    border: 2px solid rgba(79, 70, 229, 0.1);
}

/* Options Section */
.options-section {
    padding: 0 30px 30px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.option-card {
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    background: rgba(248,250,255,0.8);
}

.option-card:hover {
    border-color: #4f46e5;
    background: #f8faff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}

.option-label {
    font-weight: 600;
    color: #4f46e5;
    margin-bottom: 10px;
    display: block;
    font-size: 14px;
}

.option-image {
    max-width: 100%;
    border-radius: 8px;
}

/* Numerical Info */
.numerical-info {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #4f46e5;
    margin: 20px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.numerical-info i {
    color: #4f46e5;
    font-size: 24px;
}

.numerical-info strong {
    color: #4f46e5;
    display: block;
    margin-bottom: 5px;
}

.numerical-info p {
    color: #666;
    margin: 0;
}

/* Solution Panel */
.solution-panel {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.solution-tabs {
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, rgba(248,250,255,0.8), rgba(241,245,249,0.8));
    border-bottom: 2px solid rgba(79, 70, 229, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(79, 70, 229, 0.05);
    color: #4f46e5;
}

.tab-btn.active {
    background: white;
    color: #4f46e5;
    border-bottom: 3px solid #4f46e5;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

.solution-content {
    margin-bottom: 20px;
}

.solution-image {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 16px;
}

.solution-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.solution-placeholder i {
    font-size: 48px;
    color: #4f46e5;
    margin-bottom: 16px;
    display: block;
}

.unlock-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 12px 32px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* Add Solution Section */
.add-solution-section {
    margin-bottom: 30px;
}

.help-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.solution-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 16px;
}

.solution-textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.submit-solution-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.submit-solution-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.community-solutions {
    margin-top: 30px;
}

.no-solutions {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

/* Info Card */
.info-card {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.info-item i {
    color: #4f46e5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.3);
    margin-bottom: 30px;
}

.cta-section h2 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.cta-section p {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 24px;
}

.cta-btn {
    background: white;
    color: #4f46e5;
    padding: 14px 32px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 106px;
    }
    
    .header {
        padding: 0 12px;
    }
    
    .header-left img {
        height: 28px;
    }
    
    .header-left span {
        font-size: 16px;
    }
    
    .breadcrumb-center {
        display: none;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .question-panel {
        margin: 20px 0;
    }
    
    .question-tags {
        padding: 15px;
        gap: 8px;
    }
    
    .tag {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .question-content {
        padding: 20px 15px;
    }
    
    .options-section {
        padding: 0 15px 20px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .solution-panel {
        margin: 20px 0;
    }
    
    .tab-content {
        padding: 20px 15px;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .cta-section h2 {
        font-size: 20px;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding-top: 0;
    }
    
    .header,
    .question-meta-bar,
    .cta-section,
    .add-solution-section {
        display: none;
    }
    
    .container {
        max-width: 100%;
    }
    
    .question-panel,
    .solution-panel {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
