/* Overlays and Modal Styles */

/* Overlays */
.loading-overlay, .empty-state, .status-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.loading-overlay {
    top: 0; left: 0; right: 0; bottom: 0;
    transform: none;
    background: rgba(10,10,10,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}
.loading-overlay.visible { display: flex; }
.loader {
    width: 40px; height: 40px;
    border: 2px solid #333;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-family: 'Syne', sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #666; }
.empty-state { color: #444; cursor: pointer; }
.empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state-icon.spinning { animation: spin 2s linear infinite; }
.empty-state-text { font-size: 13px; color: #555; letter-spacing: 1px; }
.status-overlay { color: #555; }
.status-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.status-text { font-size: 13px; letter-spacing: 1px; }

.controls-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    color: #555;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 1s ease;
}
.controls-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Video Controls Overlay */
.video-controls-overlay {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 152px;
    z-index: 100;
}
.video-controls-overlay.visible { display: flex; }
.video-control-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-indent: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.video-control-btn:hover { background: #2a2a2a; }

/* Auth Modal Styles */
.auth-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.auth-overlay.visible { display: flex; }

.auth-modal {
    background: #111;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid #333;
}

.auth-header {
    padding: 24px 24px 0;
    text-align: center;
}
.auth-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
}
.auth-subtitle {
    font-size: 13px;
    color: #888;
}

.auth-body { padding: 24px; }

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
    font-size: 12px;
    font-weight: 500;
    color: #999;
}
.form-input {
    font-family: 'Space Grotesk', sans-serif;
    padding: 12px 14px;
    border: 1px solid #333;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    background: #1a1a1a;
    color: #e5e5e5;
}
.form-input:focus { border-color: #fff; }
.form-input.error { border-color: #e74c3c; }

.auth-btn {
    font-family: 'Syne', sans-serif;
    padding: 14px 20px;
    border: none;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}
.auth-btn-primary {
    background: #fff;
    color: #0a0a0a;
}
.auth-btn-primary:hover { background: #e5e5e5; }
.auth-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.auth-btn-secondary {
    background: #1a1a1a;
    color: #e5e5e5;
    border: 1px solid #333;
}
.auth-btn-secondary:hover { background: #222; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
    font-size: 11px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #333;
}

.auth-link {
    text-align: center;
    font-size: 13px;
    color: #888;
}
.auth-link a {
    color: #fff;
    font-weight: 500;
    cursor: pointer;
}
.auth-link a:hover { text-decoration: underline; }

.auth-message {
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    display: none;
}
.auth-message.visible { display: block; }
.auth-message.success {
    background: #0d3d1e;
    border: 1px solid #155724;
    color: #7dcea0;
}
.auth-message.error {
    background: #3d0d0d;
    border: 1px solid #721c24;
    color: #f5b7b1;
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
}
.auth-close:hover { background: #222; color: #fff; }

/* User Menu */
.user-menu {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1a1a1a;
    border-radius: 4px;
    margin-top: 8px;
}
.user-menu.visible { display: flex; }
.user-email {
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    color: #888;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-logout {
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 10px;
    border: 1px solid #333;
    border-radius: 2px;
    background: #222;
    color: #888;
    cursor: pointer;
}
.user-logout:hover { background: #3a1515; color: #e74c3c; border-color: #5a2020; }

.auth-trigger {
    display: flex;
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 12px;
    border: 1px solid #333;
    border-radius: 2px;
    background: #1a1a1a;
    color: #888;
    cursor: pointer;
    margin-top: 8px;
}
.auth-trigger:hover { background: #222; border-color: #555; color: #fff; }
.auth-trigger.hidden { display: none; }

/* Projects Dropdown */
.projects-section {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #2a2a2a;
}
.projects-section.visible { display: flex; }
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.projects-title {
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #666;
}
.projects-new-btn {
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 10px;
    border: 1px dashed #333;
    border-radius: 2px;
    background: transparent;
    color: #666;
    cursor: pointer;
}
.projects-new-btn:hover { border-color: #fff; color: #fff; }

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}
.project-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.project-item:hover { border-color: #555; background: #222; }
.project-item.active { border-color: #fff; background: #2a2a2a; }
.project-name {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    color: #e5e5e5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project-delete {
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-delete:hover { background: #3a1515; color: #e74c3c; }

.projects-empty {
    font-size: 12px;
    color: #555;
    text-align: center;
    padding: 16px;
}
