/* ============================================
   ELECTRICIAN NAME GENERATOR - STYLES
   Modern, professional design with animations
   ============================================ */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Electric Theme */
    --primary: #FFD700;        /* Gold */
    --primary-dark: #FFA500;   /* Orange */
    --secondary: #1a1a2e;      /* Dark Blue */
    --accent: #0f3460;         /* Medium Blue */
    --text-dark: #2c2c2c;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --border: #e0e0e0;
    --success: #28a745;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Segoe UI', system-ui, sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   ELECTRIC BACKGROUND ANIMATION
   ============================================ */
.electric-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    overflow: hidden;
}

/* Animated sparks in background */
.spark {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    animation: sparkle 3s infinite;
}

.spark-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.spark-2 {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.spark-3 {
    top: 80%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
}

.nav {
    display: flex;
    gap: var(--spacing-md);
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('https://imagedelivery.net/Vao_m7ISeT7aNnreYMwd6A/004024de-fb8f-437e-9965-8b57a903d600/public');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.92) 0%, rgba(15, 52, 96, 0.88) 100%);
    z-index: 0;
}

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

.hero-quote {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 215, 0, 0.1);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
}

.hero-quote p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 var(--spacing-xs) 0;
}

.quote-author {
    display: block;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    text-align: right;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-light);
    text-align: center;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   GENERATOR CARD
   ============================================ */
.generator-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    animation: slideUp 0.6s ease;
}

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

.disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 4px solid #ffa500;
    padding: var(--spacing-md);
    border-radius: 10px;
    margin-bottom: var(--spacing-md);
}

.disclaimer strong {
    display: block;
    color: #856404;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.disclaimer p {
    color: #856404;
    font-size: 0.938rem;
    line-height: 1.5;
    margin: 0;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
}

.input-hint {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.875rem;
    color: #666;
}

/* ============================================
   BUTTONS
   ============================================ */
.generate-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-dark);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    padding: 0.625rem 1.5rem;
    background: var(--accent);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 0.938rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-light);
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--spacing-sm);
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESULTS SECTION
   ============================================ */
.results {
    max-width: 1000px;
    margin: 0 auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.results-header h3 {
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 700;
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

/* Individual Name Card */
.name-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: var(--spacing-md);
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
    position: relative;
    overflow: hidden;
}

.name-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.name-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.name-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.name-tagline {
    font-size: 0.938rem;
    color: #666;
    font-style: italic;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border);
}

.name-explanation {
    font-size: 0.875rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.name-laws {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.law-badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 165, 0, 0.1);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.copy-btn {
    margin-top: var(--spacing-sm);
    width: 100%;
    padding: 0.625rem;
    background: var(--accent);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--secondary);
}

.copy-btn.copied {
    background: var(--success);
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy {
    background: white;
    padding: var(--spacing-xl) 0;
}

.philosophy-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.philosophy-image {
    width: 200px;
    height: auto;
    border-radius: 15px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.philosophy-text {
    flex: 1;
}

.philosophy-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.philosophy-quote {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    border-radius: 15px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.938rem;
    margin-top: var(--spacing-xs);
}

/* ============================================
   22 LAWS SECTION
   ============================================ */
.laws-section {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    padding: var(--spacing-xl) 0;
    color: var(--text-light);
}

.laws-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

.laws-intro {
    text-align: center;
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.laws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.law-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.law-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.law-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.law-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--primary);
}

.law-card p {
    font-size: 0.938rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.laws-cta {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    border: 2px dashed var(--primary);
}

.laws-cta p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin: 0;
}

.laws-cta strong {
    color: var(--primary);
}

/* ============================================
   FEATURES GRID (About Section)
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-md);
    border-radius: 15px;
    background: var(--bg-light);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.feature-card p {
    color: #666;
    font-size: 0.938rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--accent);
    border-radius: 15px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    display: block;
    color: var(--text-light);
    font-size: 0.938rem;
    margin-top: var(--spacing-xs);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--secondary);
    color: var(--text-light);
    padding: var(--spacing-md) 0;
    text-align: center;
}

.footer-credits p {
    margin: var(--spacing-xs) 0;
}

.footer-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-quote p {
        font-size: 1rem;
    }
    
    .generator-card {
        padding: var(--spacing-md);
    }
    
    .names-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .nav {
        gap: var(--spacing-sm);
    }
    
    .laws-grid {
        grid-template-columns: 1fr;
    }
    
    .laws-section h2 {
        font-size: 2rem;
    }
    
    .philosophy-content {
        flex-direction: column;
        text-align: center;
    }
    
    .philosophy-image {
        width: 150px;
    }
    
    .philosophy-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-quote {
        padding: var(--spacing-sm);
    }
    
    .hero-quote p {
        font-size: 0.938rem;
    }
    
    .logo h1 {
        font-size: 1.125rem;
    }
    
    .disclaimer {
        padding: var(--spacing-sm);
    }
    
    .disclaimer strong {
        font-size: 1rem;
    }
    
    .law-number {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .philosophy-image {
        width: 120px;
    }
    
    .philosophy-text h2 {
        font-size: 1.5rem;
    }
    
    .philosophy-quote {
        font-size: 1rem;
    }
}
