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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f23 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.subtitle {
    color: #888;
    font-size: 1rem;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.canvas-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.2),
        0 0 60px rgba(212, 175, 55, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.canvas-container:hover {
    transform: scale(1.02);
    box-shadow: 
        0 30px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.3),
        0 0 80px rgba(212, 175, 55, 0.15);
}

#quoteCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8960c 100%);
    color: #000;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
    color: #fff;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #3d3d54 0%, #2a2a3e 100%);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.icon {
    font-size: 1.2rem;
}

.tweet-preview {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.tweet-preview h3 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tweet-preview p {
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap;
    color: #e0e0e0;
}

.stats {
    color: #666;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding-top: 40px;
    color: #444;
    font-size: 0.85rem;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

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

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .controls {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}
