/* ================================
   USD1 Bill Generator - Golden Theme
   ================================ */

:root {
    /* Golden palette */
    --gold-50: #FFFBEB;
    --gold-100: #FEF3C7;
    --gold-200: #FDE68A;
    --gold-300: #FCD34D;
    --gold-400: #FBBF24;
    --gold-500: #F59E0B;
    --gold-600: #D97706;
    --gold-700: #B45309;
    --gold-800: #92400E;
    --gold-900: #78350F;
    
    /* Dark backgrounds */
    --bg-dark: #0D0A06;
    --bg-card: #1A1508;
    --bg-elevated: #241D0E;
    
    /* Text colors */
    --text-primary: #FEF3C7;
    --text-secondary: #D4A845;
    --text-muted: #8B7355;
    
    /* Accent */
    --accent: #FFD700;
    --accent-glow: rgba(255, 215, 0, 0.3);
    
    /* Bill specific */
    --bill-bg: linear-gradient(135deg, #F5E6C8 0%, #E8D5A3 25%, #F2E4BE 50%, #E5D19A 75%, #F0E2BA 100%);
    --bill-border: #8B7355;
    --bill-text: #2D4A2D;
    --bill-accent: #1A3A1A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(217, 119, 6, 0.04) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

/* Floating Bills Animation */
.floating-bills {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-bill {
    position: absolute;
    width: 60px;
    height: 26px;
    background: linear-gradient(135deg, #F5E6C8 0%, #E8D5A3 100%);
    border: 1px solid var(--gold-600);
    border-radius: 2px;
    left: var(--x);
    animation: floatDown 15s linear infinite;
    animation-delay: var(--delay);
    opacity: 0.15;
    transform: rotate(-15deg);
}

.floating-bill::before {
    content: '$1';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: 10px;
    color: var(--bill-text);
    font-weight: 700;
}

@keyframes floatDown {
    0% {
        transform: translateY(-100px) rotate(-15deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(100vh) rotate(15deg);
        opacity: 0;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 3rem;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 100%);
}

header .coming-soon-badge {
    margin: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.logo-symbol {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero-main {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-200) 0%, var(--accent) 30%, var(--gold-400) 60%, var(--gold-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px var(--accent-glow);
    line-height: 1;
}

.hero-desc {
    max-width: 500px;
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 2px solid var(--gold-600);
    border-radius: 50px;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.badge-label {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.badge-text {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Generator Section */
.generator {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* Upload Area */
.upload-area {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border: 2px dashed var(--gold-600);
    border-radius: 24px;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover, .upload-area.drag-over {
    border-color: var(--accent);
    background: var(--bg-elevated);
    transform: scale(1.02);
}

.upload-area.has-image {
    display: none;
}

.upload-content {
    text-align: center;
    padding: 2rem;
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--bg-elevated);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-400);
}

.upload-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Bill Preview */
.bill-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    perspective: 2000px;
}

.bill-preview.hidden {
    display: none;
}

/* Interactive Controls */
.interactive-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
}

.control-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--gold-800);
}

.control-buttons {
    display: flex;
    gap: 0.75rem;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 2px solid var(--gold-700);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.05);
}

.control-btn:active {
    transform: scale(0.95);
}

/* The Bill Design */
.bill {
    position: relative;
    width: 600px;
    height: 260px;
    background: var(--bill-bg);
    border-radius: 8px;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.3),
        0 8px 24px rgba(0,0,0,0.2),
        inset 0 0 60px rgba(255,255,255,0.1);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    cursor: grab;
    user-select: none;
}

.bill:active {
    cursor: grabbing;
}

.bill.flipped {
    transform: rotateY(180deg);
}

.bill.interactive {
    transform: rotateX(5deg) rotateZ(0deg) scale(1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.bill-content {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Bill borders */
.bill-border-top, .bill-border-bottom {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 20px;
    background: repeating-linear-gradient(
        90deg,
        var(--bill-accent) 0px,
        var(--bill-accent) 2px,
        transparent 2px,
        transparent 8px
    );
    opacity: 0.3;
}

.bill-border-top {
    top: 8px;
}

.bill-border-bottom {
    bottom: 8px;
}

/* Bill content layout */
.bill-content {
    display: flex;
    height: 100%;
    padding: 30px 20px;
}

.bill-side {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.bill-corner-ornament {
    font-size: 1.5rem;
    color: var(--bill-accent);
    opacity: 0.6;
}

.bill-denomination-side {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--bill-accent);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.bill-right .bill-denomination-side {
    transform: rotate(180deg);
}

/* Bill center */
.bill-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.bill-header {
    text-align: center;
}

.bill-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bill-accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bill-serial {
    font-family: 'Special Elite', monospace;
    font-size: 0.7rem;
    color: var(--bill-text);
    letter-spacing: 0.1em;
    margin-top: 4px;
    opacity: 0.7;
}

/* Portrait frame */
.bill-portrait-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait-oval {
    width: 100px;
    height: 120px;
    border: 3px solid var(--bill-accent);
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #E8DCC4 0%, #D4C8A8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 0 20px rgba(0,0,0,0.1),
        0 4px 12px rgba(0,0,0,0.15);
}

.portrait-placeholder {
    text-align: center;
    font-family: 'Special Elite', monospace;
    font-size: 0.65rem;
    color: var(--bill-text);
    opacity: 0.5;
    line-height: 1.4;
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.portrait-image.visible {
    display: block;
}

.portrait-decoration {
    position: absolute;
    font-size: 1.2rem;
    color: var(--bill-accent);
    opacity: 0.5;
}

.portrait-decoration.left {
    left: -30px;
}

.portrait-decoration.right {
    right: -30px;
}

/* Bill footer */
.bill-footer {
    text-align: center;
}

.bill-value-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--bill-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.bill-name {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bill-text);
    margin-top: 2px;
    letter-spacing: 0.1em;
}

.bill-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.55rem;
    color: var(--bill-text);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 4px;
    opacity: 0.6;
}

/* Corner denominations */
.bill-corner {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--bill-accent);
    opacity: 0.8;
}

.bill-corner.top-left { top: 15px; left: 15px; }
.bill-corner.top-right { top: 15px; right: 15px; }
.bill-corner.bottom-left { bottom: 15px; left: 15px; }
.bill-corner.bottom-right { bottom: 15px; right: 15px; }

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
}

.controls.hidden {
    display: none;
}

.name-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
}

.name-input-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.name-input-group input {
    padding: 0.875rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--gold-700);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.name-input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.name-input-group input::placeholder {
    color: var(--text-muted);
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--gold-700);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--gold-500);
}

.btn-accent {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-accent:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Gallery Section */
.gallery {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
    background: var(--bg-card);
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-elevated);
    border-radius: 20px;
    border: 2px dashed var(--gold-800);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-placeholder h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.gallery-placeholder p {
    color: var(--text-muted);
}

.gallery-item {
    background: var(--bg-elevated);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 600/260;
    object-fit: cover;
}

.gallery-item-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gallery-item-name {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-primary);
}

.gallery-item-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--gold-900);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    
    nav {
        gap: 1.5rem;
    }
    
    .hero-sub {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .bill {
        width: 100%;
        max-width: 360px;
        height: auto;
        aspect-ratio: 600/260;
        transform: none;
    }
    
    .bill:hover {
        transform: scale(1.02);
    }
    
    .bill-content {
        padding: 15px 10px;
    }
    
    .bill-side {
        width: 35px;
    }
    
    .bill-denomination-side {
        font-size: 1.5rem;
    }
    
    .bill-title {
        font-size: 0.6rem;
    }
    
    .bill-serial {
        font-size: 0.5rem;
    }
    
    .portrait-oval {
        width: 60px;
        height: 72px;
    }
    
    .bill-value-text {
        font-size: 0.9rem;
    }
    
    .bill-subtitle {
        font-size: 0.4rem;
    }
    
    .bill-corner {
        font-size: 0.8rem;
    }
    
    .button-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1, .hero-desc, .cta-btn {
    animation: fadeInUp 0.8s ease-out backwards;
}

.hero-desc {
    animation-delay: 0.2s;
}

.cta-btn {
    animation-delay: 0.4s;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
    color: var(--bg-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 24px rgba(245, 158, 11, 0.4);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

