/**
 * Focus on Photography - Frontend Styles
 *
 * Styles for the upload form and gallery displays.
 *
 * @package FocusOnPhotography
 * @since 1.0.0
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
    --fop-gold: #FFD700;
    --fop-grey-light: #f5f5f5;
    --fop-grey-dark: #333;
    --fop-success: #4CAF50;
    --fop-warning: #ff9800;
    --fop-error: #f44336;
    --fop-primary: #2196F3;
    --fop-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   Upload Form Base Styles
   ========================================================================== */

.fop-upload-form-wrapper {
    font-family: var(--fop-font-family);
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.fop-upload-form-wrapper * {
    box-sizing: border-box;
}

/* ==========================================================================
   Weekly Quote Display
   ========================================================================== */

.fop-weekly-quote {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--fop-gold);
    padding: 20px 24px;
    margin-bottom: 24px;
    border-radius: 0 8px 8px 0;
}

.fop-weekly-quote blockquote {
    margin: 0;
    font-size: 18px;
    font-style: italic;
    color: var(--fop-grey-dark);
    line-height: 1.6;
}

.fop-weekly-quote cite {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    font-style: normal;
}

/* ==========================================================================
   Challenge Card Display
   ========================================================================== */

.fop-challenge-card {
    background: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.fop-challenge-card .challenge-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.fop-challenge-card .challenge-title {
    font-size: 16px;
    font-weight: 600;
    color: #e65100;
    margin-bottom: 8px;
}

.fop-challenge-card .challenge-text {
    font-size: 18px;
    color: var(--fop-grey-dark);
    line-height: 1.5;
}

/* ==========================================================================
   Form Fields
   ========================================================================== */

.fop-form-group {
    margin-bottom: 20px;
}

.fop-form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--fop-grey-dark);
    margin-bottom: 8px;
}

.fop-form-group label .required {
    color: var(--fop-error);
}

.fop-form-group input[type="text"],
.fop-form-group textarea,
.fop-form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: var(--fop-font-family);
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}

