/* ============================================================
   Unseelie Workshop — Collection Page Styles
   Used by: classic.html, nightshade.html, regent.html
   ============================================================ */

/* ---- Per-collection theming ---- */

[data-collection="classic"] {
    --collection-primary: #1a1a1a;
    --collection-accent: #c0392b;
    background-color: #0d0d0d;
    background-image: linear-gradient(135deg, #0d0d0d 0%, #1a0a0a 50%, #0d0d0d 100%);
}

[data-collection="classic"] .product-card {
    background: linear-gradient(135deg, rgba(26, 10, 10, 0.3), rgba(13, 13, 13, 0.3));
    border: 1px solid rgba(201, 169, 97, 0.4);
}

[data-collection="classic"] .product-card:hover {
    background: linear-gradient(135deg, rgba(26, 10, 10, 0.5), rgba(13, 13, 13, 0.4));
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.3);
    border-color: var(--gold);
}

[data-collection="nightshade"] {
    --collection-primary: #1a2851;
    --collection-accent: #a87fd4;
    background-color: #0a0d1a;
    background-image: linear-gradient(135deg, #0a0d1a 0%, #0d0a14 50%, #0f0d1a 100%);
}

[data-collection="nightshade"] .product-card {
    background: linear-gradient(135deg, rgba(10, 13, 26, 0.3), rgba(13, 10, 20, 0.3));
    border: 1px solid rgba(192, 192, 192, 0.4);
}

[data-collection="nightshade"] .product-card:hover {
    background: linear-gradient(135deg, rgba(10, 13, 26, 0.5), rgba(13, 10, 20, 0.4));
    box-shadow: 0 8px 30px rgba(192, 192, 192, 0.2);
    border-color: rgba(220, 220, 220, 0.7);
}

[data-collection="regent"] {
    --collection-primary: #8b5a3c;
    --collection-accent: #2ab8be;
    background-color: #1a1410;
    background-image: linear-gradient(135deg, #1a1410 0%, #0d1414 50%, #14120d 100%);
}

[data-collection="regent"] .product-card {
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.3), rgba(13, 20, 20, 0.3));
    border: 1px solid rgba(201, 169, 97, 0.4);
}

[data-collection="regent"] .product-card:hover {
    background: linear-gradient(135deg, rgba(26, 20, 16, 0.5), rgba(13, 20, 20, 0.4));
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.3);
    border-color: var(--gold);
}

/* ---- Collection hero ---- */
.collection-hero {
    padding: 6rem 4rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.collection-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--cream);
    text-shadow: 0 4px 20px var(--shadow);
}

.collection-tagline {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: var(--collection-accent);
    text-transform: uppercase;
}

.collection-description {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(245, 241, 232, 0.9);
    font-weight: 300;
    max-width: 800px;
    margin-bottom: 3rem;
}

/* ---- Products section ---- */
.products-section {
    padding: 4rem 4rem 6rem;
    background: rgba(26, 37, 42, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out both;
    will-change: transform;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.product-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--collection-primary), var(--collection-accent));
    position: relative;
    overflow: hidden;
}

.product-card-img,
.product-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Static radial glow — no spinning animation */
.product-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(201, 169, 97, 0.12) 0%, transparent 65%);
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--cream);
}

.product-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(245, 241, 232, 0.8);
    font-weight: 300;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: 400;
    margin-top: 1rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .collection-hero {
        padding: 4rem 2rem 2rem;
    }

    .collection-title {
        font-size: 3rem;
    }

    .collection-tagline {
        font-size: 1rem;
    }

    .products-section {
        padding: 3rem 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
