/*
 * ConsoleSniper - Bass Frequency Generator Styles
 * Pure Black Neumorphic Heavy Design
 */

/* ===== BASS GENERATOR PAGE LAYOUT ===== */
.bass-generator-page {
    background: #0a0a0a;
    color: #e0e0e0;
    min-height: 100vh;
}

/* ===== BASS HERO SECTION ===== */
.bass-hero {
    position: relative;
    padding: 6rem 2rem 5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    background: #000000;
}

.bass-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

@keyframes heroGlow {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.5;
    }
}

.bass-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(white 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: 0 0;
    opacity: 0.03;
    pointer-events: none;
}

.bass-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
}

.bass-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #f0f0f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.title-accent {
    color: #e0e0e0;
    font-weight: 800;
}

.bass-subtitle {
    font-size: 1.05rem;
    color: #b0b0b0;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ===== BASS GENERATOR SECTION ===== */
.bass-generator-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.generator-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

/* ===== CONTROL PANEL ===== */
.control-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
}

.panel-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1.75rem 0;
}

/* ===== FREQUENCY DISPLAY ===== */
.frequency-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(39, 197, 161, 0.1);
    border: 2px solid rgba(39, 197, 161, 0.3);
    border-radius: 12px;
}

.freq-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #27c5a1;
    font-family: 'Courier New', monospace;
}

.freq-unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: #718096;
}

/* ===== SLIDER GROUP ===== */
.slider-group {
    margin-bottom: 2rem;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.freq-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.freq-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27c5a1 0%, #00fff7 100%);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(39, 197, 161, 0.5);
    transition: all 0.2s ease;
}

.freq-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(39, 197, 161, 0.7);
}

.freq-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27c5a1 0%, #00fff7 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(39, 197, 161, 0.5);
    transition: all 0.2s ease;
}

.freq-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(39, 197, 161, 0.7);
}

.freq-slider::-webkit-slider-runnable-track {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.3) 0%, rgba(39, 197, 161, 0.3) 100%);
    height: 8px;
    border-radius: 5px;
}

.freq-slider::-moz-range-track {
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.3) 0%, rgba(39, 197, 161, 0.3) 100%);
    height: 8px;
    border-radius: 5px;
    border: none;
}

.slider-hint {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 0.5rem;
}

/* ===== PRESET BUTTONS ===== */
.preset-buttons {
    margin-bottom: 2rem;
}

.presets-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e6ed;
    margin-bottom: 1rem;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.preset-btn {
    /* Square aspect ratio */
    aspect-ratio: 1;
    /* Neumorphic styling */
    background: #1a1a1a;
    border: none;
    border-radius: 20px;
    color: #e0e0e0;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Neumorphic shadows */
    box-shadow: -8px -8px 20px rgba(255, 255, 255, 0.05), 8px 8px 20px rgba(0, 0, 0, 0.8);
    /* Flex for centering text */
    display: flex;
    align-items: center;
    justify-content: center;
}

.preset-btn:hover {
    background: #252525;
    box-shadow: -6px -6px 16px rgba(255, 255, 255, 0.08), 6px 6px 16px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.preset-btn.active {
    background: #0f0f0f;
    box-shadow: inset -4px -4px 10px rgba(255, 255, 255, 0.05), inset 4px 4px 10px rgba(0, 0, 0, 0.7);
    color: #4fb584;
}

/* ===== CONTROL BUTTONS ===== */
.control-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.play-button,
.stop-button {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.play-button {
    background: linear-gradient(135deg, #27c5a1 0%, #1fa085 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(39, 197, 161, 0.3);
}

.play-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(39, 197, 161, 0.4);
}

.play-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #718096;
    cursor: not-allowed;
    box-shadow: none;
}

.stop-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.stop-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.stop-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #718096;
    cursor: not-allowed;
    box-shadow: none;
}

.play-button svg,
.stop-button svg {
    width: 20px;
    height: 20px;
}

/* ===== VOLUME CONTROL ===== */
.volume-control {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.volume-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e0e6ed;
    margin-bottom: 0.75rem;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.volume-icon {
    font-size: 1.25rem;
}

.small-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.small-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    cursor: pointer;
}

.small-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    cursor: pointer;
    border: none;
}

.volume-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b82f6;
}

/* ===== WARNING BOX ===== */
.warning-box {
    display: flex;
    gap: 1rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    padding: 1rem;
}

.warning-box svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #fbbf24;
    stroke-width: 2;
}

.warning-box p {
    font-size: 0.9rem;
    color: #fcd34d;
    margin: 0;
    line-height: 1.5;
}

/* ===== INFO PANEL ===== */
.info-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
}

.info-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.75rem 0;
}

.info-section p {
    font-size: 0.95rem;
    color: #b0c0d8;
    margin: 0;
    line-height: 1.6;
}

.frequency-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.freq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem;
}

.freq-range {
    font-size: 0.95rem;
    font-weight: 700;
    color: #27c5a1;
    margin-bottom: 0.5rem;
}

.freq-description {
    font-size: 0.9rem;
    color: #b0c0d8;
    line-height: 1.5;
}

.freq-description strong {
    color: #fff;
}

.best-practices,
.fun-facts {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
    list-style: none;
}

.best-practices li,
.fun-facts li {
    font-size: 0.95rem;
    color: #b0c0d8;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.best-practices li strong,
.fun-facts li strong {
    color: #fff;
}

/* ===== SAFETY SECTION ===== */
.safety-section {
    padding: 5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.safety-container {
    max-width: 1200px;
    margin: 0 auto;
}

.safety-container h3 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.safety-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.safety-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(39, 197, 161, 0.3);
    transform: translateY(-4px);
}

.safety-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.safety-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.safety-card p {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .generator-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .bass-hero {
        padding: 4rem 1.5rem 3rem;
        min-height: auto;
    }

    .bass-title {
        font-size: 1.4rem;
    }

    .bass-subtitle {
        font-size: 0.95rem;
    }

    .bass-generator-section {
        padding: 2rem 1rem;
    }

    .control-panel,
    .info-panel {
        padding: 1.5rem;
    }

    .panel-title {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }

    .freq-value {
        font-size: 2.5rem;
    }

    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .control-buttons {
        grid-template-columns: 1fr;
    }

    .safety-section {
        padding: 3rem 1rem;
    }

    .safety-container h3 {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .safety-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .safety-card {
        padding: 1rem;
    }

    .safety-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .safety-card h4 {
        font-size: 1rem;
    }

    .safety-card p {
        font-size: 0.8rem;
    }

    .info-section {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .bass-hero {
        padding: 3rem 1rem 2rem;
    }

    .bass-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .bass-subtitle {
        font-size: 0.9rem;
    }

    .bass-generator-section {
        padding: 1.5rem 1rem;
    }

    .control-panel,
    .info-panel {
        padding: 1rem;
    }

    .frequency-display {
        padding: 1.5rem;
    }

    .freq-value {
        font-size: 2rem;
    }

    .button-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.7rem;
    }

    .volume-container {
        flex-direction: column;
    }

    .safety-grid {
        grid-template-columns: 1fr;
    }
}
