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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #faefd6 0%, #f7f3e9 100%);
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-start;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #008080;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    padding-top: 80px; /* Account for fixed header */
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.gradient-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #008080, #00b3b3);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #FF69B4, #ff8fa3);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #4f46e5, #7c3aed);
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.hero-text {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-headline {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #008080, #00b3b3, #FF69B4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subheadline {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-button.primary {
    background: linear-gradient(135deg, #008080 0%, #00b3b3 100%);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 25px rgba(0, 128, 128, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.cta-button.primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button.primary:hover:before {
    left: 100%;
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 35px rgba(0, 128, 128, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.counter-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.counter-number {
    font-size: 2rem;
    font-weight: 700;
    color: #008080;
    line-height: 1;
}

.counter-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Form Section */
.form-section {
    padding: 4rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 1.1rem;
    color: #4a5568;
}

.name-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #008080;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.tone-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.generate-button {
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.3);
}

.generate-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 128, 128, 0.4);
    background: linear-gradient(135deg, #006666 0%, #004d4d 100%);
}

.generate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

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

/* Results Section */
.results-section {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.5);
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.global-counter {
    background: rgba(0, 128, 128, 0.1);
    color: #008080;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.clear-session-btn {
    background: rgba(255, 105, 180, 0.1);
    color: #FF69B4;
    border: 2px solid #FF69B4;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-session-btn:hover {
    background: #FF69B4;
    color: white;
}

.names-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.name-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 128, 128, 0.1);
    position: relative;
}

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

.name-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.name-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #008080;
    margin: 0;
}

.tone-tag {
    background: linear-gradient(135deg, #FF69B4, #ff8fa3);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.name-explanation {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.copy-button {
    background: rgba(0, 128, 128, 0.1);
    color: #008080;
    border: 2px solid #008080;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.copy-button:hover {
    background: #008080;
    color: white;
}

.copy-button.copied {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}

/* Regenerate Section */
.regenerate-section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.regenerate-buttons {
    display: flex;
    justify-content: center;
}

.regenerate-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.regenerate-form label {
    font-weight: 600;
    color: #2d3748;
}

.regenerate-form textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
}

.regenerate-form textarea:focus {
    outline: none;
    border-color: #008080;
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.regenerate-button {
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

.regenerate-button.simple {
    background: linear-gradient(135deg, #008080 0%, #006666 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 128, 128, 0.3);
}

.regenerate-button.simple:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 128, 128, 0.4);
}

.regenerate-button.guided {
    background: linear-gradient(135deg, #FF69B4 0%, #ff8fa3 100%);
    color: white;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.regenerate-button.guided:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4);
}

.regenerate-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.regenerate-button .button-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.regenerate-button .loading-spinner {
    animation: spin 1s linear infinite;
}

/* Error and Toast Styles */
.error-message {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fed7d7;
    color: #c53030;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #feb2b2;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: #48bb78;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #008080, transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 2fr;
    gap: 3rem;
    align-items: start;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #008080;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: #a0aec0;
    font-size: 1rem;
    font-weight: 400;
}

.footer-divider {
    width: 1px;
    height: 100px;
    background: linear-gradient(180deg, transparent, #008080, transparent);
    justify-self: center;
}

.footer-credits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.creator-info h4,
.community-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.linkedin-link,
.community-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #008080;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 128, 128, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    background: rgba(0, 128, 128, 0.1);
    backdrop-filter: blur(10px);
}

.linkedin-link:hover,
.community-link:hover {
    background: #008080;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.3);
}

.feedback-text,
.community-text {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-subheadline {
        font-size: 1.2rem;
    }
    
    .form-card {
        padding: 2rem;
        margin: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .names-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-credits {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand h3 {
        font-size: 1.8rem;
    }
    
    .toast-container {
        right: 1rem;
        left: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section,
    .form-section {
        padding: 2rem 1rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}