/* Study Page Styles */

.study-main {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 0;
}

.study-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Study Introduction */
.study-intro {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.study-header {
    text-align: center;
    margin-bottom: 2rem;
}

.study-category {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.study-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.study-header p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.study-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.detail-content {
    flex: 1;
}

.detail-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.detail-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.study-requirements {
    margin: 2rem 0;
}

.study-requirements h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.requirement-item i {
    color: #0ea5e9;
    font-size: 1rem;
}

.requirement-item span {
    color: #0c4a6e;
    font-weight: 500;
}

.quality-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fef3c7;
    border-radius: 12px;
    border: 1px solid #f59e0b;
    margin: 2rem 0;
}

.notice-icon {
    width: 40px;
    height: 40px;
    background: #f59e0b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.notice-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.notice-content p {
    color: #92400e;
    line-height: 1.6;
    margin: 0;
}

.intro-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Study Questions */
.study-questions {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.question-container {
    padding: 2rem;
}

.question-card {
    margin-bottom: 2rem;
}

.question-header {
    margin-bottom: 2rem;
}

.question-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.required-badge {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Question Types */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-item:hover {
    border-color: #6366f1;
    background: #f8fafc;
}

.option-item input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #6366f1;
}

.option-item input[type="radio"]:checked + .option-text {
    color: #6366f1;
    font-weight: 600;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
}

.text-input-container {
    margin-bottom: 1rem;
}

.text-input-container textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
}

.text-input-container textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.char-count {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.rating-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rating-option input[type="radio"] {
    display: none;
}

.rating-value {
    width: 50px;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
}

.rating-option:hover .rating-value {
    border-color: #6366f1;
    color: #6366f1;
}

.rating-option input[type="radio"]:checked + .rating-value {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

/* Question Navigation */
.question-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
}

.question-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: #64748b;
    font-size: 0.875rem;
}

.time-spent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.question-counter {
    font-weight: 500;
}

/* Study Completion */
.study-completion {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.completion-header {
    margin-bottom: 3rem;
}

.completion-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 2rem;
}

.completion-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.completion-header p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

.completion-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.25rem;
    color: white;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 2.5rem;
    background: #fafbfc;
}

/* Study Preview Content Styling */
.study-preview-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.study-info {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.study-info h4 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #667eea;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.study-info h4::before {
    content: "📊";
    font-size: 1.5rem;
}

.study-info p {
    margin: 0.75rem 0;
    color: #475569;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.study-info strong {
    color: #1e293b;
    font-weight: 600;
    min-width: 100px;
    display: inline-block;
}

.study-description {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.study-description h4 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.study-description h4::before {
    content: "🎯";
    font-size: 1.5rem;
}

.study-description p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.study-requirements {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.study-requirements h4 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.study-requirements h4::before {
    content: "✅";
    font-size: 1.5rem;
}

.study-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.study-requirements li {
    color: #475569;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.study-requirements li::before {
    content: "•";
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.study-requirements li:last-child {
    border-bottom: none;
}

.study-timeline {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.study-timeline h4 {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.study-timeline h4::before {
    content: "📅";
    font-size: 1.5rem;
}

.study-timeline p {
    color: #475569;
    margin: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.study-timeline strong {
    color: #1e293b;
    font-weight: 600;
    min-width: 100px;
    display: inline-block;
}

.save-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.save-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.option-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.option-content {
    flex: 1;
}

.option-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.option-content p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .study-container {
        padding: 0 0.5rem;
    }
    
    .study-intro,
    .study-completion {
        padding: 2rem;
    }
    
    .study-header h1 {
        font-size: 2rem;
    }
    
    .study-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-item {
        padding: 1rem;
    }
    
    .question-container {
        padding: 1.5rem;
    }
    
    .question-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .question-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .completion-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .intro-actions,
    .completion-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .rating-container {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .rating-value {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .study-intro,
    .study-completion {
        padding: 1.5rem;
    }
    
    .study-header h1 {
        font-size: 1.75rem;
    }
    
    .question-container {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1rem;
    }
}

/* Modal Footer Styling */
.modal-footer {
    padding: 1.5rem 2.5rem 2rem;
    background: white;
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid #e2e8f0;
}

.modal-footer .btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-footer .btn-secondary:hover {
    background: #f1f5f9;
    color: #475569;
    transform: translateY(-1px);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.modal-footer .btn-primary:active {
    transform: translateY(0);
} 