/**
 * storefront.css
 * =============================================================================
 * Base styles for Seedfinity Storefront (public pages)
 * 
 * Sections: /strains, /strainlists, /breeder, /magazin
 * Uses --sfb-* design tokens from sf.css
 * =============================================================================
 */

/* ─── Reset & Base ─────────────────────────────────────────────────────── */

.sfb-storefront {
    min-height: 100vh;
    background-color: var(--sfb-color-bg, #000);
    color: var(--sfb-color-text, #fff);
    font-family: var(--sfb-font-primary, 'Gotham', system-ui, sans-serif);
    line-height: 1.6;
}

/* ─── Header: Styles now in /assets/css/storefront/sf-public-header.css ───── */

/* ─── Breadcrumbs ──────────────────────────────────────────────────────── */

.sfb-sf-breadcrumbs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}

.sfb-sf-breadcrumbs ol {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.sfb-sf-breadcrumbs li+li::before {
    content: '›';
    margin-right: 0.5rem;
}

.sfb-sf-breadcrumbs a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.sfb-sf-breadcrumbs a:hover {
    color: var(--sfb-color-primary, #FF9900);
}


/* ─── Hero ─────────────────────────────────────────────────────────────── */

.sf-hero {
    height: 95dvh;
    margin-top: -3rem;
    padding-top: 3rem;
    position: relative;
}
.sf-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url(/assets/img/heros/seedfinity-galaxie-hero-1.webp);
    mix-blend-mode: lighten;
}
.sf-hero__inner{
text-align: center;
    position: absolute;
    left: 50%;
    bottom: 3rem;
    transform: translate(-50%, 0) scale(1.2);
    transform-origin: bottom center;
    text-shadow: 0 0 8px #101010;
    width: 70vw;
    max-width: 800px;
    text-wrap-style: pretty;
}

/* ─── Main ─────────────────────────────────────────────────────────────── */

#content-wrapper,
#sf-hero-index,
.sfb-sf-main {
    margin: 0 auto;
    padding: 1.5rem;
    min-height: 60vh;
    opacity: 0.001;
    transition: opacity 1.3s ease-in;
    position: relative;
    z-index: 0;
}

body.core-ready {

    #content-wrapper,
    #sf-hero-index,
    .sfb-sf-main {
        opacity: 1;
    }
}
/* ─── Page Header ──────────────────────────────────────────────────────── */

.sfb-sf-page__header {
    margin-bottom: 2rem;
}

.sfb-sf-page__header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.sfb-sf-page__intro {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin: 0;
    max-width: 600px;
}

/* ─── Grid ─────────────────────────────────────────────────────────────── */

.sfb-sf-grid {
    display: grid;
    gap: 1.25rem;
}

.sfb-sf-grid--strains {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.sfb-sf-grid--strainlists {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.sfb-sf-grid--breeders {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.sfb-sf-grid--articles {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.sfb-sf-grid--horizontal {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

/* ─── Cards ────────────────────────────────────────────────────────────── */

.sfb-sf-card {
    display: block;
    background: var(--sfb-color-elevated, #121212);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sfb-sf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.sfb-sf-card__image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.sfb-sf-card--article .sfb-sf-card__image img,
.sfb-sf-card--strainlist .sfb-sf-card__image img {
    aspect-ratio: 16 / 9;
}

.sfb-sf-card__placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.1), rgba(0, 206, 255, 0.05));
}

.sfb-sf-card__placeholder--strainlist,
.sfb-sf-card__placeholder--article {
    aspect-ratio: 16 / 9;
}

.sfb-sf-card__placeholder--breeder {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin: 1rem auto 0;
    width: 72%;
}

.sfb-sf-card__body {
    padding: 0.875rem;
}

.sfb-sf-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.sfb-sf-card__subtitle {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
}

.sfb-sf-card__tag {
    display: inline-block;
    font-size: 0.6875rem;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
    background: rgba(255, 153, 0, 0.15);
    color: var(--sfb-color-primary, #FF9900);
    margin-top: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sfb-sf-card__excerpt {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0.375rem 0 0;
    line-height: 1.5;
}

.sfb-sf-card__meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-top: 0.5rem;
}

.sfb-sf-card__category {
    font-size: 0.6875rem;
    color: var(--sfb-color-secondary, #00CEFF);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
}

.sfb-sf-card__footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ─── Detail Pages ─────────────────────────────────────────────────────── */

.sfb-sf-detail__hero {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.sfb-sf-detail__hero--strainlist {
    flex-direction: column;
    position: relative;
}

.sfb-sf-detail__cover {
    width: 100%;
    aspect-ratio: 21 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    opacity: 0.7;
}

.sfb-sf-detail__image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.sfb-sf-detail__placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.1), rgba(0, 206, 255, 0.05));
    border-radius: 8px;
}

.sfb-sf-detail__info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.sfb-sf-detail__breeder {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.5rem 0;
}

.sfb-sf-detail__breeder a {
    color: var(--sfb-color-primary, #FF9900);
    text-decoration: none;
}

.sfb-sf-detail__breeder a:hover {
    text-decoration: underline;
}

.sfb-sf-detail__type {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.75rem;
    border-radius: 99px;
    background: rgba(255, 153, 0, 0.15);
    color: var(--sfb-color-primary, #FF9900);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sfb-sf-detail__meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.sfb-sf-detail__link {
    color: var(--sfb-color-secondary, #00CEFF);
    text-decoration: none;
    font-size: 0.875rem;
}

.sfb-sf-detail__link:hover {
    text-decoration: underline;
}

.sfb-sf-detail__intro {
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
}

/* Key Facts */
.sfb-sf-detail__facts {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: var(--sfb-color-elevated, #121212);
    border-radius: 8px;
}

.sfb-sf-fact {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sfb-sf-fact__label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
}

.sfb-sf-fact__value {
    font-size: 1rem;
    font-weight: 600;
}

/* Description */
.sfb-sf-detail__description {
    max-width: 800px;
    margin-bottom: 2rem;
}

.sfb-sf-detail__description h2 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
}

/* Related */
.sfb-sf-detail__related {
    margin-top: 3rem;
}

.sfb-sf-detail__related h2 {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
}

/* ─── Article ──────────────────────────────────────────────────────────── */

.sfb-sf-article__header {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.sfb-sf-article__header h1 {
    font-size: 2.25rem;
    line-height: 1.25;
    margin: 0.5rem 0;
}

.sfb-sf-article__category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--sfb-color-secondary, #00CEFF);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    text-decoration: none;
}

.sfb-sf-article__excerpt {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.75rem 0 0;
}

.sfb-sf-article__meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
}

.sfb-sf-article__cover {
    margin: 0 0 2rem 0;
}

.sfb-sf-article__cover img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
}

.sfb-sf-article__content {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.sfb-sf-article__content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 0.75rem;
}

.sfb-sf-article__content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.5rem;
}

.sfb-sf-article__content p {
    margin: 0 0 1rem;
}

.sfb-sf-article__content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}

.sfb-sf-article__related {
    max-width: 1000px;
    margin: 3rem auto 0;
}

/* ─── Filter Bar ───────────────────────────────────────────────────────── */

.sfb-sf-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sfb-sf-filter-bar__group {
    display: flex;
    gap: 0.375rem;
}

.sfb-sf-filter-tag {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 0.375rem 0.875rem;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.sfb-sf-filter-tag:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.sfb-sf-filter-tag.--active {
    background: var(--sfb-color-primary, #FF9900);
    border-color: var(--sfb-color-primary, #FF9900);
    color: #000;
}

.sfb-sf-select {
    background: var(--sfb-color-elevated, #121212);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
}

/* Category Nav */
.sfb-sf-category-nav {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sfb-sf-category-nav__link {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    white-space: nowrap;
    transition: all 0.2s;
}

.sfb-sf-category-nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.sfb-sf-category-nav__link.--active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* ─── Empty State ──────────────────────────────────────────────────────── */

.sfb-sf-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ─── Placeholder (Coming Soon) ────────────────────────────────────────── */

.sfb-sf-placeholder {
    text-align: center;
    padding: 4rem 1rem;
}

.sfb-sf-placeholder h1 {
    font-size: 1.5rem;
    margin: 0 0 0.75rem 0;
}

.sfb-sf-placeholder p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.5rem 0;
}

/* ─── Button ───────────────────────────────────────────────────────────── */

.sfb-sf-btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 99px;
    background: var(--sfb-color-primary, #FF9900);
    color: #000;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s;
}

.sfb-sf-btn:hover {
    background: #ffad33;
}

/* ─── Footer: Styles now in /assets/css/storefront/sf-public-header.css ───── */

/* ─── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .sfb-sf-detail__hero {
        flex-direction: column;
    }

    .sfb-sf-detail__image img,
    .sfb-sf-detail__placeholder {
        width: 120px;
        height: 120px;
    }

    .sfb-sf-page__header h1 {
        font-size: 1.5rem;
    }

    .sfb-sf-article__header h1 {
        font-size: 1.75rem;
    }

    .sfb-sf-grid--strains {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .sfb-sf-grid--strainlists,
    .sfb-sf-grid--articles {
        grid-template-columns: 1fr;
    }
}

/* ═════════════════════════════════════════════════════════════════════════ */
/* Recht (Legal Pages)                                                     */
/* ═════════════════════════════════════════════════════════════════════════ */

/* ─── Index Grid ───────────────────────────────────────────────────────── */

.sfb-sf-recht__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.sfb-sf-recht__card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--sfb-color-elevated, #121212);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}

.sfb-sf-recht__card:hover {
    border-color: var(--sfb-color-primary, #FF9900);
    transform: translateY(-2px);
}

.sfb-sf-recht__card i {
    font-size: 1.5rem;
    color: var(--sfb-color-primary, #FF9900);
}

.sfb-sf-recht__card h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.sfb-sf-recht__card p {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ─── Detail Content (Prose) ───────────────────────────────────────────── */

.sfb-sf-recht__content {
    max-width: 800px;
    line-height: 1.8;
}

.sfb-sf-recht__content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sfb-sf-recht__content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2.5rem 0 0.75rem 0;
    color: var(--sfb-color-text, #fff);
}

.sfb-sf-recht__content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
    color: rgba(255, 255, 255, 0.85);
}

.sfb-sf-recht__content p {
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.7);
}

.sfb-sf-recht__content ul {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.sfb-sf-recht__content ul li {
    margin-bottom: 0.35rem;
}

.sfb-sf-recht__content a {
    color: var(--sfb-color-primary, #FF9900);
    text-decoration: none;
}

.sfb-sf-recht__content a:hover {
    text-decoration: underline;
}

.sfb-sf-recht__content strong {
    color: rgba(255, 255, 255, 0.9);
}

.sfb-sf-recht__updated {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

.sfb-sf-recht__formular {
    background: var(--sfb-color-elevated, #121212);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

@media (max-width: 640px) {
    .sfb-sf-recht__grid {
        grid-template-columns: 1fr;
    }

    .sfb-sf-recht__content h1 {
        font-size: 1.5rem;
    }
}