/* NOIZ - White Noise & Wave Generator */
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    min-height: 100vh;
    line-height: 1.6;
}

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

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.logo-stressed {
    opacity: 1;
}

.logo-calm {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-sayan {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.logo-active .logo-stressed {
    opacity: 0;
}

.logo-active .logo-calm {
    opacity: 1;
}

/* Super Sayan logo override */
.super-sayan-active .logo-stressed {
    opacity: 0;
}

.super-sayan-active .logo-calm {
    opacity: 0;
}

.super-sayan-active .logo-sayan {
    opacity: 1;
}

/* Subtle pulsation animation for Sayan logo */
@keyframes sayan-pulse {
    0% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 5px rgba(251, 191, 36, 0.3));
    }
    50% {
        transform: scale(1.03);
        filter: brightness(1.1) drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
    }
    100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 5px rgba(251, 191, 36, 0.3));
    }
}

.super-sayan-active .logo-sayan {
    animation: sayan-pulse 3s ease-in-out infinite;
}

/* Enhanced pulse when beat pulse is active */
.super-sayan-active.ssj-beat-pulse .logo-sayan {
    animation: sayan-pulse 1.5s ease-in-out infinite;
}

.subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1rem;
    color: #64748b;
}

.tagline a {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s;
}

.tagline a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Main content layout */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Controls section */
.controls-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.control-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #334155;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.control-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}


.control-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Button styles */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #2563eb, #1e40af);
    transform: scale(1.05);
}

.btn-secondary {
    background: linear-gradient(90deg, #0ea5e9, #0369a1);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(90deg, #0284c7, #075985);
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.98);
}

/* Noise type selector */
.noise-type-selector {
    margin-bottom: 1.5rem;
}

.noise-type-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-weight: 500;
}

.noise-type-selector select {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: #334155;
    border: 1px solid #475569;
    color: #f1f5f9;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s;
}

.noise-type-selector select:hover {
    border-color: #60a5fa;
}

.noise-type-selector select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Volume control */
.volume-control {
    margin-top: 1.5rem;
}

.volume-control label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-weight: 500;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #334155;
    border-radius: 4px;
    outline: none;
    margin: 0.5rem 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    border: 2px solid #0f172a;
}

input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #38bdf8;
    cursor: pointer;
    border: 2px solid #0f172a;
}

.volume-control span {
    display: inline-block;
    margin-left: 0.75rem;
    font-weight: 600;
    color: #38bdf8;
    min-width: 4rem;
}

/* Install section */
.install-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.install-section .btn {
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.install-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.4;
}

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

/* Info section */
.info-section {
    margin-top: 1rem;
}

.info-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid #334155;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-card h3 i {
    color: #10b981;
}

.info-card p {
    color: #cbd5e1;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.info-card ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.info-card li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.info-card strong {
    color: #f1f5f9;
}

.note {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #fbbf24;
}

.note i {
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.footer a {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .logo-container {
        max-width: 250px;
    }
    
    .control-card {
        padding: 1.5rem;
    }
    
    .control-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Animation for active states */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.active-pulse {
    animation: pulse 2s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* SuperSayan Visual Effects */
.super-sayan-active .btn-primary {
    background: linear-gradient(90deg, #fbbf24, #d97706) !important;
}

.super-sayan-active .btn-primary:hover {
    background: linear-gradient(90deg, #f59e0b, #b45309) !important;
}

.super-sayan-active .btn-secondary {
    background: linear-gradient(90deg, #f59e0b, #b45309) !important;
}

.super-sayan-active .btn-secondary:hover {
    background: linear-gradient(90deg, #d97706, #92400e) !important;
}

.super-sayan-active input[type="range"]::-webkit-slider-thumb {
    background: #fbbf24 !important;
}

.super-sayan-active input[type="range"]::-moz-range-thumb {
    background: #fbbf24 !important;
}

.super-sayan-active .volume-control span {
    color: #fbbf24 !important;
}

/* SSJ Beat Pulse Animation */
@keyframes ssj-beat-pulse {
    0% {
        filter: brightness(1) hue-rotate(0deg);
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
    }
    50% {
        filter: brightness(1.5) hue-rotate(10deg);
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.9);
    }
    100% {
        filter: brightness(1) hue-rotate(0deg);
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
    }
}

.ssj-beat-pulse .control-card {
    animation: ssj-beat-pulse 0.92s ease-out;
}

.ssj-beat-pulse .btn-primary,
.ssj-beat-pulse .btn-secondary {
    animation: ssj-beat-pulse 0.92s ease-out;
}

/* Womb-specific styles (optional visual indicator) */
.womb-active .btn-primary {
    background: linear-gradient(90deg, #ec4899, #be185d) !important;
}

.womb-active .btn-primary:hover {
    background: linear-gradient(90deg, #db2777, #9d174d) !important;
}
