/* PlayStation 3 XMB Recreation - Minimal Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: white;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Waves Background */
#waves-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

/* Main Interface */
.interface {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 10;
    transition: opacity 0.5s ease;
}

/* PlayStation Logo */
.ps-logo-container {
    position: absolute;
    top: 30px;
    z-index: 100;
}

.ps-logo-container.left {
    left: 40px;
}

.ps-logo-container.right {
    left: 100px;
}

.ps-logo-svg {
    height: 40px;
    width: auto;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Right Panel */
.right-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 450px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.7) 100%);
    padding: 40px;
    z-index: 30;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.right-panel::-webkit-scrollbar {
    width: 6px;
}

.right-panel::-webkit-scrollbar-track {
    background: transparent;
}

.right-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.right-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Right Panel Content Spacing */
.right-panel > * {
    margin-bottom: 40px;
}

.right-panel > *:last-child {
    margin-bottom: 0;
}

/* Date/Time */
.datetime-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

#current-time {
    font-size: 28px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.95);
}

#current-date {
    font-size: 14px;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

/* Information Section */
.info-section {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.info-section::-webkit-scrollbar {
    width: 4px;
}

.info-section::-webkit-scrollbar-track {
    background: transparent;
}

.info-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

#info-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
}

#info-description {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

#info-description p {
    margin-bottom: 20px;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.highlight {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(10px);
}

.highlight h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
}

.highlight p {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Settings Section */
.settings-section {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Wave Settings Form */
.waves-config-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.waves-settings-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    display: block;
}

.waves-settings-select,
.waves-settings-range {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.waves-settings-select:focus,
.waves-settings-range:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.waves-settings-select {
    width: 100%;
    padding: 8px 12px;
    cursor: pointer;
}

.waves-settings-select option {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.waves-settings-range {
    width: 100%;
    height: 6px;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.waves-settings-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.waves-settings-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.waves-settings-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    min-width: 50px;
    text-align: right;
}

/* Stats Container */
#stats-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 50;
    transition: opacity 0.3s ease;
}

#stats-container canvas {
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Interface Control */
.interface-control {
    padding-top: 20px;
}

.hide-interface-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.hide-interface-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.hide-interface-btn:active {
    transform: translateY(0);
}

/* Hidden Interface State */
.interface-hidden .interface {
    opacity: 0;
    pointer-events: none;
}

.interface-hidden #stats-container {
    opacity: 0;
    pointer-events: none;
}

.interface-hidden {
    cursor: pointer;
}

/* Utility Classes */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-3 {
    gap: 12px;
}

.flex-1 {
    flex: 1;
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .right-panel {
        width: 400px;
        padding: 30px;
    }
    
    #info-title {
        font-size: 22px;
    }
    
    #current-time {
        font-size: 24px;
    }
}

@media (max-width: 900px) {
    .right-panel {
        width: 350px;
        padding: 25px;
        gap: 25px;
    }
    
    .ps-logo-container {
        top: 20px;
        left: 20px;
    }
    
    #info-title {
        font-size: 20px;
    }
    
    #current-time {
        font-size: 22px;
    }
    
    #current-date {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .right-panel {
        width: 100%;
        padding: 20px;
        background: rgba(0, 0, 0, 0.8);
        gap: 20px;
    }
    
    .datetime-section {
        align-items: center;
    }
    
    .settings-section {
        padding: 20px;
    }

    #stats-container {
        bottom: 10px;
        left: 10px;
    }

    .hide-interface-btn {
        font-size: 13px;
        padding: 10px 16px;
    }
}

