/**
 * Dream Common CSS - Shared styles for all dream sequence pages
 * Provides consistent styling and responsive design
 */

/* Dream Common Styles */
.dream-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.dream-nav .back-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dream-nav .back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.dream-nav .title {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dream-nav .settings-btn {
    background: linear-gradient(135deg, rgba(102,126,234,0.9), rgba(118,75,162,0.9));
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dream-nav .settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

/* Dream Content */
.dream-content {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 80px 20px 40px;
    z-index: 1;
}

.dream-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dream-subtitle {
    font-size: 1.2rem;
    margin: 0 0 40px 0;
    opacity: 0.9;
    max-width: 600px;
}

.dream-description {
    font-size: 1rem;
    margin: 0 0 30px 0;
    opacity: 0.8;
    max-width: 500px;
    line-height: 1.6;
}

/* Dream Info Cards */
.dream-info {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: left;
}

.dream-info h3 {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    text-align: center;
}

.dream-info ul {
    margin: 0;
    padding-left: 20px;
    opacity: 0.9;
}

.dream-info li {
    margin-bottom: 4px;
}

/* Loading States */
.dream-loading {
    opacity: 0;
    animation: dreamFadeIn 1s ease-in-out forwards;
}

@keyframes dreamFadeIn {
    to { opacity: 1; }
}

/* Fullscreen Support */
.dream-content.fullscreen {
    padding-top: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dream-nav {
        padding: 8px 15px;
    }
    
    .dream-nav .back-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .dream-nav .title {
        font-size: 16px;
    }
    
    .dream-nav .settings-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .dream-title {
        font-size: 2rem;
    }
    
    .dream-subtitle {
        font-size: 1rem;
    }
    
    .dream-description {
        font-size: 0.9rem;
    }
    
    .dream-content {
        padding: 100px 15px 40px;
    }
    
    .dream-info {
        padding: 15px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .dream-nav {
        padding: 6px 10px;
    }
    
    .dream-nav .nav-links {
        gap: 8px;
    }
    
    .dream-title {
        font-size: 1.5rem;
    }
    
    .dream-subtitle {
        font-size: 0.9rem;
    }
    
    .dream-description {
        font-size: 0.8rem;
    }
    
    .dream-content {
        padding: 80px 10px 30px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .dream-loading {
        animation: none;
        opacity: 1;
    }
    
    .dream-nav .back-btn,
    .dream-nav .settings-btn {
        transition: none;
    }
    
    .dream-nav .back-btn:hover,
    .dream-nav .settings-btn:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    .dream-nav {
        background: rgba(0, 0, 0, 0.8);
        border-bottom: 2px solid white;
    }
    
    .dream-nav .back-btn,
    .dream-nav .settings-btn {
        border: 2px solid white;
    }
    
    .dream-info {
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid white;
    }
}

/* Print Styles */
@media print {
    .dream-nav {
        display: none;
    }
    
    .dream-content {
        padding: 20px;
        color: black;
        background: white;
    }
    
    .dream-title {
        color: black;
        background: none;
        -webkit-text-fill-color: black;
    }
}
