/* products/products.css */

/* ── Hero ─────────────────────────────────────────────── */
#products-hero {
    text-align: center;
    padding: 4rem 2rem 3rem;
    background: linear-gradient(180deg, #000 0%, var(--sc-bg-dark) 100%);
    border-bottom: 1px solid var(--sc-border-subtle);
}

.products-hero-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0 0 0.6rem;
    color: var(--sc-text-light);
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.products-hero-sub {
    font-size: 1rem;
    color: var(--sc-text-faint);
    margin: 0;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
}

/* ── Sub-section header (e.g. Hosting within Galaxy) ─── */
.sub-section-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 2.5rem 0 1.75rem;
    padding: 1rem 1rem;
    border-top: 1px solid var(--sc-border-subtle);
    border-left: 2px solid var(--sc-accent);
    padding-left: 1rem;
}

.sub-section-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--sc-accent);
}

.sub-section-desc {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sc-text-muted);
}

/* ── Division sections ────────────────────────────────── */
.division-section {
    padding: 3rem 1.5rem 4rem;
    border-bottom: 1px solid var(--sc-border-subtle);
}

.division-section:last-of-type {
    border-bottom: none;
}

/* Alternating backgrounds for visual separation */
.division-section:nth-of-type(odd) {
    background-color: var(--sc-bg-dark);
}

.division-section:nth-of-type(even) {
    background-color: var(--sc-bg-header);
}

/* ── Division header strip ────────────────────────────── */
.division-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 2.5rem;
    padding-left: 1rem;
    border-left-width: 3px;
    border-left-style: solid;
}

.division-header.galaxy  { border-left-color: var(--sc-galaxy-accent); }
.division-header.nebula  { border-left-color: var(--sc-nebula-accent); }
.division-header.sunbeam { border-left-color: var(--sc-sunbeam-accent); }
.division-header.systems { border-left-color: var(--sc-systems-accent); }

.division-header-label {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--sc-text-light);
}

.division-header.galaxy  .division-header-label { color: var(--sc-galaxy-accent); }
.division-header.nebula  .division-header-label { color: var(--sc-nebula-accent); }
.division-header.sunbeam .division-header-label { color: var(--sc-sunbeam-accent); }
.division-header.systems .division-header-label { color: var(--sc-systems-accent); }

.division-header-desc {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sc-text-muted);
}

/* ── Product grid ─────────────────────────────────────── */
.product-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Product card ─────────────────────────────────────── */
.product-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--sc-bg-panel);
    border: 1px solid var(--sc-border);
    border-radius: 10px;
    padding: 1.5rem;
    box-sizing: border-box;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.galaxy-card:hover  { box-shadow: 0 6px 24px var(--sc-galaxy-shadow);  transform: translateY(-3px); }
.hosting-card:hover { box-shadow: 0 6px 24px var(--sc-accent-shadow);  transform: translateY(-3px); }
.nebula-card:hover  { box-shadow: 0 6px 24px var(--sc-nebula-shadow);  transform: translateY(-3px); }
.sunbeam-card:hover { box-shadow: 0 6px 24px var(--sc-sunbeam-shadow); transform: translateY(-3px); }
.systems-card:hover { box-shadow: 0 6px 24px var(--sc-systems-shadow); transform: translateY(-3px); }

/* Colored left border per division */
.galaxy-card  { border-left: 3px solid var(--sc-galaxy-accent); }
.hosting-card { border-left: 3px solid var(--sc-accent); }
.nebula-card  { border-left: 3px solid var(--sc-nebula-accent); }
.sunbeam-card { border-left: 3px solid var(--sc-sunbeam-accent); }
.systems-card { border-left: 3px solid var(--sc-systems-accent); }

/* Coming soon state */
.coming-soon-card {
    opacity: 0.7;
    border-style: dashed;
    border-left-style: dashed;
}

.coming-soon-card:hover {
    opacity: 1;
}

.product-card-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid var(--sc-text-subtle);
    color: var(--sc-text-subtle);
}

/* ── Card icon ────────────────────────────────────────── */
.product-card-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
}

.galaxy-icon  .panel-icon-symbol,
.galaxy-icon  .panel-icon-img   { color: var(--sc-galaxy-accent);  width: 2.5rem; height: 2.5rem; font-size: 2.5rem; }
.hosting-icon .panel-icon-symbol,
.hosting-icon .panel-icon-img   { color: var(--sc-accent);         width: 2.5rem; height: 2.5rem; font-size: 2.5rem; }
.nebula-icon  .panel-icon-symbol,
.nebula-icon  .panel-icon-img   { color: var(--sc-nebula-accent);  width: 2.5rem; height: 2.5rem; font-size: 2.5rem; }
.sunbeam-icon .panel-icon-symbol,
.sunbeam-icon .panel-icon-img   { color: var(--sc-sunbeam-accent); width: 2.5rem; height: 2.5rem; font-size: 2.5rem; }
.systems-icon .panel-icon-symbol,
.systems-icon .panel-icon-img   { color: var(--sc-systems-accent); width: 2.5rem; height: 2.5rem; font-size: 2.5rem; }

/* ── Card body ────────────────────────────────────────── */
.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
}

.product-card-body h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sc-text-light);
}

.product-card-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sc-text-muted);
    margin: 0;
}

.product-card-body p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--sc-text-dim);
}

/* ── Product links ────────────────────────────────────── */
.product-link {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    border: 1px solid;
    font-size: 0.82rem;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.2s ease, color 0.2s ease;
}

.galaxy-link  { border-color: var(--sc-galaxy-accent);  color: var(--sc-galaxy-accent); }
.hosting-link { border-color: var(--sc-accent);         color: var(--sc-accent); }
.nebula-link  { border-color: var(--sc-nebula-accent);  color: var(--sc-nebula-accent); }
.sunbeam-link { border-color: var(--sc-sunbeam-accent); color: var(--sc-sunbeam-accent); }
.systems-link { border-color: var(--sc-systems-accent); color: var(--sc-systems-accent); }

.galaxy-link:hover  { background: var(--sc-galaxy-accent);  color: #000; }
.hosting-link:hover { background: var(--sc-accent);         color: #fff; }
.nebula-link:hover  { background: var(--sc-nebula-accent);  color: #fff; }
.sunbeam-link:hover { background: var(--sc-sunbeam-accent); color: #000; }
.systems-link:hover { background: var(--sc-systems-accent); color: #fff; }

.product-link-disabled {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--sc-text-subtle);
    font-size: 0.82rem;
    color: var(--sc-text-subtle);
    cursor: not-allowed;
    pointer-events: none;
    align-self: flex-start;
}

/* ── Responsive ──────────────────────────────────────── */
@media (min-width: 768px) {
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-card-icon {
        margin-bottom: 0.25rem;
    }
}

@media (min-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 479px) {
    .product-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-card-icon {
        margin-bottom: 0.25rem;
    }
    .division-section {
        padding: 2.5rem 1.25rem 3rem;
    }

    #products-hero {
        padding: 3rem 1.25rem 2rem;
    }
}

@media (min-width: 1280px) {
    .division-section {
        padding: 4rem 3rem 5rem;
    }

    #products-hero {
        padding: 5rem 3rem 4rem;
    }

    .product-grid {
        max-width: 1280px;
    }
}
