/* ============================================================
   DESIGNER HUB — CSS theo thiết kế Figma
   Navbar & Footer: giữ nguyên từ home.css / global.css
   ============================================================ */

/* ---------- WRAPPER CHÍNH ---------- */
.hub-body-wrapper {
    width: 100%;
    overflow: hidden;
}

.hub-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 40px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hub-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 40px;
    position: relative;
}

.hub-title-script {
    font-family: 'Pacifico', cursive;
    font-size: 96px;
    font-weight: normal;
    line-height: 1.0;
    background: linear-gradient(160deg, #ffffff 0%, #c4a8ff 60%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 4px 0;
    letter-spacing: -1px;
    display: block;
}

.hub-hero-hub {
    font-family: 'Pacifico', cursive;
    font-size: 64px;
    font-weight: normal;
    color: white;
    line-height: 1.0;
    margin: 0 0 16px 0;
    display: block;
}

.hub-hero-tagline {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
    margin: 0;
    display: block;
}

/* ============================================================
   SECTION TIÊU ĐỀ CHUNG
   ============================================================ */
.hub-section-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    text-align: center;
}

.hub-section-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 48px;
    font-weight: 400;
    text-align: center;
}

/* ============================================================
   DESIGN CATEGORIES — FORCE GRID 5 CỘT NGANG
   Override mọi style cũ từ designer-list.css
   ============================================================ */
.hub-body-wrapper .category-list {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 16px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hub-body-wrapper .category-item {
    background: linear-gradient(145deg, rgba(124,58,237,0.20) 0%, rgba(5,102,217,0.12) 100%) !important;
    border: 1px solid rgba(124,58,237,0.38) !important;
    border-radius: 20px !important;
    padding: 28px 20px !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    cursor: default;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    /* Reset bất kỳ flex/block nào từ file cũ */
    display: block !important;
    float: none !important;
}

.hub-body-wrapper .category-item:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(167,139,250,0.65) !important;
    box-shadow: 0 12px 40px rgba(124,58,237,0.28) !important;
}

.hub-body-wrapper .category-item h3 {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 10px !important;
    line-height: 1.35 !important;
}

.hub-body-wrapper .category-item p {
    font-size: 12px !important;
    color: rgba(255,255,255,0.5) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

/* ============================================================
   WHY JOIN PRESENTA — 2x2 glass card grid
   ============================================================ */
.hub-body-wrapper .why-join-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px;
    margin-top: 8px;
}

.why-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(124,58,237,0.10) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #0566d9);
    opacity: 0;
    transition: opacity 0.3s;
}

.why-card:hover::before { opacity: 1; }

.why-card:hover {
    border-color: rgba(167,139,250,0.3);
    box-shadow: 0 16px 48px rgba(124,58,237,0.2);
}

.why-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.why-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS — zigzag steps
   ============================================================ */
.how-it-works-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.step-item {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    padding: 22px 32px !important;
    border-left: 4px solid #7C3AED !important;
    border-right: none !important;
    background: linear-gradient(90deg, rgba(29,21,59,0.9) 0%, transparent 100%) !important;
    margin-bottom: 0 !important;
    border-radius: 0 16px 16px 0 !important;
    transition: background 0.3s !important;
    justify-content: flex-start !important;
}

/* Bước chẵn: căn phải */
.step-item:nth-child(even) {
    justify-content: flex-end !important;
    border-left: none !important;
    border-right: 4px solid #7C3AED !important;
    border-radius: 16px 0 0 16px !important;
    background: linear-gradient(-90deg, rgba(29,21,59,0.9) 0%, transparent 100%) !important;
}

.step-item:nth-child(even) .step-number {
    order: 2;
    margin-left: 24px;
    margin-right: 0;
}

.step-item:nth-child(even) .step-text {
    order: 1;
}

.step-item:hover {
    background: linear-gradient(90deg, rgba(124,58,237,0.2) 0%, rgba(124,58,237,0.05) 100%) !important;
}

.step-item:nth-child(even):hover {
    background: linear-gradient(-90deg, rgba(124,58,237,0.2) 0%, rgba(124,58,237,0.05) 100%) !important;
}

.step-number {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #7c3aed, #0566d9) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(124,58,237,0.45) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}

.step-text {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

/* ============================================================
   FEATURED DESIGNER — card grid
   ============================================================ */
.hub-body-wrapper .designer-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px;
    margin-top: 16px;
    text-align: center;
}

.scalloped-designer-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(124,58,237,0.08) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.scalloped-designer-card:hover {
    transform: translateY(-6px);
    border-color: rgba(167,139,250,0.4);
    box-shadow: 0 20px 48px rgba(124,58,237,0.22);
}

.scalloped-avatar-wrap {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(124,58,237,0.5);
    box-shadow: 0 0 0 4px rgba(124,58,237,0.15);
    flex-shrink: 0;
}

.scalloped-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scalloped-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.scalloped-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.scalloped-spec {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    font-weight: 400;
}

.scalloped-actions { margin-top: auto; }

.btn-grid-book {
    display: inline-block;
    padding: 9px 24px;
    background: linear-gradient(135deg, #7c3aed, #0566d9);
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: opacity 0.3s, transform 0.2s;
}

.btn-grid-book:hover {
    opacity: 0.88;
    transform: scale(1.03);
}

/* ============================================================
   CTA BOTTOM
   ============================================================ */
.cta-bottom {
    padding: 0 40px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.cta-card {
    background: linear-gradient(135deg, #1a0a3d 0%, #2a0f6b 40%, #0d2a7a 100%);
    border: 1px solid rgba(124,58,237,0.4);
    border-radius: 32px;
    padding: 72px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(124,58,237,0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hub-title-script {
    font-family: 'Pacifico', cursive;
    font-size: 100px;
    color: white;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
    line-height: 1;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.hub-hero-hub {
    font-family: 'Pacifico', cursive;
    font-size: 140px;
    line-height: 1;
    margin-top: -10px;
    background: linear-gradient(160deg, #D8B4FF 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hub-hero-tagline {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}

.cta-card h2 {
    font-size: 40px;
    font-weight: 800;
    color: white;
    line-height: 1.25;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 40px;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.btn-cta-highlight {
    display: inline-block;
    padding: 16px 48px;
    background: white;
    color: #11052c;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
    letter-spacing: 0.01em;
}

.btn-cta-highlight:hover {
    background: #d2bbff;
    box-shadow: 0 12px 40px rgba(210,187,255,0.4);
    transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .hub-body-wrapper .category-list {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .hub-title-script {
        font-size: 72px;
    }
    .hub-hero-hub {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    .hub-container { padding: 60px 24px; }
    .hub-title-script { font-size: 56px; }
    .hub-hero-hub { font-size: 42px; }
    .hub-body-wrapper .category-list { grid-template-columns: 1fr 1fr !important; }
    .hub-body-wrapper .why-join-grid { grid-template-columns: 1fr !important; }
    .hub-body-wrapper .designer-grid { grid-template-columns: 1fr !important; }
    .cta-card { padding: 48px 32px; }
    .cta-card h2 { font-size: 28px; }
    .step-item { padding: 18px 20px !important; }
    .hub-section-title { font-size: 28px; }
    .cta-bottom { padding: 0 24px 80px; }
}

@media (max-width: 480px) {
    .hub-body-wrapper .category-list { grid-template-columns: 1fr !important; }
    .hub-title-script { font-size: 44px; }
    .hub-hero-hub { font-size: 34px; }
}