/* Home Page Specific Styles */

/* Base Styles — inherits from style.css :root */

/* Reset Base Elements */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: transparent;
    overflow-x: hidden;
    font-family: var(--body-font);
    color: var(--text-light);
}

/* Background Image Setup */
.desktop-view {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('../images/cascade-bg.jpg') center/cover no-repeat fixed;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .desktop-view {
        background-attachment: scroll;
    }
}

/* Typography */
h2 {
    font-family: var(--heading-font);
    font-weight: 400;
    color: var(--text-light);
    text-shadow: 1px 1px 3px var(--shadow-dark);
    text-align: center;
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    width: 60px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
}

h3 {
    font-family: var(--heading-font);
    font-weight: 400;
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 1rem 0;
    text-align: center;
}

/* Hero Section */
.hero {
    padding: 3rem 2rem 4rem;
    text-align: center;
}

.hero-content {
    display: inline-block;
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    background: rgba(12, 21, 9, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-gold);
    border-radius: 2px;
    position: relative;
    text-align: center;
}

/* Decorative corner accents */
.hero-content::before,
.hero-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--accent-gold);
    border-style: solid;
    opacity: 0.6;
}

.hero-content::before {
    top: -1px;
    left: -1px;
    border-width: 1px 0 0 1px;
}

.hero-content::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 1px 1px 0;
}

.hero .subtitle {
    font-family: var(--heading-font);
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.55rem);
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-light);
    margin: 0 0 1.75rem;
    text-shadow: none;
    opacity: 0.92;
}

@media (max-width: 600px) {
    .hero-content {
        padding: 1.75rem 1.5rem;
    }
}

/* Section Spacing */
.section-spacing {
    margin: 3rem 0;
    padding: 2rem;
}

/* Products Section */
.products {
    padding: 3rem 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card-container {
    position: relative;
    perspective: 1000px;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 35px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.product-image {
    width: 100%;
    height: 200px;
}

model-viewer {
    width: 100%;
    height: 100%;
}

/* Filter and Sort Controls */
.filter-btn,
#sort-select {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-light);
    padding: 0.45rem 1.1rem;
    border-radius: 0;
    font-family: var(--body-font);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
    opacity: 0.7;
}

.filter-btn:hover,
#sort-select:hover {
    border-color: var(--accent-gold);
    opacity: 1;
}

.filter-btn.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    opacity: 1;
    background: var(--glass-warm);
}

#sort-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 1.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23f2ead8' opacity='.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-color: transparent;
}

/* Footer Styles */
.site-footer {
    position: relative;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.footer-content {
    margin: 0;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* Remove fixed footer padding */
main {
    padding-bottom: 0;
}

/* Vendu Badge for Sold Lamps */
.product-card-container.sold::before {
    content: 'Vendu';
    position: absolute;
    top: 12px;
    left: -20px;
    transform: rotate(-45deg);
    background-color: #b33a3a;
    color: white;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Popup Styles */
.popup-title {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1rem;
    text-shadow: none;
}

.popup-description {
    font-size: 1rem;
    line-height: 1.5;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    text-align: center;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.popup-button {
    background-color: #4CAF50;
    color: #FFFFFF;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.popup-button:hover {
    background-color: #388E3C;
}

.popup-container {
    width: 90%;
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.close-button:hover {
    background: rgba(255,255,255,0.4);
}

/* ── Product Grid ── */
#product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    #product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.5rem 0 1.5rem;
    }
}

/* Filter/sort controls row */
.filter-sort-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0.5rem 0 1.5rem;
}

/* ── Hero CTA button ── */
.hero .popup-button {
    width: auto;
    padding: 0.8rem 2.2rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--body-font);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-top: 0.25rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.hero .popup-button:hover {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* ── Footer ── */
.site-footer {
    pointer-events: auto !important;
    height: auto;
    min-height: 60px;
    padding: 0.75rem 2rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.15rem;
    opacity: 0.6;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-green);
}

@media (max-width: 480px) {
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
