/**
 * Team Name Generator - Production-Grade UI/UX
 * Hamco Sports Inc. - Fully responsive for all devices
 * Visual system: red (#FE0000) accent, black/dark hero+cta, white body sections,
 *                Arial Black headings, rounded 14px cards, soft shadows.
 */

/* ========================================================
   COMMON
   ======================================================== */
.generator-hero .container,
.generator-tool .container,
.generator-results .container,
.generator-favorites .container,
.generator-content-section .container,
.generator-sport-content .container,
.generator-cta .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
}

/* ========================================================
   HERO
   ======================================================== */
.generator-hero {
    position: relative;
    padding: 70px 20px 60px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.generator-hero::before {
    content: '';
    position: absolute;
    top: -150px; right: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(254,0,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.generator-hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -100px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(254,0,0,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.generator-hero .container { position: relative; z-index: 1; }

.generator-hero .breadcrumb ol {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    margin: 0 0 24px;
    font-size: 0.85rem;
}
.generator-hero .breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.generator-hero .breadcrumb a:hover { color: #fff; }
.generator-hero .breadcrumb li.active { color: #FE0000; }
.generator-hero .breadcrumb li + li::before { content: "›"; margin-right: 8px; color: rgba(255,255,255,0.3); }

.generator-hero h1 {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 16px;
    line-height: 1.1;
}
.generator-hero h1 span { color: #FE0000; }

.generator-hero .hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.78);
    max-width: 720px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.06);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.hero-badge:hover { background: rgba(254,0,0,0.1); border-color: rgba(254,0,0,0.3); }
.hero-badge svg { color: #FE0000; flex-shrink: 0; }

/* ========================================================
   GENERATOR TOOL
   ======================================================== */
.generator-tool {
    padding: 60px 20px 50px;
    background: linear-gradient(180deg, #f7f7f7 0%, #f0f0f0 100%);
    position: relative;
}

.step-label {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #000;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    background: #FE0000;
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-desc {
    font-size: 0.9rem;
    color: #777;
    margin: 0 0 20px;
    padding-left: 40px;
}

/* Sport Grid */
.sport-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 44px;
}

.sport-card-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 8px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 90px;
}
.sport-card-select:hover { border-color: #FE0000; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(254,0,0,0.08); }
.sport-card-select:active { transform: translateY(-1px); }
.sport-card-select.selected {
    border-color: #FE0000;
    background: linear-gradient(135deg, rgba(254,0,0,0.04) 0%, rgba(254,0,0,0.01) 100%);
    box-shadow: 0 0 0 3px rgba(254,0,0,0.12), 0 4px 16px rgba(254,0,0,0.08);
}
.sport-card-select .sport-icon { display: flex; align-items: center; justify-content: center; color: #333; transition: color 0.25s ease; }
.sport-card-select.selected .sport-icon,
.sport-card-select:hover .sport-icon { color: #FE0000; }
.sport-card-select .sport-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sport-card-select.selected .sport-name { color: #FE0000; }

/* Style Grid */
.style-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 36px;
}
.style-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 10px 14px;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.style-card:hover { border-color: #FE0000; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(254,0,0,0.08); }
.style-card:active { transform: translateY(-1px); }
.style-card.selected {
    border-color: #FE0000;
    background: linear-gradient(135deg, rgba(254,0,0,0.04) 0%, rgba(254,0,0,0.01) 100%);
    box-shadow: 0 0 0 3px rgba(254,0,0,0.12), 0 4px 16px rgba(254,0,0,0.08);
}
.style-card .style-icon { display: flex; align-items: center; justify-content: center; color: #333; transition: color 0.25s ease; }
.style-card.selected .style-icon,
.style-card:hover .style-icon { color: #FE0000; }
.style-card .style-name { font-size: 0.78rem; font-weight: 700; color: #333; text-transform: uppercase; letter-spacing: 0.3px; }
.style-card .style-desc { font-size: 0.68rem; color: #aaa; font-weight: 500; }
.style-card.selected .style-name { color: #FE0000; }

/* Optional Inputs */
.optional-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #FE0000;
    margin-bottom: 16px;
    padding: 10px 18px;
    transition: all 0.2s;
}
.optional-toggle:hover { border-color: #FE0000; }
.optional-toggle svg { transition: transform 0.3s ease; width: 14px; height: 14px; }
.optional-toggle.open svg { transform: rotate(180deg); }

.optional-inputs { display: none; gap: 12px; margin-bottom: 30px; }
.optional-inputs.visible { display: grid; grid-template-columns: repeat(3, 1fr); }

.optional-inputs input {
    padding: 14px 18px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    width: 100%;
    background: #fff;
    color: #333;
    font-family: inherit;
}
.optional-inputs input:focus { outline: none; border-color: #FE0000; box-shadow: 0 0 0 3px rgba(254,0,0,0.08); }
.optional-inputs input::placeholder { color: #bbb; }

/* Generate Button */
.generate-actions { text-align: center; margin-top: 16px; }

.btn-generate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 48px;
    background: linear-gradient(135deg, #FE0000 0%, #cc0000 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(254,0,0,0.25);
    position: relative;
    overflow: hidden;
}
.btn-generate::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.btn-generate:hover::after { left: 100%; }
.btn-generate:hover {
    background: linear-gradient(135deg, #000 0%, #1a1a2e 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.btn-generate:active { transform: translateY(-1px); }
.btn-generate:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-generate svg { width: 20px; height: 20px; flex-shrink: 0; }

.rate-limit-info { font-size: 0.78rem; color: #aaa; margin-top: 14px; font-weight: 500; }

/* ========================================================
   LOADING OVERLAY
   ======================================================== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}
.loading-overlay.active { display: flex; }

.loading-spinner {
    width: 56px; height: 56px;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: #FE0000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulse-text 2s ease-in-out infinite;
}
@keyframes pulse-text { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.loading-subtext { color: rgba(255,255,255,0.35); font-size: 0.8rem; font-weight: 500; }

/* ========================================================
   RESULTS
   ======================================================== */
.generator-results {
    display: none;
    padding: 60px 20px;
    background: #fff;
}
.generator-results.visible { display: block; }

.results-header { text-align: center; margin-bottom: 36px; }
.results-header h2 {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin: 0 0 8px;
}
.results-context { font-size: 0.92rem; color: #888; font-weight: 500; }

.names-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}

.name-card {
    background: #fafafa;
    border: 2px solid #eee;
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}
.name-card:hover { border-color: #FE0000; background: #fff; box-shadow: 0 4px 20px rgba(254,0,0,0.06); transform: translateY(-2px); }

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

.name-content { flex: 1; min-width: 0; }
.name-text {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: 1.15rem;
    color: #000;
    margin: 0 0 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
    word-break: break-word;
}
.name-tagline { font-size: 0.82rem; color: #888; font-style: italic; line-height: 1.4; }

.name-actions { display: flex; gap: 6px; flex-shrink: 0; }
.name-actions button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 52px !important;
    height: 36px !important;
    border: 1.5px solid #ddd !important;
    border-radius: 8px !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: #555 !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    font-family: inherit !important;
    line-height: 1 !important;
    -webkit-tap-highlight-color: transparent !important;
}
.name-actions button:hover { border-color: #FE0000 !important; color: #FE0000 !important; background: rgba(254,0,0,0.03) !important; }
.name-actions .btn-favorite,
.name-actions .btn-remove-fav { font-size: 18px !important; min-width: 38px !important; padding: 0 !important; letter-spacing: 0 !important; text-transform: none !important; }
.name-actions button.favorited { background: #FE0000 !important; border-color: #FE0000 !important; color: #fff !important; }
.name-actions button.copied { background: #10B981 !important; border-color: #10B981 !important; color: #fff !important; }

.results-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.results-actions .btn-generate { font-size: 0.9rem; padding: 14px 32px; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: #FE0000;
    border: 2px solid #FE0000;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-secondary:hover { background: #FE0000; color: #fff; transform: translateY(-2px); }
.btn-secondary svg { flex-shrink: 0; }

/* ========================================================
   FAVORITES
   ======================================================== */
.generator-favorites {
    display: none;
    padding: 40px 20px;
    background: #f5f5f5;
    border-top: 1px solid #eee;
}
.generator-favorites.visible { display: block; }

.favorites-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.favorites-header h3 {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #000;
    letter-spacing: 1px;
}
.btn-clear-favorites {
    font-size: 0.82rem;
    color: #999;
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-clear-favorites:hover { border-color: #FE0000; color: #FE0000; }
.favorites-empty { text-align: center; padding: 40px 20px; color: #aaa; font-size: 0.95rem; }

/* ========================================================
   GENERATOR CONTENT SECTIONS (below-tool SEO copy)
   ======================================================== */
.generator-content-section {
    padding: 64px 20px;
    background: #fff;
}
.generator-content-section + .generator-content-section { padding-top: 0; }

.generator-content-section h2 {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0a0a0a;
    margin: 0 0 22px;
    line-height: 1.25;
    text-align: center;
}

.generator-content-section h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: #FE0000;
    margin: 14px auto 0;
    border-radius: 2px;
}

.generator-content-section p {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #444;
    margin: 0 auto 18px;
    max-width: 900px;
    text-align: center;
}

.generator-content-section p strong { color: #0a0a0a; }

/* When paragraphs come right before lists they should align with the list */
.generator-content-section p:has(+ .generator-input-list),
.generator-content-section p:has(+ .generator-steps-list) {
    text-align: left;
    max-width: 900px;
}

.generator-content-section a {
    color: #FE0000;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.generator-content-section a:hover { border-bottom-color: #FE0000; }

/* Bulleted lists */
.generator-input-list {
    list-style: none;
    margin: 0 auto 22px;
    padding: 0;
    max-width: 900px;
}
.generator-input-list li {
    position: relative;
    padding: 12px 0 12px 36px;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    border-bottom: 1px solid #f1f1f1;
}
.generator-input-list li:last-child { border-bottom: none; }
.generator-input-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 19px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(254,0,0,0.1) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FE0000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}
.generator-input-list li strong { color: #0a0a0a; font-weight: 800; }

/* Ordered steps lists */
.generator-steps-list {
    counter-reset: gsteps;
    list-style: none;
    margin: 0 auto 22px;
    padding: 0;
    max-width: 900px;
}
.generator-steps-list li {
    counter-increment: gsteps;
    position: relative;
    padding: 18px 20px 18px 64px;
    margin-bottom: 14px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.generator-steps-list li:hover { border-color: #FE0000; background: #fff; }
.generator-steps-list li::before {
    content: counter(gsteps);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 32px;
    height: 32px;
    background: #FE0000;
    color: #fff;
    border-radius: 50%;
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(254,0,0,0.25);
}
.generator-steps-list li strong { color: #0a0a0a; font-weight: 800; }

/* Callout note line under sections */
.generator-note {
    display: block;
    margin: 28px auto 0;
    padding: 14px 22px;
    max-width: 820px;
    background: rgba(254,0,0,0.04);
    border-left: 3px solid #FE0000;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    line-height: 1.6;
}

/* "8 Naming Styles, Explained" — card grid */
.generator-styles-explained {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 28px 0 8px;
}
.style-explained-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 22px 20px;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.style-explained-card:hover {
    border-color: #FE0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(254,0,0,0.06);
}
.style-explained-card h3 {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #FE0000;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fee;
}
.style-explained-card p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #555;
    margin: 0;
}
.style-explained-card p strong { color: #0a0a0a; }

/* "Lessons from 10,000+ Real Teams" — 5 stacked cards */
.generator-lessons-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 28px 0 8px;
}
.generator-lessons-list .lesson-card:nth-child(5) {
    grid-column: 1 / -1;
}
.lesson-card {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    border: 1px solid #eee;
    border-left: 4px solid #FE0000;
    border-radius: 12px;
    padding: 22px 24px;
    transition: all 0.25s ease;
}
.lesson-card:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0,0,0,0.05);
}
.lesson-card h3 {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #0a0a0a;
    margin: 0 0 8px;
}
.lesson-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #555;
    margin: 0;
}

/* ========================================================
   SPORT SEO CONTENT (Browse the Generator by Sport)
   ======================================================== */
.generator-sport-content {
    padding: 64px 20px;
    background: #fafafa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.generator-sport-content h2 {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0a0a0a;
    margin: 0 0 14px;
    text-align: center;
    line-height: 1.25;
}
.generator-sport-content h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: #FE0000;
    margin: 14px auto 0;
    border-radius: 2px;
}
.generator-sport-content > .container > p {
    text-align: center;
    font-size: 1rem;
    line-height: 1.75;
    color: #555;
    max-width: 780px;
    margin: 0 auto 32px;
}

.sport-seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sport-seo-card {
    background: #fff;
    border-radius: 14px;
    padding: 22px 20px;
    border-left: 4px solid #FE0000;
    transition: all 0.25s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sport-seo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.sport-seo-card h3 {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #0a0a0a;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.sport-seo-card p {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.65;
    margin: 0;
}
.sport-seo-card a {
    color: #FE0000;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.sport-seo-card a:hover { border-bottom-color: #FE0000; }

/* ========================================================
   CTA
   ======================================================== */
.generator-cta {
    padding: 70px 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.generator-cta::before {
    content: '';
    position: absolute;
    top: -150px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(254,0,0,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.generator-cta .container { position: relative; z-index: 1; }

.generator-cta h2 {
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 18px;
    line-height: 1.25;
}

.generator-cta p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.78);
    max-width: 720px;
    margin: 0 auto 18px;
    line-height: 1.75;
}
.generator-cta p:last-of-type { margin-bottom: 32px; }

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.generator-cta .cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1;
}
.generator-cta .cta-buttons .btn-primary {
    background: linear-gradient(135deg, #FE0000 0%, #cc0000 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(254,0,0,0.3);
}
.generator-cta .cta-buttons .btn-primary:hover {
    background: #fff;
    color: #FE0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}
.generator-cta .cta-buttons .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.generator-cta .cta-buttons .btn-secondary:hover {
    background: #fff;
    color: #0a0a0a;
    border-color: #fff;
    transform: translateY(-3px);
}
.generator-cta .cta-buttons .btn-lg { padding: 18px 40px; font-size: 1rem; }

/* ========================================================
   ERROR
   ======================================================== */
.generator-error {
    display: none;
    text-align: center;
    padding: 16px 24px;
    margin: 20px 0;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 10px;
    color: #991B1B;
    font-weight: 600;
    font-size: 0.92rem;
}
.generator-error.visible { display: block; }

/* ========================================================
   RESPONSIVE
   ======================================================== */

/* Large tablets / small laptops */
@media (max-width: 1200px) {
    .sport-grid { grid-template-columns: repeat(4, 1fr); }
    .sport-seo-grid { grid-template-columns: repeat(3, 1fr); }
    .generator-styles-explained { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets */
@media (max-width: 992px) {
    .generator-hero { padding: 50px 20px 40px; }
    .generator-tool { padding: 48px 20px 40px; }
    .generator-content-section { padding: 48px 20px; }
    .generator-sport-content { padding: 48px 20px; }
    .generator-cta { padding: 56px 20px; }

    .sport-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .style-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .optional-inputs.visible { grid-template-columns: 1fr 1fr; }
    .sport-seo-grid { grid-template-columns: repeat(2, 1fr); }
    .generator-styles-explained { grid-template-columns: repeat(2, 1fr); }
    .generator-lessons-list { grid-template-columns: repeat(2, 1fr); }
    .generator-lessons-list .lesson-card:nth-child(5) { grid-column: 1 / -1; }
}

/* Small tablets / large phones */
@media (max-width: 768px) {
    .generator-hero { padding: 40px 16px 32px; }
    .generator-hero h1 { letter-spacing: 1px; }
    .generator-tool { padding: 36px 16px 32px; }
    .generator-results { padding: 40px 16px; }
    .generator-content-section { padding: 40px 16px; }
    .generator-sport-content { padding: 40px 16px; }
    .generator-cta { padding: 48px 16px; }

    .sport-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .sport-card-select { padding: 14px 6px; min-height: 80px; }
    .sport-card-select .sport-icon svg { width: 22px; height: 22px; }
    .sport-card-select .sport-name { font-size: 0.68rem; }

    .style-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .style-card { padding: 14px 10px 12px; }

    .optional-inputs.visible { grid-template-columns: 1fr; }

    .names-grid { grid-template-columns: 1fr; }
    .name-card { padding: 16px 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
    .name-actions { width: 100%; justify-content: flex-start; }
    .name-text { font-size: 1.05rem; }

    .sport-seo-grid { grid-template-columns: 1fr; }
    .generator-styles-explained { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .generator-lessons-list { grid-template-columns: 1fr; }
    .generator-lessons-list .lesson-card:nth-child(5) { grid-column: auto; }

    .results-actions { flex-direction: column; align-items: stretch; }
    .results-actions .btn-generate,
    .results-actions .btn-secondary { width: 100%; justify-content: center; }

    .btn-generate { padding: 16px 32px; font-size: 0.95rem; width: 100%; justify-content: center; }
    .step-desc { padding-left: 40px; }

    .generator-content-section h2,
    .generator-sport-content h2 { font-size: 1.4rem; }

    .generator-content-section p,
    .generator-input-list li,
    .generator-steps-list li { font-size: 0.95rem; }

    .generator-steps-list li {
        padding: 16px 16px 16px 56px;
    }
    .generator-steps-list li::before {
        left: 14px; top: 16px;
        width: 28px; height: 28px;
        font-size: 0.82rem;
    }

    .generator-cta .cta-buttons { flex-direction: column; align-items: stretch; }
    .generator-cta .cta-buttons .btn { width: 100%; }
}

/* Phones */
@media (max-width: 480px) {
    .generator-hero { padding: 32px 14px 28px; }
    .generator-hero h1 { font-size: 1.8rem; letter-spacing: 0.5px; }
    .generator-hero .hero-subtitle { font-size: 0.95rem; margin-bottom: 20px; }

    .hero-badges { gap: 6px; }
    .hero-badge { font-size: 0.72rem; padding: 5px 10px; }

    .sport-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .sport-card-select { padding: 10px 4px; min-height: 70px; border-radius: 10px; }
    .sport-card-select .sport-icon svg { width: 20px; height: 20px; }
    .sport-card-select .sport-name { font-size: 0.62rem; letter-spacing: 0; }

    .style-grid { gap: 6px; }
    .style-card { padding: 12px 8px 10px; border-radius: 10px; }
    .style-card .style-icon svg { width: 20px; height: 20px; }
    .style-card .style-name { font-size: 0.7rem; }
    .style-card .style-desc { display: none; }

    .optional-toggle { font-size: 0.82rem; padding: 8px 14px; }
    .optional-inputs input { padding: 12px 14px; font-size: 0.88rem; }

    .btn-generate { padding: 14px 24px; font-size: 0.88rem; letter-spacing: 1px; }

    .name-card { padding: 14px 16px; border-radius: 10px; }
    .name-text { font-size: 1rem; }
    .name-tagline { font-size: 0.78rem; }

    .name-actions button { min-width: 46px !important; height: 32px !important; font-size: 11px !important; }
    .name-actions .btn-favorite,
    .name-actions .btn-remove-fav { min-width: 34px !important; font-size: 16px !important; }

    .sport-seo-card { padding: 18px 16px; }
    .sport-seo-card h3 { font-size: 0.88rem; }
    .sport-seo-card p { font-size: 0.82rem; }

    .generator-styles-explained { grid-template-columns: 1fr; gap: 10px; }
    .style-explained-card { padding: 18px 18px; }
    .style-explained-card h3 { font-size: 0.92rem; }
    .style-explained-card p { font-size: 0.85rem; }

    .lesson-card { padding: 18px 18px; }
    .lesson-card h3 { font-size: 0.95rem; }
    .lesson-card p { font-size: 0.88rem; }

    .generator-content-section { padding: 36px 14px; }
    .generator-sport-content { padding: 36px 14px; }
    .generator-cta { padding: 40px 14px; }

    .generator-cta h2 { font-size: 1.35rem; }
    .generator-cta p { font-size: 0.95rem; }

    .favorites-header { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* Very small phones */
@media (max-width: 360px) {
    .sport-grid { grid-template-columns: repeat(2, 1fr); }
    .style-grid { grid-template-columns: repeat(2, 1fr); }
    .generator-hero h1 { font-size: 1.5rem; }
    .name-card { padding: 12px 14px; }
}

/* Touch / hover adjustments */
@media (hover: none) {
    .sport-card-select:hover,
    .style-card:hover,
    .name-card:hover,
    .sport-seo-card:hover,
    .style-explained-card:hover,
    .lesson-card:hover {
        transform: none;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    }
    .sport-card-select:active,
    .style-card:active { transform: scale(0.97); }
    .btn-generate:hover::after { left: -100%; }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .generator-hero { padding: 24px 20px; }
    .generator-hero h1 { font-size: 1.6rem; }
    .hero-badges { gap: 6px; }
    .loading-overlay { padding: 20px; }
    .loading-spinner { width: 40px; height: 40px; }
    .loading-text { font-size: 1rem; }
}

/* Print */
@media print {
    .generator-hero,
    .generator-tool,
    .loading-overlay,
    .generator-cta,
    .name-actions,
    .results-actions,
    .generator-favorites { display: none !important; }
    .generator-results { display: block !important; padding: 20px 0; }
    .name-card { break-inside: avoid; border: 1px solid #ccc; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
