/* Dope Vibe Generator Styles */

:root {
    --primary-color: #8a2be2; /* Vibrant purple */
    --secondary-color: #00bfff; /* Deep sky blue */
    --accent-color: #ff1493; /* Deep pink */
    --background-color: #121212;
    --text-color: #f0f0f0;
    --card-bg: #1e1e1e;
    --success-color: #00c853;
    --error-color: #ff3d00;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 90% 60%, rgba(0, 191, 255, 0.2) 0%, transparent 20%),
        radial-gradient(circle at 50% 80%, rgba(255, 20, 147, 0.2) 0%, transparent 20%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-in-out;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.8;
}

.vibe-controls {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    animation: slideUp 0.8s ease-out;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

label {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

select, input[type="range"] {
    padding: 0.8rem;
    border-radius: 5px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    background-color: rgba(30, 30, 30, 0.7);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    outline: none;
    padding: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    border: 2px solid var(--text-color);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn.secondary {
    background-color: rgba(30, 30, 30, 0.8);
    color: var(--text-color);
    border: 2px solid var(--secondary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

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

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vibe-display {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-in-out 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.vibe-info {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.vibe-info h2 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    font-size: 1.8rem;
}

.vibe-details p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.vibe-details span {
    font-weight: 600;
    color: var(--secondary-color);
}

.vibe-visualizer {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.vibe-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.saved-vibes {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in-out 0.7s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.saved-vibes h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

#saved-vibes-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

#saved-vibes-list li {
    background-color: rgba(30, 30, 30, 0.7);
    padding: 1rem;
    border-radius: 5px;
    border-left: 4px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

#saved-vibes-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: rgba(40, 40, 40, 0.7);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .vibe-display {
        grid-template-columns: 1fr;
    }
    
    .vibe-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
}
