/**
 * Vibes Page - CSS Styles
 * For M.C.A. Hogarth ambient content viewer
 */

/* Core container */
.vibes-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 60vh;
}

/* Content display */
.content-display {
    max-width: 700px;
    width: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px var(--glow-color, rgba(126, 103, 154, 0.3));
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 1.5s ease;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

/* Add pause message when hovering */
.content-display.paused::after {
    content: "Paused";
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Content text styling */
.content-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Different styling for different content types */
.content-display[data-type="review"] .content-text {
    font-style: normal;
    text-align: center;
}

/* Excerpt styling - book-like */
.content-display[data-type="excerpt"] .content-text {
    font-style: italic;
    text-align: left;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5em;
    position: relative;
}

/* Add subtle left border for excerpts */
.content-display[data-type="excerpt"] .content-text::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: rgba(126, 103, 154, 0.3);
    border-radius: 3px;
}

/* Add paragraph spacing for excerpts */
.content-display[data-type="excerpt"] .content-text br {
    display: block;
    content: "";
    margin-top: 0.8em;
}

/* Quote styling - elegant but not bold */
.content-display[data-type="quote"] .content-text {
    font-weight: normal;
    font-style: italic;
    font-size: 1.3rem;
    text-align: center;
}

/* Content source attribution */
.content-source {
    margin-top: 1.5rem;
    font-style: italic;
    font-size: 0.95rem;
}

.content-source a {
    color: var(--accent-color, #7e679a);
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-source a:hover {
    text-decoration: underline;
}

/* Content filtering options */
.content-options {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.content-filter {
    background: transparent;
    color: var(--text-color, #5d4777);
    border: 1px solid var(--accent-color, #7e679a);
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-filter:hover {
    background: rgba(126, 103, 154, 0.1);
}

.content-filter.active {
    background: var(--accent-color, #7e679a);
    color: white;
}

/* Audio controls */
.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.audio-toggle {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color, #5d4777);
}

.audio-toggle .audio-off {
    display: none;
}

.audio-toggle.muted .audio-on {
    display: none;
}

.audio-toggle.muted .audio-off {
    display: inline;
}

.volume-slider {
    width: 100px;
}

input[type="range"] {
    width: 100%;
    height: 5px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--accent-color, #7e679a);
    opacity: 0.7;
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

/* Fade animations */
.fade-in {
    animation: fadeIn 1.5s ease forwards;
}

.fade-out {
    animation: fadeOut 1.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive design */
@media (max-width: 768px) {
    .content-display {
        padding: 1.5rem;
        min-height: 250px;
    }
    
    .content-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .content-display[data-type="quote"] .content-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .content-display {
        padding: 1rem;
        min-height: 200px;
    }
    
    .content-options {
        flex-direction: column;
        align-items: center;
    }
    
    .content-filter {
        width: 100%;
        max-width: 200px;
    }
    
    .content-display[data-type="excerpt"] .content-text {
        padding-left: 1em;
        max-width: 95%;
    }
}