/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0e14;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 200, 255, 0.1) 0%, transparent 50%);
    animation: gradientShift 10s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-size: 120px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.title {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
}

.ticker {
    font-size: 32px;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.tagline {
    font-size: 24px;
    color: #e0e0e0;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    font-size: 18px;
    color: #a0a0a0;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #00ff88, #00cc70);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
    transition: all 0.3s ease;
    border: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.6);
}

/* ==================== GENERATOR SECTION ==================== */
.generator {
    padding: 80px 20px;
    background: #0a0e14;
    position: relative;
}

.generator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
}

.section-title {
    text-align: center;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00ff88, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #a0a0a0;
    margin-bottom: 50px;
}

.generator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

/* ==================== PREVIEW AREA ==================== */
.preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
    background: #1a1f2e;
}

#preview {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 255, 136, 0.1);
    border-top-color: #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #00ff88;
    font-size: 18px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    width: 100%;
    max-width: 500px;
}

.download-btn,
.share-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.download-btn {
    background: linear-gradient(135deg, #00ff88, #00cc70);
    color: #000;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
}

.share-btn {
    background: linear-gradient(135deg, #1DA1F2, #0d8bd9);
    color: #fff;
    box-shadow: 0 5px 20px rgba(29, 161, 242, 0.3);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.5);
}

.meme-counter {
    margin-top: 20px;
    padding: 12px 25px;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 50px;
    color: #00ff88;
    font-weight: 600;
    font-size: 16px;
}

/* ==================== CONTROLS AREA ==================== */
.controls-area {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.prompt-box label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #00ff88;
    margin-bottom: 12px;
}

#prompt {
    width: 100%;
    padding: 18px;
    background: #1a1f2e;
    border: 2px solid #2a3f4e;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 150px;
    transition: all 0.3s ease;
}

#prompt:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

#prompt::placeholder {
    color: #6a7a8a;
}

.prompt-info {
    text-align: right;
    color: #6a7a8a;
    font-size: 14px;
    margin-top: 8px;
}

.generate-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00ff88, #00cc70);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.generate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.6);
}

.generate-btn:active {
    transform: translateY(-1px);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 22px;
}

.status-log {
    padding: 15px;
    background: #1a1f2e;
    border-left: 3px solid #00ff88;
    border-radius: 8px;
    color: #a0a0a0;
    font-size: 14px;
    min-height: 50px;
    max-height: 150px;
    overflow-y: auto;
    display: none;
}

.status-log.active {
    display: block;
}

.status-log p {
    margin: 5px 0;
}

.tips-box {
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    color: #d0d0d0;
    font-size: 14px;
}

.tips-box strong {
    color: #00ff88;
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.tips-box ul {
    list-style: none;
    padding-left: 0;
}

.tips-box li {
    padding-left: 20px;
    position: relative;
    margin: 8px 0;
}

.tips-box li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-weight: bold;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    padding: 80px 20px;
    background: linear-gradient(180deg, #0a0e14 0%, #1a1f2e 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    padding: 35px;
    background: rgba(0, 255, 136, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #00ff88;
}

.feature-card p {
    color: #a0a0a0;
    font-size: 15px;
}

/* ==================== COMMUNITY SECTION ==================== */
.community {
    padding: 80px 20px;
    background: #0a0e14;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 30px;
    background: #1a1f2e;
    border: 2px solid #2a3f4e;
    border-radius: 50px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: #00ff88;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.social-icon {
    font-size: 24px;
}

.social-link.twitter:hover {
    border-color: #1DA1F2;
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.3);
}

.social-link.telegram:hover {
    border-color: #0088cc;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}

.social-link.discord:hover {
    border-color: #5865F2;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 40px 20px;
    background: #060a0f;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.footer p {
    margin: 8px 0;
    color: #a0a0a0;
}

.footer-tagline {
    color: #00ff88;
    font-weight: 600;
}

.footer-small {
    font-size: 14px;
    color: #6a7a8a;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .generator-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .title {
        font-size: 36px;
    }
    
    .logo {
        font-size: 80px;
    }
    
    .ticker {
        font-size: 24px;
    }
    
    .tagline {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==================== SMOOTH SCROLL ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0e14;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff88, #00cc70);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ff88;
}
