/* ══════════════════════════════════════════
   SOCIAL ARCADE MACHINES — CATALOG STYLES
   Cyberpunk Professional Dark Theme
   ══════════════════════════════════════════ */

:root {
    --sam-pink:   #FF2060;
    --sam-cyan:   #00E5FF;
    --sam-gold:   #FFD060;
    --sam-green:  #00FFB0;
    --sam-dark:   #121212;
    --sam-dark2:  #1A1A1A;
    --sam-dark3:  #222222;
    --sam-card:   #1E1E1E;
    --sam-border: rgba(255,255,255,0.12);
    --sam-muted:  rgba(255,255,255,0.60);
    --sam-white:  rgba(255,255,255,0.87);
}

/* ─── SHARED TYPOGRAPHY ─── */
.sam-catalog,
.sam-quote-page {
    font-family: 'Outfit', sans-serif;
    color: var(--sam-white);
    -webkit-font-smoothing: antialiased;
}

.sam-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
}
.sam-eyebrow.pink  { color: var(--sam-pink); }
.sam-eyebrow.cyan  { color: var(--sam-cyan); }
.sam-eyebrow.gold  { color: var(--sam-gold); }

.sam-headline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.8rem, 4.5vw, 5rem);
    letter-spacing: 3px;
    line-height: 0.95;
    margin-bottom: 24px;
    color: var(--sam-white);
}
.sam-headline-sm {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.sam-lead {
    color: var(--sam-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 650px;
    font-weight: 400;
}

/* ─── BUTTONS ─── */
.sam-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 3px;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 800;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.25s;
    font-family: 'Outfit', sans-serif;
    text-align: center;
}
.sam-btn-pink {
    background: var(--sam-pink);
    color: #fff;
    box-shadow: 0 0 20px rgba(255,32,96,0.25);
}
.sam-btn-pink:hover {
    background: #ff4d88;
    box-shadow: 0 0 35px rgba(255,32,96,0.5);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}
.sam-btn-outline {
    background: transparent;
    color: var(--sam-cyan);
    border: 1.5px solid rgba(0,229,255,0.4);
}
.sam-btn-outline:hover {
    background: rgba(0,229,255,0.08);
    box-shadow: 0 0 20px rgba(0,229,255,0.2);
    color: var(--sam-cyan);
    text-decoration: none;
}
.sam-btn-full {
    display: block;
    width: 100%;
}

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
.sam-hero {
    background: var(--sam-dark2);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--sam-border);
}
.sam-hero-glow1 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,32,96,0.1) 0%, transparent 70%);
    pointer-events: none;
}
.sam-hero-glow2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.sam-hero-content {
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════
   CATEGORY FILTERS
══════════════════════════════════════════ */
.sam-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 32px 40px;
    background: var(--sam-dark);
}
.sam-filter-btn {
    background: transparent;
    border: 1px solid var(--sam-border);
    color: var(--sam-muted);
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    transition: all 0.25s;
}
.sam-filter-btn:hover,
.sam-filter-btn.active {
    background: var(--sam-cyan);
    border-color: var(--sam-cyan);
    color: var(--sam-dark);
}

/* ══════════════════════════════════════════
   MACHINE CARDS GRID
══════════════════════════════════════════ */
.sam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 40px 80px;
    background: var(--sam-dark);
}

.sam-card {
    background: var(--sam-card);
    border: 1px solid var(--sam-border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
    animation: samFadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.sam-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    border-color: rgba(0,229,255,0.3);
}

@keyframes samFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Card Image */
.sam-card-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.sam-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sam-card-icon {
    font-size: 4.5rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.4));
}
.sam-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--sam-card) 0%, transparent 70%);
    z-index: 0;
}

/* Card Body */
.sam-card-body {
    padding: 28px;
}
.sam-tag {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 14px;
    font-weight: 700;
}
.sam-tag-pink  { background: rgba(255,32,96,0.12);  color: var(--sam-pink); }
.sam-tag-cyan  { background: rgba(0,229,255,0.12);  color: var(--sam-cyan); }
.sam-tag-gold  { background: rgba(255,208,96,0.12); color: var(--sam-gold); }
.sam-tag-green { background: rgba(0,255,176,0.1);   color: var(--sam-green); }

.sam-card-body h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--sam-white);
    line-height: 1.1;
}
.sam-card-body > p {
    color: var(--sam-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Feature List */
.sam-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sam-card-features li {
    color: var(--sam-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}
.sam-card-features li::before {
    content: '·';
    color: var(--sam-cyan);
    font-size: 1.5rem;
    line-height: 0;
    flex-shrink: 0;
}

.sam-view-detail {
    margin-top: 8px;
    font-size: 0.75rem;
    padding: 10px 24px;
}

/* ══════════════════════════════════════════
   MACHINE DETAIL MODAL
══════════════════════════════════════════ */
.sam-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 40px 20px;
    animation: samFadeIn 0.3s ease;
}
.sam-modal-overlay.open {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

@keyframes samFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sam-modal {
    background: var(--sam-dark2);
    border: 1px solid var(--sam-border);
    border-radius: 10px;
    max-width: 1100px;
    width: 100%;
    position: relative;
    overflow: hidden;
    animation: samSlideUp 0.4s cubic-bezier(0.16,1,0.3,1);
}

@keyframes samSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sam-modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--sam-border);
    color: var(--sam-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}
.sam-modal-close:hover {
    background: var(--sam-pink);
    border-color: var(--sam-pink);
}

.sam-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.sam-modal-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}
.sam-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sam-modal-icon {
    font-size: 7rem;
    filter: drop-shadow(0 8px 30px rgba(0,0,0,0.5));
}

.sam-modal-content {
    padding: 48px 40px;
    overflow-y: auto;
    max-height: 85vh;
}
.sam-modal-content .sam-eyebrow {
    margin-bottom: 12px;
}
.sam-modal-desc {
    color: var(--sam-white);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.sam-modal-longdesc {
    color: var(--sam-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 32px;
    font-weight: 300;
}
.sam-features-heading {
    color: var(--sam-white);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}
.sam-modal-features {
    margin-bottom: 32px !important;
}

/* Quote Box inside Modal */
.sam-quote-box {
    background: var(--sam-dark3);
    border: 1px solid var(--sam-border);
    padding: 32px;
    border-radius: 8px;
    margin-top: 8px;
}
.sam-quote-box h4 {
    margin-bottom: 12px;
    color: var(--sam-white);
    font-size: 1.15rem;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}
.sam-quote-box > p {
    font-size: 0.9rem;
    color: var(--sam-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sam-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sam-modal-grid {
        grid-template-columns: 1fr;
    }
    .sam-modal-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .sam-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 60px;
    }
    .sam-hero {
        padding: 60px 20px;
    }
    .sam-filters {
        padding: 24px 20px;
    }
    .sam-headline {
        font-size: clamp(2.2rem, 6vw, 3.5rem);
    }
    .sam-modal-content {
        padding: 32px 24px;
    }
    .sam-modal-overlay {
        padding: 20px 12px;
    }
}

@media (max-width: 480px) {
    .sam-filter-btn {
        padding: 8px 16px;
        font-size: 0.7rem;
    }
    .sam-card-body {
        padding: 20px;
    }
}
