/**
 * GLA Judging Panel Styles
 * Minimalist, professional design inspired by Adobe Lightroom
 */

/* Container */
.gla-judging-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #e0e0e0;
    background-color: #1a1a1a;
    min-height: 100vh;
    margin: 0 -20px;
    padding: 0;
}

/* Screen Base */
.gla-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px;
}

/* Welcome Screen */
.gla-welcome-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.gla-welcome-header h1 {
    font-size: 3.5em;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 0 10px 0;
}

.gla-welcome-subtitle {
    font-size: 1.1em;
    color: #999;
    margin-bottom: 40px;
}

.gla-welcome-message {
    font-size: 1.1em;
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 50px;
}

.gla-rules-container {
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
}

.gla-rules-container h2 {
    font-size: 1.5em;
    font-weight: 400;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.gla-rules-content {
    color: #c0c0c0;
    line-height: 1.8;
}

.gla-rules-content p {
    margin-bottom: 15px;
}

.gla-rules-content ul, .gla-rules-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Category Selection Screen */
.gla-category-content {
    max-width: 1200px;
    width: 100%;
}

.gla-category-header {
    text-align: center;
    margin-bottom: 40px;
}

.gla-category-header h2 {
    font-size: 2em;
    font-weight: 300;
    color: #ffffff;
    margin: 0 0 15px 0;
}

.gla-category-header p {
    font-size: 1.1em;
    color: #999;
}

.gla-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gla-category-card {
    position: relative;
}

.gla-category-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gla-category-card label {
    display: block;
    background: #252525;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gla-category-card label:hover {
    border-color: #555;
    background: #2a2a2a;
}

.gla-category-checkbox:checked + label {
    border-color: #666;
    background: #2f2f2f;
}

.gla-category-name {
    font-size: 1.2em;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 15px;
}

.gla-category-stats {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.gla-stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gla-stat-label {
    font-size: 0.85em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gla-stat-value {
    font-size: 1.5em;
    font-weight: 600;
    color: #e0e0e0;
}

.gla-category-options {
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.gla-option-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gla-option-group label {
    color: #c0c0c0;
    cursor: pointer;
}

.gla-option-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.gla-option-group select {
    background: #1a1a1a;
    border: 1px solid #444;
    color: #e0e0e0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 1em;
}

/* Judging Screen */
.gla-judging-content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 0;
}

.gla-judging-header {
    background: #1f1f1f;
    border-bottom: 1px solid #333;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gla-current-category {
    font-size: 1.1em;
}

.gla-category-label {
    color: #888;
    margin-right: 10px;
}

.gla-category-value {
    color: #ffffff;
    font-weight: 500;
}

.gla-progress-info {
    color: #999;
}

.gla-judging-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.gla-image-viewer {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f0f0f;
    padding: 40px;
    position: relative;
}

.gla-image-container {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gla-image-container img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    cursor: pointer;
    border-radius: 4px;
}

.gla-image-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.75);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.gla-nav-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.2em;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
    opacity: 0.7;
}

.gla-nav-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.gla-image-counter {
    color: #ffffff;
    font-size: 0.9em;
    font-weight: 500;
    padding: 2px 8px;
    text-align: center;
    opacity: 0.9;
}

.gla-judging-sidebar {
    width: 400px;
    background: #1a1a1a;
    border-left: 1px solid #333;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.gla-entry-info {
    padding: 30px;
    border-bottom: 1px solid #333;
}

.gla-entry-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #ffffff !important;
    margin: 0 0 20px 0;
}

.gla-entry-meta {
    margin-bottom: 20px;
}

.gla-meta-item {
    display: flex;
    margin-bottom: 10px;
}

.gla-meta-label {
    color: #888;
    min-width: 100px;
}

.gla-meta-value {
    color: #e0e0e0;
}

.gla-entry-description {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 0.95em;
}

