/**
 * Here & Now Animation Styles
 */

/* Canvas container */
.here-and-now-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.here-now-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

/* Central "Now" label */
/* Center clickable label */
.here-now-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 50%;
    user-select: none;
}

/* Light mode center label */
.here-and-now-slide.light-mode .here-now-center-label .here-now-line {
    color: rgba(0, 0, 0, 0.85);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9),
                 0 0 12px rgba(255, 255, 255, 0.7);
    font-weight: 800;
}

.here-and-now-slide.light-mode .here-now-center-label i {
    color: rgba(0, 0, 0, 0.7);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.8));
}

.here-and-now-slide.light-mode .here-now-center-label:hover .here-now-line {
    color: rgba(0, 0, 0, 1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.here-and-now-slide.light-mode .here-now-center-label:hover i {
    color: rgba(0, 0, 0, 0.9);
}

/* Dark mode center label (default) */
.here-now-center-label .here-now-line {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: block;
    line-height: 1;
}

.here-now-center-label i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

.here-now-center-label:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.here-now-center-label:hover .here-now-line {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.here-now-center-label:hover i {
    color: rgba(255, 255, 255, 0.9);
}

/* Settings button */
.here-now-settings-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 8px;
}

/* Light mode settings button */
.here-and-now-slide.light-mode .here-now-settings-btn {
    color: rgba(0, 0, 0, 0.7);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.8));
}

.here-and-now-slide.light-mode .here-now-settings-btn:hover {
    color: rgba(0, 0, 0, 0.95);
    transform: scale(1.1) rotate(45deg);
}

/* Dark mode settings button (default) */
.here-now-settings-btn:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1) rotate(45deg);
}

/* Navigation overlays (left/right) */
.slide-nav-overlay {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 10;
    padding: 20px;
    transition: color 0.3s ease, filter 0.3s ease, text-shadow 0.3s ease;
    user-select: none;
}

/* Light mode specific styles */
.here-and-now-slide.light-mode .slide-nav-overlay {
    color: rgba(0, 0, 0, 0.85);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8), 
                 0 0 10px rgba(255, 255, 255, 0.6);
}

.here-and-now-slide.light-mode .slide-nav-overlay i {
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.8));
}

.here-and-now-slide.light-mode .slide-nav-overlay span {
    font-weight: 700;
    color: rgba(0, 0, 0, 0.9);
}

.here-and-now-slide.light-mode .slide-nav-overlay:hover {
    color: rgba(0, 0, 0, 1);
    text-shadow: 0 2px 6px rgba(255, 255, 255, 1), 
                 0 0 15px rgba(255, 255, 255, 0.8);
}

.here-and-now-slide.light-mode .slide-nav-overlay:hover i {
    filter: drop-shadow(0 3px 6px rgba(255, 255, 255, 1));
}

/* Dark mode styles (default) */
.slide-nav-overlay {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slide-nav-overlay.left {
    left: 20px;
    flex-direction: column;
}

.slide-nav-overlay.right {
    right: 20px;
    flex-direction: column;
}

.slide-nav-overlay:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* Dynamic text colors based on background - will be set via JS */
.slide-nav-overlay i,
.slide-nav-overlay span {
    color: inherit;
    transition: color 0.3s ease, filter 0.3s ease;
}

.here-and-now-slide.light-mode .here-now-center-label .here-now-line {
    color: rgba(0, 0, 0, 0.8);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.here-and-now-slide.light-mode .here-now-center-label i {
    color: rgba(0, 0, 0, 0.6);
}

.here-and-now-slide.light-mode .here-now-settings-btn {
    color: rgba(0, 0, 0, 0.6);
}

.here-and-now-slide.light-mode .here-now-settings-btn:hover {
    color: rgba(0, 0, 0, 0.9);
}

/* Stack icons above titles */
.slide-nav-overlay .fa-stamp,
.slide-nav-overlay .fa-calendar-plus {
    font-size: 24px;
    margin-bottom: 4px;
}

.slide-nav-overlay i {
    font-size: 18px;
}

/* Colored chevron arrows */
.slide-nav-overlay.left .fa-chevron-left,
.slide-nav-overlay.right .fa-chevron-right {
    font-size: 20px;
    margin-bottom: 8px;
}

.slide-nav-overlay.left .fa-chevron-left {
    color: rgba(100, 150, 255, 0.6); /* Stamp blue */
}

.slide-nav-overlay.right .fa-chevron-right {
    color: rgba(255, 150, 100, 0.6); /* Plan orange */
}

.slide-nav-overlay:hover.left .fa-chevron-left {
    color: rgba(100, 150, 255, 0.9);
}

.slide-nav-overlay:hover.right .fa-chevron-right {
    color: rgba(255, 150, 100, 0.9);
}

/* Light mode chevron arrows */
.here-and-now-slide.light-mode .slide-nav-overlay.left .fa-chevron-left {
    color: rgba(100, 150, 255, 0.7);
}

.here-and-now-slide.light-mode .slide-nav-overlay.right .fa-chevron-right {
    color: rgba(255, 150, 100, 0.7);
}

.here-and-now-slide.light-mode .slide-nav-overlay:hover.left .fa-chevron-left {
    color: rgba(100, 150, 255, 1);
}

.here-and-now-slide.light-mode .slide-nav-overlay:hover.right .fa-chevron-right {
    color: rgba(255, 150, 100, 1);
}

/* Settings Modal */
.here-now-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.here-now-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

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

.here-now-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.here-now-modal-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.here-now-modal-close:hover {
    color: white;
}

.here-now-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.here-now-setting-group {
    margin-bottom: 24px;
}

.here-now-setting-group:last-child {
    margin-bottom: 0;
}

.here-now-setting-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Mode selector */
.here-now-mode-selector,
.here-now-flow-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.here-now-flow-selector {
    grid-template-columns: repeat(2, 1fr);
}

.mode-btn,
.flow-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mode-btn i,
.flow-btn i {
    font-size: 24px;
}

.mode-btn span,
.flow-btn span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mode-btn:hover,
.flow-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.mode-btn.active,
.flow-btn.active {
    background: rgba(100, 150, 255, 0.2);
    border-color: rgba(100, 150, 255, 0.5);
    color: #6496ff;
}

/* Custom colors */
.here-now-custom-colors {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.here-now-custom-colors input[type="color"] {
    width: 100%;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

/* Modal footer */
.here-now-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.here-now-btn,
.here-now-btn-save,
.here-now-btn-cancel,
.here-now-btn-primary,
.here-now-btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.here-now-btn-save,
.here-now-btn-primary {
    background: linear-gradient(135deg, #6496ff 0%, #4a76d9 100%);
    color: white;
}

.here-now-btn-save:hover,
.here-now-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 150, 255, 0.4);
}

.here-now-btn-cancel,
.here-now-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.here-now-btn-cancel:hover,
.here-now-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .here-now-modal-content {
        max-width: 100%;
    }
    
    .here-now-mode-selector {
        grid-template-columns: 1fr;
    }
    
    .here-now-settings-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .slide-nav-overlay {
        font-size: 12px;
        padding: 15px;
    }
    
    .slide-nav-overlay i {
        font-size: 16px;
    }
}
