/* 
 * สล็อต SEO Generator Styles
 * Modern Dark Theme with Neon Accents
 */

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&family=Kanit:wght@400;500;600;700&display=swap');

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #22222f;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --accent-gold: #ffd700;
    --accent-orange: #ff6b35;
    --accent-pink: #ff0080;
    --accent-purple: #9d4edd;
    --accent-cyan: #00d4ff;
    --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #ff0080 50%, #9d4edd 100%);
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    --shadow-glow: 0 0 30px rgba(255, 0, 128, 0.3);
    --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.3);
    --border-radius: 16px;
    --border-radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Prompt', 'Kanit', sans-serif;
    background: var(--gradient-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 0, 128, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(157, 78, 221, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    background: var(--nav-bg, rgba(10, 10, 15, 0.95));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    position: var(--nav-position, sticky);
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.nav-static {
    position: static;
}

.header.nav-solid {
    background: var(--bg-secondary);
}

.header.nav-gradient {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.header.nav-blur {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(30px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header.logo-center .header-content {
    flex-direction: column;
    gap: 15px;
}

.header.menu-center .nav {
    justify-content: center;
}

.logo {
    font-size: var(--logo-size, 1.8rem);
    font-weight: var(--logo-weight, 800);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.logo-gradient {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-glow {
    filter: drop-shadow(0 0 10px var(--accent-gold));
}

.logo-boxed {
    background: var(--gradient-gold) !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: var(--bg-primary) !important;
    background-clip: unset !important;
    padding: 8px 16px;
    border-radius: 8px;
}

.logo-underline {
    position: relative;
}

.logo-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* Nav Style: Simple (default) */
.nav-simple a::after {
    display: none;
}

/* Nav Style: Underline */
.nav-underline a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-underline a:hover::after {
    width: 100%;
}

/* Nav Style: Pill */
.nav-pill a {
    padding: 8px 16px;
    border-radius: 20px;
    background: transparent;
}

.nav-pill a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Nav Style: Button */
.nav-button a {
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-button a:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

/* Nav Style: Bordered */
.nav-bordered a {
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
}

.nav-bordered a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Nav Style: Glow */
.nav-glow a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 20px var(--accent-gold);
}

.nav a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: var(--hero-padding, 80px 0);
    text-align: var(--hero-align, center);
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: var(--hero-title-size, clamp(2.5rem, 6vw, 4rem));
    font-weight: var(--h1-weight, 800);
    letter-spacing: var(--h1-spacing, -1px);
    line-height: 1.2;
    margin-bottom: 20px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--h1-shadow, 0 0 60px rgba(255, 215, 0, 0.3));
    position: relative;
    z-index: 2;
}

.hero .subtitle {
    font-size: var(--hero-subtitle-size, 1.3rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

.hero .btn-cta {
    position: relative;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Hero Layout Variations */
.hero.hero-left-aligned {
    text-align: left;
}

.hero.hero-left-aligned .container {
    max-width: 800px;
    margin-left: 5%;
}

.hero.hero-stacked h1 {
    margin-bottom: 30px;
    line-height: 1.1;
}

.hero.hero-stacked .subtitle {
    max-width: 600px;
    margin: 0 auto 35px;
}

.hero.hero-minimal {
    padding: 50px 0;
}

.hero.hero-minimal .subtitle {
    display: none;
}

.hero.hero-split .container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    text-align: left;
}

@media (max-width: 768px) {
    .hero.hero-split .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero.hero-left-aligned .container {
        margin-left: auto;
    }
}

/* Hero Background Variations */
.hero::before,
.hero::after {
    pointer-events: none;
}

.hero.hero-bg-gradient-radial::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.hero.hero-bg-dots::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.hero.hero-bg-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.hero.hero-bg-waves::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23000' fill-opacity='0.3' d='M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,90.7C960,96,1056,128,1152,138.7C1248,149,1344,139,1392,133.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    z-index: 0;
}

.hero.hero-bg-circuit::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v10M30 50v10M0 30h10M50 30h10M30 30m-3 0a3 3 0 1 0 6 0a3 3 0 1 0-6 0' stroke='%23ffd700' stroke-opacity='0.1' fill='none'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    z-index: 0;
}

.hero.hero-bg-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(at 40% 20%, rgba(255, 0, 128, 0.2) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(157, 78, 221, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(255, 107, 53, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 50%, rgba(0, 212, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(255, 215, 0, 0.15) 0px, transparent 50%);
    z-index: 0;
}

/* H1 Effect Variations */
.hero.h1-shadow h1 {
    text-shadow: 0 4px 30px rgba(255, 215, 0, 0.5);
}

.hero.h1-gradient h1 {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-shift 5s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero.h1-outline h1 {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px var(--accent-gold);
}

.hero.h1-glow h1 {
    filter: drop-shadow(0 0 20px var(--accent-gold)) drop-shadow(0 0 40px rgba(255, 215, 0, 0.3));
}

/* CTA Button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-primary);
    background: var(--gradient-gold);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-gold);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

.btn-cta-secondary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-cta-secondary:hover {
    box-shadow: 0 10px 40px rgba(255, 0, 128, 0.4);
}

/* Banner Section */
.banner-section {
    margin: 40px 0;
}

.banner-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content Section */
.content-section {
    padding: 60px 0;
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.content-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 0, 128, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.content-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 0, 128, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Keyword Grid (Homepage) */
.keywords-section {
    padding: 60px 0;
}

.keywords-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.keywords-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.keyword-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    padding: 25px 30px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Icon is rendered via PHP in .card-icon span */
.keyword-card .card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.keyword-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: var(--shadow-gold);
    transform: translateX(5px);
}

.keyword-card span {
    font-weight: 500;
    font-size: 1.05rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 404 Page */
.error-page {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.error-page h1 {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.error-page h2 {
    font-size: 2rem;
    margin: 20px 0;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .content-card {
        padding: 25px;
    }
    
    .btn-cta {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .keywords-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .content-card h2 {
        font-size: 1.4rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Stagger animations */
.keyword-card:nth-child(1) { animation-delay: 0.1s; }
.keyword-card:nth-child(2) { animation-delay: 0.15s; }
.keyword-card:nth-child(3) { animation-delay: 0.2s; }
.keyword-card:nth-child(4) { animation-delay: 0.25s; }
.keyword-card:nth-child(5) { animation-delay: 0.3s; }
.keyword-card:nth-child(6) { animation-delay: 0.35s; }
.keyword-card:nth-child(7) { animation-delay: 0.4s; }
.keyword-card:nth-child(8) { animation-delay: 0.45s; }
.keyword-card:nth-child(9) { animation-delay: 0.5s; }
.keyword-card:nth-child(10) { animation-delay: 0.55s; }

.feature-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }





