/* ============================================================
   Unseelie Workshop — Index Page Styles
   ============================================================ */

/* ---- Hero ---- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
}

/* Hero border: straight frame with a gold dot centred on each corner */

.hero::before {
    content: '';
    position: absolute;
    inset: 1.5rem 2rem;
    pointer-events: none;
    z-index: 1;
    border: 1px solid rgba(201, 169, 97, 0.5);
}

/* Single 4px gold circle, repeated at all four corners.
   Each background-position shifts by -2px (half the dot size)
   so the dot straddles the corner exactly. */
.hero::after {
    content: '';
    position: absolute;
    inset: 1.5rem 2rem;
    pointer-events: none;
    z-index: 2;
    --dot: linear-gradient(rgba(201, 169, 97, 0.9), rgba(201, 169, 97, 0.9));
    background-image: var(--dot), var(--dot), var(--dot), var(--dot);
    background-size: 5px 5px;
    background-repeat: no-repeat;
    background-position:
        0% 0%,
        100% 0%,
        0% 100%,
        100% 100%;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--cream);
    text-shadow: 0 4px 20px var(--shadow);
}

h1 em {
    font-style: italic;
    color: var(--gold);
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 200;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    opacity: 0.8;
}

/* Hero CTA — uses .btn-primary base, overrides padding and adds ambient shadow */
.cta-button {
    padding: 1.2rem 3rem;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ---- Collection card link wrapper ---- */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ---- Collections section ---- */
.collections {
    padding: 6rem 4rem;
    background: rgba(26, 37, 42, 0.5);
}

.section-title {
    margin-bottom: 1.5rem;
}

.collections-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(245, 241, 232, 0.85);
    font-weight: 300;
}

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

.collection-card {
    background: linear-gradient(135deg, var(--sage-light), var(--turquoise));
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 97, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out both;
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.collection-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

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

.collection-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(201, 169, 97, 0.3);
    border-color: var(--gold);
}

.card-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--violet), var(--turquoise-bright));
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.collection-card:hover .card-image img {
    transform: scale(1.04);
}

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

.card-content {
    padding: 2rem;
}

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

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

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.card-details span {
    font-size: 0.85rem;
    color: rgba(245, 241, 232, 0.7);
    font-weight: 300;
}

/* ---- Shop by type ---- */
.shop-by-type {
    margin-top: 5rem;
}

.shop-by-type h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--gold);
    margin-bottom: 2rem;
    font-style: italic;
    text-align: center;
}

.type-scroll {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 0.5rem 0 1rem;
}

@media (max-width: 768px) {
    .type-scroll {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .type-scroll::-webkit-scrollbar {
        display: none;
    }
}

.type-card {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.type-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.2);
}

.type-card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--sage-light), var(--turquoise));
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow on placeholder */
.type-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 60%, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
}

.type-card-name {
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    color: rgba(245, 241, 232, 0.85);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
}

.type-card:hover .type-card-name {
    color: var(--gold);
}

/* ---- About section ---- */
.about {
    padding: 6rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--gold);
    font-style: italic;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(245, 241, 232, 0.9);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cta-button {
        max-width: calc(100% - 2rem);
    }

    .collections,
    .about {
        padding: 4rem 2rem;
    }

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