.fop-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.fop-form-group input[type="text"]:focus,
.fop-form-group textarea:focus,
.fop-form-group select:focus {
    outline: none;
    border-color: var(--fop-primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

.fop-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Character Counter */
.fop-char-counter {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
    font-size: 14px;
    color: #666;
}

.fop-char-counter.warning {
    color: var(--fop-warning);
}

.fop-char-counter.error {
    color: var(--fop-error);
}

.fop-char-counter .counter-icon {
    margin-right: 4px;
}

/* ==========================================================================
   File Upload
   ========================================================================== */

.fop-file-upload {
    position: relative;
}

.fop-file-dropzone {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.fop-file-dropzone:hover,
.fop-file-dropzone.dragover {
    border-color: var(--fop-primary);
    background-color: rgba(33, 150, 243, 0.05);
}

.fop-file-dropzone .upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.fop-file-dropzone .upload-text {
    font-size: 16px;
    color: #666;
}

.fop-file-dropzone .upload-hint {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

.fop-file-dropzone input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

/* File Preview */
.fop-file-preview {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: var(--fop-grey-light);
    border-radius: 8px;
}

.fop-file-preview.visible {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fop-file-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.fop-file-preview .file-info {
    flex: 1;
}

.fop-file-preview .file-name {
    font-weight: 600;
    color: var(--fop-grey-dark);
}

.fop-file-preview .file-size {
    font-size: 14px;
    color: #666;
}

.fop-file-preview .remove-file {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.fop-file-preview .remove-file:hover {
    opacity: 1;
}

/* ==========================================================================
   Checkboxes
   ========================================================================== */

.fop-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.fop-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 16px;
    background: var(--fop-grey-light);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.2s, background-color 0.2s;
}

.fop-checkbox-label:hover {
    background: #eee;
}

.fop-checkbox-label.checked {
    border-color: var(--fop-gold);
    background: #fffbeb;
}

.fop-checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--fop-gold);
}

.fop-checkbox-label .checkbox-icon {
    font-size: 24px;
}

.fop-checkbox-label .checkbox-text {
    flex: 1;
}

.fop-checkbox-label .checkbox-text strong {
    display: block;
    font-size: 16px;
    color: var(--fop-grey-dark);
}

.fop-checkbox-label .checkbox-text span {
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   Journalette (Collapsible)
   ========================================================================== */

.fop-journalette-toggle {
    width: 100%;
    background: none;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: border-color 0.2s, color 0.2s;
    margin-bottom: 20px;
}

.fop-journalette-toggle:hover {
    border-color: var(--fop-primary);
    color: var(--fop-primary);
}

.fop-journalette-toggle .toggle-icon {
    transition: transform 0.2s;
}

.fop-journalette-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.fop-journalette-content {
    display: none;
    background: #f0f7ff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.fop-journalette-content.visible {
    display: block;
}

.fop-journalette-content .journalette-question {
    font-size: 16px;
    font-weight: 600;
    color: var(--fop-grey-dark);
    margin-bottom: 12px;
}

/* ==========================================================================
   Progress Bar
   ========================================================================== */

.fop-upload-progress {
    display: none;
    margin: 20px 0;
}

.fop-upload-progress.visible {
    display: block;
}

.fop-progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.fop-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--fop-primary), #64b5f6);
    border-radius: 4px;
    width: 0;
    transition: width 0.3s ease;
}

.fop-progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */

.fop-submit-btn {
    width: 100%;
    min-height: 56px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--fop-font-family);
    color: #fff;
    background: linear-gradient(135deg, var(--fop-success), #66bb6a);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.fop-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.fop-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.fop-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fop-submit-btn .btn-icon {
    font-size: 24px;
}

/* ==========================================================================
   Success Screen
   ========================================================================== */

.fop-success-screen {
    text-align: center;
    padding: 40px 20px;
}

.fop-success-screen .success-icon {
    font-size: 80px;
    animation: celebrate 0.6s ease;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.fop-success-screen h2 {
    font-size: 28px;
    color: var(--fop-success);
    margin: 20px 0 12px;
}

.fop-success-screen .success-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.fop-success-screen .success-thumbnail {
    max-width: 300px;
    margin: 0 auto 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.fop-success-thumbnail {
    max-width: 300px;
    margin: 0 auto 24px;
    text-align: center;
}

.fop-success-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    animation: fop-thumbnail-pop 0.4s ease-out;
}

@keyframes fop-thumbnail-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fop-submission-summary {
    background: var(--fop-grey-light);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.fop-submission-summary .summary-item {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--fop-grey-dark);
    line-height: 1.4;
}

.fop-submission-summary .summary-item:last-child {
    margin-bottom: 0;
}

.fop-submission-summary .summary-label {
    font-weight: 600;
    color: #555;
}

.fop-success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
    margin: 0 auto;
}

.fop-success-actions .btn {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

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

.fop-success-actions .btn-primary {
    background: var(--fop-primary);
    color: #fff;
    border: none;
}

.fop-success-actions .btn-secondary {
    background: #fff;
    color: var(--fop-grey-dark);
    border: 2px solid #ddd;
}

.fop-success-actions .btn-edit {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
}

/* Edit Link */
.fop-edit-link-wrapper {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.fop-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.fop-edit-link:hover {
    background: var(--fop-grey-light);
    color: var(--fop-grey-dark);
}

.fop-edit-link .edit-icon {
    font-size: 16px;
}

.edit-expiry-note {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

/* ==========================================================================
   Notices
   ========================================================================== */

.fop-upload-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.fop-upload-notice p {
    margin: 0;
    font-size: 16px;
}

.fop-upload-error {
    background: #ffebee;
    border: 1px solid var(--fop-error);
    color: var(--fop-error);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

/* Weekly Limit Reached Message */
.fop-limit-reached {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-radius: 16px;
    border: 2px solid var(--fop-gold);
    margin: 20px 0;
}

.fop-limit-reached .limit-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.fop-limit-reached h2 {
    color: var(--fop-grey-dark);
    font-size: 24px;
    margin: 0 0 16px 0;
}

.fop-limit-reached .limit-message {
    font-size: 16px;
    color: #5d4037;
    margin: 0 0 12px 0;
}

.fop-limit-reached .limit-count {
    font-size: 14px;
    color: #795548;
    margin: 0 0 20px 0;
}

.fop-limit-reached .limit-actions {
    margin-top: 24px;
}

.fop-limit-reached .fop-btn-primary {
    display: inline-block;
    background: var(--fop-gold);
    color: var(--fop-grey-dark);
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fop-limit-reached .fop-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.fop-limit-reached .limit-encouragement {
    font-size: 15px;
    color: #6d4c41;
    margin: 20px 0 0 0;
    font-style: italic;
}

/* ==========================================================================
   Edit Mode Styles
   ========================================================================== */

.fop-edit-mode-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid var(--fop-primary);
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--fop-grey-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fop-edit-mode-notice .notice-icon {
    font-size: 20px;
}

.fop-edit-photo-preview {
    text-align: center;
}

.fop-edit-photo-preview .edit-photo-thumbnail {
    background: var(--fop-grey-light);
    border-radius: 12px;
    padding: 20px;
}

.fop-edit-photo-preview .edit-photo-thumbnail img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fop-edit-photo-preview .edit-photo-note {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: #888;
    font-style: italic;
}

.fop-edit-mode input[readonly] {
    background: var(--fop-grey-light);
    color: #666;
    cursor: not-allowed;
}

.fop-edit-expired {
    text-align: center;
    padding: 40px 20px;
}

.fop-edit-expired .notice-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.fop-edit-expired p {
    font-size: 16px;
    margin-bottom: 20px;
}

.fop-edit-expired .btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--fop-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

/* ==========================================================================
   Photo Limit Section
   ========================================================================== */

.fop-photo-limit-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.fop-photo-limit-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.fop-photo-count-icon {
    font-size: 24px;
}

.fop-photo-count-text {
    font-size: 16px;
    color: #e65100;
}

.fop-photo-count-text strong {
    font-weight: 700;
}

.fop-existing-photos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.fop-existing-photo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    position: relative;
    transition: all 0.2s ease;
}

.fop-existing-photo-item:hover {
    border-color: #ff9800;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
}

.fop-existing-photo-item.deleting {
    opacity: 0.5;
    pointer-events: none;
}

.fop-existing-photo-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fop-existing-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fop-existing-photo-thumb .no-thumb {
    font-size: 24px;
    color: #ccc;
}

.fop-existing-photo-info {
    flex: 1;
    min-width: 0;
}

.fop-existing-photo-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.fop-photo-status {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.fop-photo-status.pending {
    background: #fff3cd;
    color: #856404;
}

.fop-delete-photo-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease;
    line-height: 1;
}

.fop-delete-photo-btn:hover {
    background: #ffebee;
}

.fop-delete-photo-btn .delete-icon {
    font-size: 18px;
}

.fop-limit-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fff8e1;
    border-radius: 8px;
    font-size: 14px;
    color: #f57c00;
}

.fop-limit-icon {
    font-size: 18px;
}

/* Disabled state for dropzone and submit when at limit */
.fop-file-dropzone.fop-disabled {
    opacity: 0.5;
    pointer-events: none;
    background: #f5f5f5;
}

.fop-submit-btn.fop-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Photo Limit Responsive */
@media (max-width: 600px) {
    .fop-photo-limit-section {
        padding: 16px;
    }

    .fop-existing-photo-item {
        flex: 1 1 100%;
    }

    .fop-existing-photo-title {
        max-width: none;
    }
}

/* ==========================================================================
   Student Name Tiles
   ========================================================================== */

.fop-student-tiles {
    margin-bottom: 32px;
    padding: 20px;
    background: var(--fop-grey-light);
    border-radius: 12px;
}

.fop-student-tiles-heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--fop-grey-dark);
    margin: 0 0 16px 0;
    text-align: center;
}

.fop-student-tiles-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.fop-student-tile {
    /* Touch-friendly: minimum 44px height per WCAG guidelines */
    min-height: 48px;
    min-width: 80px;
    padding: 12px 20px;
    
    /* Visual styling */
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 24px;
    cursor: pointer;
    
    /* Typography */
    font-family: var(--fop-font-family);
    font-size: 16px;
    font-weight: 600;
    color: var(--fop-grey-dark);
    
    /* Transitions */
    transition: all 0.2s ease;
}

.fop-student-tile:hover {
    border-color: var(--fop-primary);
    background: rgba(33, 150, 243, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fop-student-tile:focus {
    outline: none;
    border-color: var(--fop-primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25);
}

.fop-student-tile:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Active/Selected state */
.fop-student-tile.is-active,
.fop-student-tile.is-selected {
    background: var(--fop-primary);
    border-color: var(--fop-primary);
    color: #fff;
}

/* Has photo indicator (added via JS in 9.1.5) */
.fop-student-tile.has-photo {
    position: relative;
}

.fop-student-tile.has-photo::after {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--fop-success);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fop-student-tile-name {
    display: block;
    white-space: nowrap;
}

/* "Show All" button */
.fop-show-all-btn {
    display: block;
    margin: 16px auto 0;
    min-height: 44px;
    padding: 10px 24px;
    background: transparent;
    border: 2px dashed #999;
    border-radius: 24px;
    cursor: pointer;
    font-family: var(--fop-font-family);
    font-size: 14px;
    font-weight: 600;
    color: #666;
    transition: all 0.2s ease;
}

.fop-show-all-btn:hover {
    border-color: var(--fop-primary);
    color: var(--fop-primary);
    background: rgba(33, 150, 243, 0.05);
}

.fop-show-all-btn:focus {
    outline: none;
    border-color: var(--fop-primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25);
}

.fop-show-all-icon {
    font-size: 16px;
}

/* ==========================================================================
   Session Header
   ========================================================================== */

.fop-session-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.fop-session-header-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.fop-session-header-name {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive: smaller on mobile */
@media (max-width: 600px) {
    .fop-session-header {
        padding: 16px 20px;
        gap: 10px;
    }
    
    .fop-session-header-icon {
        font-size: 24px;
    }
    
    .fop-session-header-name {
        font-size: 18px;
    }
}

/* ==========================================================================
   Quote of the Day Banner
   ========================================================================== */

.fop-quote-of-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 32px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--fop-primary, #2196F3);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fop-quote-of-day-icon {
    font-size: 32px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.fop-quote-of-day-text {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--fop-grey-dark, #333);
    margin: 0 0 12px 0;
    padding: 0;
    border: none;
    max-width: 700px;
}

/* Quote marks apply to inner text span so they appear before attribution */
.fop-quote-text-inner {
    display: inline;
}

.fop-quote-text-inner::before {
    content: '"';
    font-size: 1.5em;
    color: var(--fop-primary, #2196F3);
    opacity: 0.6;
}

.fop-quote-text-inner::after {
    content: '"';
    font-size: 1.5em;
    color: var(--fop-primary, #2196F3);
    opacity: 0.6;
}

.fop-quote-of-day-attribution {
    font-size: 0.95rem;
    font-style: normal;
    color: #666;
    font-weight: 500;
    display: inline;
    margin-left: 0.4em;
}

/* Responsive adjustments for Quote of the Day */
@media (max-width: 768px) {
    .fop-quote-of-day {
        padding: 20px 16px;
    }

    .fop-quote-of-day-text {
        font-size: 1.1rem;
    }

    .fop-quote-of-day-icon {
        font-size: 28px;
    }
}

/* ==========================================================================
   Challenge Card
   ========================================================================== */

.fop-challenge-card {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
    border-left: 4px solid var(--fop-gold);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.fop-challenge-card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.fop-challenge-card-icon {
    font-size: 32px;
    line-height: 1;
}

.fop-challenge-card-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #bf360c;
}

.fop-challenge-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e65100;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.fop-challenge-card-description {
    font-size: 1rem;
    color: #5d4037;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Challenge Card Responsive */
@media (max-width: 600px) {
    .fop-challenge-card {
        padding: 20px 16px;
    }

    .fop-challenge-card-icon {
        font-size: 28px;
    }

    .fop-challenge-card-title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Current Week Indicator
   ========================================================================== */

.fop-current-week-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 30px;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.fop-current-week-icon {
    font-size: 24px;
    line-height: 1;
}

.fop-current-week-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2e7d32;
    text-align: center;
}

/* Current Week Indicator Responsive */
@media (max-width: 600px) {
    .fop-current-week-indicator {
        padding: 10px 16px;
        gap: 8px;
    }

    .fop-current-week-icon {
        font-size: 20px;
    }

    .fop-current-week-text {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Week Timeline
   ========================================================================== */

.fop-week-timeline {
    margin: 20px auto 24px;
    max-width: 800px;
    padding: 0 16px;
}

.fop-week-timeline-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
}

.fop-week-timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fop-week-timeline-node:hover {
    transform: translateY(-2px);
}

.fop-week-timeline-connector {
    position: absolute;
    top: 15px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: #dcdcde;
    z-index: 0;
}

.fop-week-timeline-connector.filled {
    background: #8c8f94;
}

.fop-week-timeline-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
    border: 3px solid;
}

/* Completed week state */
.fop-week-timeline-node.completed .fop-week-timeline-circle {
    background: #c3c4c7;
    border-color: #8c8f94;
    color: #50575e;
}

.fop-week-check {
    font-size: 14px;
    font-weight: bold;
}

/* Current week state */
.fop-week-timeline-node.current .fop-week-timeline-circle {
    background: #00a32a;
    border-color: #00a32a;
    color: #fff;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #00a32a;
}

/* Upcoming week state */
.fop-week-timeline-node.upcoming .fop-week-timeline-circle {
    background: #fff;
    border-color: #c3c4c7;
    color: #50575e;
}

.fop-week-timeline-label {
    margin-top: 8px;
    font-size: 11px;
    text-align: center;
    max-width: 70px;
    line-height: 1.3;
    color: #666;
    word-wrap: break-word;
}

.fop-week-timeline-node.current .fop-week-timeline-label {
    font-weight: 600;
    color: #00a32a;
}

.fop-week-timeline-node.completed .fop-week-timeline-label {
    color: #50575e;
}

/* Week Timeline Collapsible Toggle (hidden on desktop) */
.fop-week-timeline-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #c3c4c7;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #50575e;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s ease;
}

.fop-week-timeline-toggle:hover {
    border-color: #00a32a;
    color: #00a32a;
}

.fop-timeline-toggle-icon {
    font-size: 16px;
}

.fop-timeline-toggle-text {
    flex: 1;
    text-align: left;
}

.fop-timeline-toggle-arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.fop-week-timeline.is-expanded .fop-timeline-toggle-arrow {
    transform: rotate(180deg);
}

/* Week Timeline Responsive - Tablet */
@media (max-width: 900px) {
    .fop-week-timeline {
        position: relative;
    }

    .fop-week-timeline-toggle {
        display: flex;
    }

    .fop-week-timeline-track {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10;
        background: #fff;
        border: 2px solid #c3c4c7;
        border-top: none;
        border-radius: 0 0 8px 8px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .fop-week-timeline.is-expanded .fop-week-timeline-track {
        display: flex;
    }

    .fop-week-timeline-node {
        flex: 0 0 auto;
        min-width: 65px;
    }

    .fop-week-timeline-connector {
        display: none;
    }
}

/* Week Timeline Responsive - Mobile */
@media (max-width: 600px) {
    .fop-week-timeline {
        padding: 0 8px;
    }

    .fop-week-timeline-toggle {
        padding: 10px 12px;
        font-size: 13px;
    }

    .fop-week-timeline-track {
        padding: 12px;
        gap: 6px;
    }

    .fop-week-timeline-node {
        min-width: 55px;
    }

    .fop-week-timeline-circle {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .fop-week-timeline-label {
        font-size: 10px;
        max-width: 50px;
    }
}

/* Week Timeline Filter State */
.fop-week-timeline-node.is-filtered .fop-week-timeline-circle {
    box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.4);
    border-color: #ff9800;
}

.fop-week-timeline-node.is-filtered .fop-week-timeline-label {
    color: #ff9800;
    font-weight: 600;
}

/* Show All Weeks Button */
.fop-show-all-weeks-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px auto 0;
    padding: 8px 16px;
    background: #fff;
    border: 2px solid #ff9800;
    border-radius: 20px;
    color: #ff9800;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fop-show-all-weeks-btn:hover {
    background: #ff9800;
    color: #fff;
}

.fop-show-all-weeks-btn .fop-show-all-icon {
    font-size: 14px;
}

/* ==========================================================================
   Gallery Header and Upload Button
   ========================================================================== */

.fop-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--fop-grey-light);
    border-radius: 12px;
}

.fop-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    background: var(--fop-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 24px;
    font-family: var(--fop-font-family);
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.fop-upload-btn:hover {
    background: #1976D2;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.fop-upload-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.4);
}

.fop-upload-btn:active {
    transform: translateY(0);
}

.fop-upload-btn-icon {
    font-size: 20px;
}

.fop-upload-btn-text {
    white-space: nowrap;
}

/* ==========================================================================
   Responsive Styles (Tablet-Optimized)
   ========================================================================== */

@media screen and (max-width: 768px) {
    .fop-upload-form-wrapper {
        padding: 16px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .fop-weekly-quote blockquote {
        font-size: 16px;
    }
    
    .fop-file-dropzone {
        padding: 30px 16px;
    }
    
    .fop-success-screen .success-icon {
        font-size: 64px;
    }
    
    .fop-success-screen h2 {
        font-size: 24px;
    }
    
    /* Student tiles responsive */
    .fop-student-tiles {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .fop-student-tiles-grid {
        gap: 10px;
    }
    
    .fop-student-tile {
        min-width: 70px;
        padding: 10px 16px;
        font-size: 15px;
    }
    
    /* Gallery header responsive */
    .fop-gallery-header {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }
    
    .fop-layout-toggle {
        justify-content: center;
    }
    
    .fop-upload-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Touch target minimum size for tablet */
@media (pointer: coarse) {
    .fop-form-group input[type="text"],
    .fop-form-group textarea,
    .fop-form-group select,
    .fop-submit-btn,
    .fop-checkbox-label,
    .fop-journalette-toggle {
        min-height: 44px;
    }
}

/* ==========================================================================
   Confetti Animation
   ========================================================================== */

.fop-confetti {
    position: absolute;
    top: -20px;
    border-radius: 2px;
    pointer-events: none;
    animation: fop-confetti-fall linear forwards;
    z-index: 1000;
}

@keyframes fop-confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

/* ==========================================================================
   Dark Theme Navigation Contrast Fix
   ========================================================================== */

/* Ensure header navigation links stay visible only when the dark theme is active */
.dark .wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content,
.dark .wp-block-template-part nav.wp-block-navigation a {
    color: #fff !important;
}

.dark .wp-block-template-part nav.wp-block-navigation.has-contrast-color,
.dark .wp-block-template-part .wp-block-navigation__responsive-container.has-contrast-color,
.dark .wp-block-template-part nav.wp-block-navigation .wp-block-page-list a {
    color: #fff !important;
}

.dark .wp-block-template-part nav.wp-block-navigation a:hover,
.dark .wp-block-template-part nav.wp-block-navigation .wp-block-navigation-item__content:hover {
    color: #e5e5e5 !important;
}
