/* Workshop Template Styles */
/* Specific styles for Science in Action Workshop pages */

/* ========================================
   ROLE SELECTOR
   ======================================== */

.role-selector {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.role-prompt {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.role-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.role-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 2.5rem;
    border: 2px solid #2e7d32;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.role-btn:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.role-btn.active {
    background: #2e7d32;
    color: white;
}

.role-btn.active .role-label {
    color: white;
}

.role-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.role-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2e7d32;
}

/* ========================================
   SECTION VISIBILITY
   ======================================== */

.section-student,
.section-instructor {
    animation: fadeIn 0.4s ease;
}

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

/* ========================================
   INTERACTIVE DIAGRAM
   ======================================== */

.interactive-section {
    margin: 2rem 0;
}

.section-intro {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.interactive-diagram {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.diagram-placeholder {
    text-align: center;
    color: #999;
    padding: 2rem;
}

.diagram-placeholder p {
    font-size: 1.1rem;
}

.interactive-diagram svg {
    width: 100%;
    height: 100%;
    max-height: 500px;
}

.diagram-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* ========================================
   ACCORDION (CONCEPTS)
   ======================================== */

.concepts-section {
    margin: 2rem 0;
}

.accordion-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #45a049, #388e3c);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.accordion-chevron {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-item.open .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background: white;
    transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: 1.5rem;
    line-height: 1.7;
    color: #333;
}

.accordion-body p {
    margin-bottom: 1rem;
}

.accordion-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.accordion-body li {
    margin-bottom: 0.5rem;
}

/* ========================================
   STUDENT INPUT FORM
   ======================================== */

.student-input-section,
.conclusions-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.student-input-form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.form-group textarea,
.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.save-status {
    font-size: 0.9rem;
    color: #666;
}

.save-status.saved {
    color: #2e7d32;
}

.save-status.saving {
    color: #f57c00;
}

.save-status.error {
    color: #c62828;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #4CAF50, #388e3c);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-link {
    background: none;
    color: #2e7d32;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-icon {
    font-size: 1.1rem;
}

/* ========================================
   PHOTO UPLOAD (COMPETITION)
   ======================================== */

.competition-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.photo-upload-area {
    margin-bottom: 1.5rem;
}

.upload-zone {
    background: white;
    border: 3px dashed #ffb74d;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-zone:hover {
    border-color: #ff9800;
    background: #fff8e1;
}

.upload-zone.drag-over {
    border-color: #ff9800;
    background: #fff8e1;
    transform: scale(1.01);
}

.upload-placeholder {
    color: #666;
}

.upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.upload-hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

.photo-preview {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: contain;
}

.competition-form {
    max-width: 600px;
}

.hashtags-preview {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.hashtag {
    display: inline-block;
    background: #e3f2fd;
    color: #1565c0;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.9rem;
}

/* ========================================
   INSTRUCTOR SECTION
   ======================================== */

.instructor-concepts-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.instructor-content {
    line-height: 1.8;
    color: #333;
}

.instructor-content h3 {
    color: #2e7d32;
    margin: 1.5rem 0 1rem;
    font-size: 1.2rem;
}

.instructor-content p {
    margin-bottom: 1rem;
}

.instructor-content .formula {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
    overflow-x: auto;
}

/* ========================================
   TEACHING TIPS
   ======================================== */

.teaching-tips-section {
    margin: 2rem 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tip-card h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8f5e9;
}

.tip-content {
    color: #555;
    line-height: 1.7;
}

.tip-content ul {
    margin: 0;
    padding-left: 1.25rem;
}

.tip-content li {
    margin-bottom: 0.5rem;
}

/* ========================================
   EMAIL NOTES
   ======================================== */

.email-notes-section {
    background: #f3e5f5;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.email-form {
    max-width: 400px;
}

/* ========================================
   ORDER KITS
   ======================================== */

.order-kits-section {
    margin: 2rem 0;
}

.kit-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-wrap: wrap;
    gap: 1rem;
}

.kit-info h3 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

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

/* ========================================
   SOCIAL SHARING
   ======================================== */

.social-sharing-section {
    margin: 2rem 0;
}

.social-share-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.share-preview {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.share-preview p {
    margin: 0;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.6;
}

.share-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-copy {
    background: #607d8b;
    color: white;
}

.btn-copy:hover {
    background: #546e7a;
}

.btn-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.btn-instagram:hover {
    opacity: 0.9;
}

.btn-facebook {
    background: #1877f2;
    color: white;
}

.btn-facebook:hover {
    background: #166fe5;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .role-selector {
        padding: 1.5rem;
    }

    .role-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .role-btn {
        min-width: auto;
        padding: 1rem 1.5rem;
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .role-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .student-input-section,
    .conclusions-section,
    .competition-section,
    .instructor-concepts-section,
    .email-notes-section {
        padding: 1.5rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .kit-card {
        flex-direction: column;
        text-align: center;
    }

    .share-actions {
        flex-direction: column;
    }

    .share-actions .btn {
        width: 100%;
    }

    .diagram-controls {
        flex-direction: column;
    }

    .diagram-controls .btn {
        width: 100%;
    }
}

/* ========================================
   LOADING & STATUS STATES
   ======================================== */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: #4CAF50;
}

.toast.error {
    background: #f44336;
}

.toast.info {
    background: #2196f3;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