.gla-judging-controls {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gla-control-label {
    display: block;
    color: #c0c0c0;
    font-size: 0.95em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gla-score-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.gla-score-btn {
    background: #252525;
    border: 2px solid #333;
    color: #e0e0e0;
    padding: 15px;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.gla-score-btn:hover {
    border-color: #555;
    background: #2a2a2a;
}

.gla-score-btn.active {
    background: #3a3a3a;
    border-color: #666;
    color: #ffffff;
}

.gla-navigation-section {
    display: flex;
    gap: 15px;
}

/* Buttons */
.gla-btn {
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.gla-btn-primary {
    background: #3a3a3a;
    color: #ffffff;
    border: 1px solid #555;
}

.gla-btn-primary:hover {
    background: #444;
    border-color: #666;
}

.gla-btn-secondary {
    background: #252525;
    color: #e0e0e0;
    border: 1px solid #444;
}

.gla-btn-secondary:hover {
    background: #2a2a2a;
    border-color: #555;
}

.gla-btn-nomination {
    background: #252525;
    border: 2px solid #444;
    color: #e0e0e0;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.gla-btn-nomination:hover {
    border-color: #666;
    background: #2a2a2a;
}

.gla-btn-nomination.nominated {
    background: #3a3a3a;
    border-color: #888;
}

.gla-star-icon {
    font-size: 1.3em;
    color: #999;
}

.gla-btn-nomination.nominated .gla-star-icon {
    color: #ffd700;
}

.gla-nomination-count {
    font-size: 0.85em;
    color: #888;
}

.gla-btn-text {
    background: transparent;
    color: #888;
    border: none;
    padding: 10px;
}

.gla-btn-text:hover {
    color: #b0b0b0;
}

.gla-exit-section {
    text-align: center;
    margin-top: 20px;
}

.gla-btn-exit {
    background: #2a2a2a;
    color: #ffffff;
    border: 1px solid #555;
    width: 100%;
    padding: 14px 24px;
    font-size: 1.05em;
}

.gla-btn-exit:hover {
    background: #333;
    border-color: #666;
}

/* Category Actions */
.gla-category-actions,
.gla-welcome-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Complete Screen */
.gla-complete-content {
    max-width: 600px;
    text-align: center;
}

.gla-complete-icon {
    font-size: 5em;
    color: #4a4a4a;
    margin-bottom: 20px;
}

.gla-complete-title {
    font-size: 2em;
    font-weight: 300;
    color: #ffffff;
    margin: 0 0 20px 0;
}

.gla-complete-message {
    font-size: 1.1em;
    color: #b0b0b0;
    margin-bottom: 40px;
}

.gla-complete-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Error Message */
.gla-judging-error {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    text-align: center;
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gla-judging-main {
        flex-direction: column;
    }
    
    .gla-judging-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #333;
    }
    
    .gla-image-viewer {
        min-height: 50vh;
    }
}

@media (max-width: 768px) {
    .gla-screen {
        padding: 20px;
    }
    
    .gla-category-grid {
        grid-template-columns: 1fr;
    }
    
    .gla-category-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gla-welcome-header h1 {
        font-size: 1.8em;
    }
    
    .gla-score-buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
    
    .gla-score-btn {
        padding: 10px;
        font-size: 1em;
    }
}

/* Loading State */
.gla-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #888;
}

.gla-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top-color: #666;
    border-radius: 50%;
    animation: gla-spin 1s linear infinite;
}

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



/* Thumbnail Strip for Series */
.gla-thumbnail-strip {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    padding: 15px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 100;
}

.gla-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
    opacity: 0.7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.gla-thumbnail:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.gla-thumbnail.active {
    opacity: 1;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}



/* Notification */
.gla-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.gla-notification.show {
    opacity: 1;
    transform: translateY(0);
}



/* Review Modal */
.gla-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gla-modal-content {
    background: #1a1a1a;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    width: 1200px;
    display: flex;
    flex-direction: column;
}

.gla-modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gla-modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.5em;
}

.gla-modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    line-height: 1;
}

.gla-modal-close:hover {
    color: #ff6b6b;
}

.gla-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.gla-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gla-review-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.gla-review-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

.gla-review-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gla-no-thumbnail {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
}

.gla-review-info {
    padding: 15px;
}

.gla-review-info h4 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gla-review-category {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    margin: 0 0 8px 0;
}

.gla-review-score {
    color: #ffffff;
    margin: 0 0 8px 0;
}

.gla-review-score strong {
    color: #4CAF50;
}

.gla-review-nominated {
    color: #FFD700;
    margin: 0 0 12px 0;
    font-weight: bold;
}

.gla-btn-small {
    padding: 8px 16px;
    font-size: 0.9em;
    width: 100%;
}

.gla-edit-vote {
    background: #2271b1;
    color: #ffffff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.gla-edit-vote:hover {
    background: #135e96;
}

