/* Quotes Specific Styles */
/* Quotes Grid */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.quote-box {
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px; /* Ensure boxes have some height */
    transition: all 0.3s ease;
    position: relative; /* For pseudo-elements */
}
.quote-box:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2); /* Subtle glow on hover */
    transform: translateY(-5px);
}
[data-theme="light"] .quote-box:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.quote-text {
    font-family: var(--font-family-header);
    font-style: italic;
    font-size: 1.3em;
    margin-bottom: 15px;
    position: relative;
    padding: 0 10px; /* Padding for quotes */
}
.quote-text:before {
    content: '“';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 2em;
    line-height: 0.8;
    color: var(--color-primary);
}
.quote-text:after {
    content: '”';
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 2em;
    line-height: 0.8;
    color: var(--color-primary);
}

.quote-author {
    font-family: var(--font-family-body);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto; /* Pushes author to bottom */
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Loading Indicator */
#loading-indicator {
    text-align: center;
    padding: 20px;
    font-family: var(--font-family-body);
    font-size: 1.1em;
    color: var(--color-primary);
    display: none; /* Hidden by default */
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 30px; /* 30px from the bottom */
    right: 30px; /* 30px from the right */
    z-index: 99; /* Ensure it's above other content */
    border: 1px solid var(--border-color); /* Consistent border */
    background-color: var(--color-secondary); /* Background matches theme */
    color: var(--color-primary); /* Text color matches theme */
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 5px; /* Slightly rounded corners */
    font-size: 24px; /* Large arrow */
    line-height: 1;
    transition: background-color 0.3s, color 0.3s, opacity 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#scrollToTopBtn:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

/* Responsive Design - Consistent with Société il Noir homepage */
@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
    .quote-box {
        min-height: auto; /* Allow height to adjust */
    }
}

/* Landscape/Portrait adaptation (subtle changes) - Consistent with Société il Noir homepage */
@media screen and (orientation: landscape) and (max-height: 500px) {
    /* Adjustments for very narrow landscape views (e.g., small phones held sideways) */
    .quotes-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media screen and (orientation: portrait) and (max-width: 500px) {
    /* Specific adjustments for smaller portrait views */
    .quotes-grid {
        gap: 15px;
    }
    .quote-box {
        padding: 20px;
    }
}
