/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bright-green: #00FF00;
    --dark-green: #00CC00;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #333333;
    --light-gray: #666666;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bright-green);
    color: var(--black);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.nav {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--black);
}

.nav-icon {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-btn {
    background: var(--black);
    color: var(--bright-green);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s;
}

.nav-btn:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 60px 0 80px;
    text-align: center;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Fredoka', 'Outfit', sans-serif;
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 700;
    color: var(--black);
    margin-bottom: 15px;
    line-height: 1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--black);
    margin-bottom: 10px;
}

.hero-creator {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--light-gray);
    font-weight: 500;
    margin-bottom: 40px;
    font-style: italic;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-wrapper {
    background: var(--bright-green);
    border: 5px solid var(--white);
    border-radius: 20px;
    padding: 20px;
    display: inline-block;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: 10px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.hero-btn-primary {
    background: var(--black);
    color: var(--bright-green);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-btn-secondary {
    background: rgba(0, 0, 0, 0.15);
    color: var(--black);
}

.hero-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.contract-section {
    background: rgba(0, 0, 0, 0.08);
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: inline-block;
}

.contract-label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
    font-weight: 600;
}

.contract-address {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--black);
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--black);
    color: var(--bright-green);
    transform: translateY(-3px);
}

/* The Lore Section */
.lore-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.02);
}

.lore-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.lore-title {
    font-family: 'Fredoka', 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--black);
    margin-bottom: 30px;
    font-weight: 700;
}

.lore-text {
    color: #444;
    line-height: 1.9;
    font-size: 1.05rem;
}

.lore-text p {
    margin-bottom: 20px;
}

.lore-text strong {
    color: var(--black);
    font-weight: 700;
}

.lore-btn {
    display: inline-block;
    background: var(--black);
    color: var(--bright-green);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
    transition: all 0.3s;
}

.lore-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lore-video {
    position: sticky;
    top: 100px;
}

.video-placeholder {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--black);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-frame {
    position: relative;
    aspect-ratio: 9/16;
    background: var(--bright-green);
    overflow: hidden;
}

.video-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bright-green);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.play-button:hover {
    background: var(--black);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: #f5f5f5;
}

.video-stats .stat {
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
}

/* Videos Section */
.videos-section {
    padding: 80px 0;
    background: var(--bright-green);
}

.videos-title {
    font-family: 'Fredoka', 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 50px;
    color: var(--black);
    font-weight: 700;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.video-card {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--white);
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.video-thumb {
    position: relative;
    aspect-ratio: 9/16;
    background: var(--bright-green);
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 1.5rem;
    cursor: pointer;
}

.video-info {
    padding: 15px;
}

.video-tag {
    color: #aaa;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.video-creator {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 8px;
}

.video-title {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.video-sound {
    color: #888;
    font-size: 0.85rem;
    font-style: italic;
}

.video-engagement {
    display: flex;
    gap: 15px;
    padding: 0 15px 10px;
    font-size: 0.85rem;
    color: #aaa;
}

.watch-btn {
    display: block;
    background: var(--bright-green);
    color: var(--black);
    text-align: center;
    padding: 10px;
    text-decoration: none;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.watch-btn:hover {
    background: var(--white);
}

/* Generator Section */
.generator-section {
    padding: 60px 0 80px;
    background: rgba(0, 0, 0, 0.03);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 10px;
    color: var(--black);
    font-weight: 900;
}

.section-title p {
    color: #555;
    font-size: 1.1rem;
}

.generator-card {
    background: var(--white);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--black);
}

.generator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Image Container */
.image-container {
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bright-green);
    border: 4px solid var(--black);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: var(--black);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Controls */
.controls-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prompt-section label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
    font-size: 1.1rem;
}

#promptInput {
    width: 100%;
    padding: 15px;
    background: #f5f5f5;
    border: 2px solid var(--black);
    border-radius: 15px;
    color: var(--black);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

#promptInput:focus {
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 255, 0, 0.3);
}

.tips {
    background: rgba(0, 255, 0, 0.1);
    padding: 15px;
    border-radius: 15px;
    margin-top: 15px;
    border-left: 4px solid var(--black);
}

.tips h4 {
    color: var(--black);
    font-size: 0.95rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.tips ul {
    list-style: none;
    padding-left: 0;
}

.tips li {
    color: #444;
    font-size: 0.9rem;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.tips li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--black);
    font-weight: 700;
}

/* Buttons */
.btn-generate,
.btn-download {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-generate {
    background: var(--black);
    color: var(--bright-green);
    border: 3px solid var(--black);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-generate:active {
    transform: translateY(0);
}

.btn-generate:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-download {
    background: var(--white);
    color: var(--black);
    border: 3px solid var(--black);
}

.btn-download:hover:not(:disabled) {
    background: var(--black);
    color: var(--bright-green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-download:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Trending Section */
.trending-section {
    background: rgba(0, 255, 0, 0.08);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.trending-section h4 {
    color: var(--black);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 700;
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--white);
    color: var(--black);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 2px solid var(--black);
    transition: all 0.3s ease;
    font-weight: 600;
}

.tag:hover {
    background: var(--black);
    color: var(--bright-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.95);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--bright-green);
}

.footer-brand-text {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--bright-green);
    font-style: italic;
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: var(--bright-green);
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-column a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--bright-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom p {
    color: #888;
    font-size: 0.9rem;
    margin: 5px 0;
}

.footer-disclaimer {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 968px) {
    .generator-grid {
        grid-template-columns: 1fr;
    }
    
    .lore-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .lore-video {
        position: relative;
        top: 0;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 12vw, 6rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }
    
    .hero-tagline {
        font-size: 0.95rem;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .lore-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    .lore-text {
        font-size: 1rem;
    }
    
    .videos-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
}

@media (max-width: 640px) {
    .generator-card {
        padding: 20px;
    }
    
    .generator-section {
        padding: 40px 0 60px;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 15vw, 4rem);
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .hero-image-wrapper {
        padding: 15px;
        border: 3px solid var(--white);
    }
    
    .hero-image {
        max-width: 300px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .hero-btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .contract-section {
        padding: 15px 20px;
    }
    
    .contract-address {
        font-size: 0.85rem;
        word-break: break-all;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 1rem;
    }
    
    .nav-icon {
        font-size: 1.5rem;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-link {
        display: none;
    }
    
    .nav-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .social-icons {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lore-section {
        padding: 50px 0;
    }
    
    .videos-section {
        padding: 50px 0;
    }
    
    .lore-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .lore-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .lore-text p {
        margin-bottom: 15px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-brand-title {
        font-size: 1.5rem;
    }
    
    .footer-brand-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .footer-tagline {
        font-size: 0.9rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .footer-column a {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .footer-disclaimer {
        font-size: 0.75rem;
    }
    
    .trending-section {
        padding: 15px;
    }
    
    .trending-tags {
        gap: 8px;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 7px 12px;
    }
    
    #promptInput {
        font-size: 0.95rem;
        padding: 12px;
    }
    
    .btn-generate,
    .btn-download {
        padding: 16px;
        font-size: 1rem;
    }
    
    .lore-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
        display: block;
        text-align: center;
    }
    
    .video-info {
        padding: 12px;
    }
    
    .video-title {
        font-size: 0.85rem;
    }
    
    .watch-btn {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .contract-section {
        width: 100%;
        max-width: 90%;
    }
}
