/**
 * PS2 Resume - Panel Layout Styles
 * Modern grid layout with PS2 aesthetic
 */

/* ========== MAIN CONTAINER ========== */
.main-container {
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ========== PS2 HEADER BAR ========== */
.ps2-header-bar {
    background: linear-gradient(180deg, #000520 0%, #001040 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid #0050a0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.ps2-brand {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(0, 150, 255, 0.8);
}

.ps2-brand .ps {
    font-size: 18px;
    color: #87ceeb;
}

.ps2-memory {
    font-size: 12px;
    color: #5080b0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ========== PANELS GRID ========== */
.panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
}

/* ========== PANEL BASE (Glassmorphism) ========== */
.panel {
    background: rgba(0, 20, 60, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 25px;
    position: relative;
    border: 1px solid rgba(0, 150, 255, 0.2);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 100, 200, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.panel:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 150, 255, 0.4);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 100, 200, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.panel-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 150, 255, 0.8) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panel:hover .panel-glow {
    opacity: 1;
}

.panel-title {
    font-family: var(--font-retro, 'Press Start 2P', cursive);
    font-size: 12px;
    font-weight: bold;
    color: #00bfff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 100, 200, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.title-icon {
    color: #ffd700;
    font-size: 12px;
}

/* ========== PROFILE PANEL ========== */
.panel-profile {
    grid-column: span 2;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(145deg, #001050, #002080);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #0060c0;
    box-shadow:
        0 0 20px rgba(0, 100, 200, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo .initials {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 150, 255, 0.8);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(135deg, #1E90FF 0%, #00FFFF 50%, #1E90FF 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    text-shadow: none;
    animation: gradient-shift 3s ease infinite;
}

/* Typing cursor for name */
.profile-name.typing::after {
    content: '|';
    display: inline-block;
    -webkit-text-fill-color: #00BFFF;
    animation: cursor-blink 0.7s step-end infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.profile-title {
    font-size: 18px;
    color: #00bfff;
    font-weight: 500;
}

.profile-summary {
    color: #a0c0e0;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 15px;
}

.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 50, 100, 0.4);
    padding: 8px 15px;
    border-radius: 20px;
    color: #b0d0f0;
    text-decoration: none;
    font-size: 13px;
    border: 1px solid rgba(0, 100, 200, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(0, 80, 150, 0.5);
    border-color: rgba(0, 150, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 14px;
    color: #00bfff;
}

/* ========== SKILLS PANEL ========== */
.skills-category {
    margin-bottom: 18px;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category h3 {
    font-size: 13px;
    color: #6090c0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(145deg, #002060, #001540);
    color: #80c0ff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(0, 100, 200, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: linear-gradient(145deg, #003080, #002060);
    border-color: #0080ff;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 100, 200, 0.4);
}

/* ========== EXPERIENCE PANEL ========== */
.panel-experience {
    grid-column: span 2;
}

.experience-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 100, 200, 0.15);
}

.experience-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    gap: 15px;
}

.exp-role {
    font-size: 17px;
    font-weight: bold;
    color: #ffffff;
}

.exp-period {
    font-size: 13px;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.exp-company {
    font-size: 15px;
    color: #00bfff;
    margin-bottom: 10px;
}

.exp-description {
    color: #90b0d0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.exp-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.highlight-tag {
    background: rgba(0, 100, 200, 0.2);
    color: #70a0d0;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    border: 1px solid rgba(0, 100, 200, 0.2);
}

/* ========== EDUCATION PANEL ========== */
.education-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 100, 200, 0.15);
}

.education-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
    gap: 15px;
}

.edu-degree {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
}

.edu-year {
    font-size: 13px;
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.edu-school {
    font-size: 14px;
    color: #00bfff;
    margin-bottom: 5px;
}

.edu-description {
    color: #80a0c0;
    font-size: 13px;
}

/* ========== CERTIFICATIONS PANEL ========== */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(0, 50, 100, 0.3);
    border-radius: 6px;
    border-left: 3px solid #ffd700;
    transition: all 0.3s ease;
}

.cert-item:hover {
    background: rgba(0, 70, 130, 0.4);
    transform: translateX(5px);
}

.cert-icon {
    color: #ffd700;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.cert-icon svg {
    fill: #ffd700;
}

.cert-item span:last-child {
    color: #c0d8f0;
    font-size: 14px;
}

/* ========== LANGUAGES PANEL ========== */
.language-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 50, 100, 0.3);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.language-item:hover {
    background: rgba(0, 70, 130, 0.4);
}

.lang-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 15px;
}

.lang-level {
    color: #80c0ff;
    font-size: 13px;
    background: rgba(0, 100, 200, 0.3);
    padding: 4px 12px;
    border-radius: 12px;
}

/* ========== PS2 FOOTER BAR ========== */
.ps2-footer-bar {
    background: linear-gradient(180deg, #001040 0%, #000520 100%);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #0050a0;
    margin-top: auto;
}

.footer-publisher {
    color: #5080b0;
    font-size: 13px;
}

.footer-year {
    color: #5080b0;
    font-size: 13px;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(145deg, #0050a0, #003080);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #0070c0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 80, 160, 0.3);
}

.btn-download:hover {
    background: linear-gradient(145deg, #0070c0, #0050a0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 200, 0.4);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .panels-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .panel-profile,
    .panel-experience {
        grid-column: span 1;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-name {
        font-size: 26px;
    }

    .contact-grid {
        justify-content: center;
    }

    .exp-header,
    .edu-header {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 500px) {
    .ps2-header-bar,
    .ps2-footer-bar {
        padding: 12px 15px;
    }

    .ps2-brand {
        font-size: 20px;
    }

    .ps2-memory {
        display: none;
    }

    .panels-grid {
        padding: 15px;
        gap: 15px;
    }

    .panel {
        padding: 20px;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
    }

    .profile-name {
        font-size: 22px;
    }

    .btn-download {
        padding: 8px 18px;
        font-size: 13px;
    }

    .panel-title {
        font-size: 10px;
    }

    .btn-start {
        font-size: 8px;
        padding: 12px 20px;
    }
}

/* ========== PS2 CONTROLLER BUTTONS ========== */
.ps2-buttons {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
    align-items: center;
}

.ps2-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid;
}

.ps2-btn--circle {
    color: #FF6B9D;
    border-color: #FF6B9D;
}

.ps2-btn--cross {
    color: #7EC8E3;
    border-color: #7EC8E3;
}

.ps2-btn--square {
    color: #E88EED;
    border-color: #E88EED;
    border-radius: 3px;
}

.ps2-btn--triangle {
    color: #7EE8B8;
    border-color: #7EE8B8;
    border-radius: 0;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: none;
    background: transparent;
}

.ps2-btn--triangle::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #7EE8B8;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* ========== MEMORY CARD ANIMATED ========== */
.memory-card-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse-glow 2s ease-in-out infinite;
}

.memory-card-icon svg {
    width: 24px;
    height: 24px;
    fill: #5080b0;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(80, 128, 176, 0.5));
        opacity: 0.8;
    }
    50% {
        filter: drop-shadow(0 0 8px rgba(80, 128, 176, 0.8));
        opacity: 1;
    }
}

/* ========== PRESS START BUTTON ========== */
.btn-start {
    font-family: var(--font-retro, 'Press Start 2P', cursive);
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, #0050a0, #003080);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid #0070c0;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(0, 80, 160, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: start-pulse 2s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-start:hover {
    background: linear-gradient(145deg, #0070c0, #0050a0);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(0, 100, 200, 0.5),
        0 0 30px rgba(0, 150, 255, 0.3);
    border-color: #00bfff;
}

@keyframes start-pulse {
    0%, 100% {
        box-shadow:
            0 4px 15px rgba(0, 80, 160, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow:
            0 4px 25px rgba(0, 100, 200, 0.5),
            0 0 20px rgba(0, 150, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* ========== SKILL BARS ========== */
.skill-bar-container {
    margin-bottom: 15px;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.skill-bar-name {
    font-size: 13px;
    color: #b0d0f0;
    font-weight: 500;
}

.skill-bar-percent {
    font-family: var(--font-retro, 'Press Start 2P', cursive);
    font-size: 8px;
    color: #ffd700;
}

.skill-bar {
    height: 8px;
    background: rgba(0, 30, 80, 0.6);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 100, 200, 0.3);
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0050a0, #00bfff, #00ffff);
    background-size: 200% 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: shimmer 2s linear infinite;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== TIMELINE ========== */
.timeline-container {
    position: relative;
    padding-left: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(180deg, #0050a0, #00bfff, #0050a0);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 100, 200, 0.15);
}

.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #001845;
    border: 2px solid #00bfff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
    z-index: 1;
}

.timeline-item:hover::before {
    background: #00bfff;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.8);
}

/* ========== COUNTER ANIMATION ========== */
.counter {
    font-family: var(--font-retro, 'Press Start 2P', cursive);
    font-size: 24px;
    color: #00bfff;
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.counter-label {
    font-size: 12px;
    color: #6090c0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ========== CONTACT ICONS (SVG) ========== */
.contact-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ========== SKILL CATEGORY ICONS ========== */
.skills-category-icon {
    display: inline-flex;
    margin-right: 8px;
}

.skills-category-icon svg {
    width: 14px;
    height: 14px;
    fill: #6090c0;
}

/* ========== HOVER SOUND ELEMENTS ========== */
.sound-hover {
    cursor: pointer;
}

/* ========== PROJECTS PANEL ========== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-item {
    background: rgba(0, 50, 100, 0.3);
    border-radius: 8px;
    padding: 15px;
    border-left: 3px solid #00bfff;
    transition: all 0.3s ease;
}

.project-item:hover {
    background: rgba(0, 70, 130, 0.4);
    transform: translateX(5px);
    border-left-color: #00ffff;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.project-icon {
    color: #00bfff;
    display: flex;
    align-items: center;
}

.project-icon svg {
    stroke: #00bfff;
}

.project-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.project-description {
    font-size: 13px;
    color: #90b0d0;
    margin-bottom: 10px;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    background: linear-gradient(145deg, #002060, #001540);
    color: #80c0ff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid rgba(0, 100, 200, 0.3);
}

/* ===== Language & Theme Selectors ===== */

.language-selector {
    display: flex;
    gap: 8px;
    background: rgba(0, 20, 60, 0.4);
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(0, 150, 255, 0.2);
    backdrop-filter: blur(10px);
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 6px;
    color: #87ceeb;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.lang-btn:hover {
    background: rgba(0, 150, 255, 0.2);
    border-color: #00bfff;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.lang-btn.active {
    background: rgba(0, 150, 255, 0.4);
    border-color: #00bfff;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.5);
}

.flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(0, 20, 60, 0.4);
    border: 1px solid rgba(0, 150, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(0, 150, 255, 0.2);
    border-color: #00bfff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.theme-icon {
    width: 20px;
    height: 20px;
    fill: #87ceeb;
    stroke: #87ceeb;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    fill: #00bfff;
    stroke: #00bfff;
}

[data-theme="dark"] .theme-icon--light {
    display: none;
}

[data-theme="light"] .theme-icon--dark {
    display: none;
}

/* ========== SOUND TOGGLE ========== */
.sound-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(0, 20, 60, 0.4);
    border: 1px solid rgba(0, 150, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle:hover {
    background: rgba(0, 150, 255, 0.2);
    border-color: #00bfff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.sound-icon {
    width: 20px;
    height: 20px;
    color: #87ceeb;
    transition: all 0.3s ease;
}

.sound-toggle:hover .sound-icon {
    color: #00bfff;
}

.sound-toggle.muted .sound-icon--on {
    display: none;
}

.sound-toggle:not(.muted) .sound-icon--off {
    display: none;
}

.sound-toggle.muted {
    opacity: 0.6;
}

.sound-toggle.muted:hover {
    opacity: 1;
}

/* Light theme overrides for selectors */
[data-theme="light"] .language-selector,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .sound-toggle {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .lang-btn {
    color: #1E3A8A;
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .lang-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #1E3A8A;
}

[data-theme="light"] .lang-btn.active {
    background: rgba(59, 130, 246, 0.3);
    color: #1E3A8A;
}

[data-theme="light"] .theme-icon {
    fill: #1E3A8A;
    stroke: #1E3A8A;
}

[data-theme="light"] .sound-icon {
    color: #1E3A8A;
}

/* Responsive */
@media (max-width: 900px) {
    .language-selector {
        gap: 4px;
        padding: 4px 6px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .flag-icon {
        width: 16px;
        height: 12px;
    }

    .theme-toggle,
    .sound-toggle {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 500px) {
    .lang-btn span {
        display: none;
    }

    .lang-btn {
        padding: 6px;
    }

    .flag-icon {
        width: 20px;
        height: 14px;
    }
}

/* ===== MEMORY CARD DROPDOWN ===== */

.memory-card-dropdown {
    position: relative;
}

.memory-card-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 20, 60, 0.4);
    border: 1px solid rgba(0, 150, 255, 0.2);
    border-radius: 8px;
    color: #5080b0;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.memory-card-btn:hover {
    background: rgba(0, 150, 255, 0.2);
    border-color: #00bfff;
    color: #87ceeb;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.memory-card-btn.active {
    background: rgba(0, 150, 255, 0.3);
    border-color: #00bfff;
    color: #ffffff;
}

.memory-card-btn svg:first-of-type {
    width: 20px;
    height: 20px;
    color: currentColor;
}

.dropdown-arrow {
    width: 12px;
    height: 8px;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.memory-card-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.memory-card-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    background: rgba(0, 20, 60, 0.95);
    border: 1px solid rgba(0, 150, 255, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 191, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.memory-card-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-item {
    position: relative;
}

.menu-item-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 150, 255, 0.1);
    color: #87ceeb;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item-btn:hover {
    background: rgba(0, 150, 255, 0.2);
    color: #ffffff;
}

.menu-item-btn.active {
    background: rgba(0, 150, 255, 0.3);
    color: #ffffff;
}

.menu-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.submenu-arrow {
    width: 8px;
    height: 12px;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.menu-item-btn.active .submenu-arrow {
    transform: rotate(90deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 10, 30, 0.8);
    transition: max-height 0.3s ease;
}

.submenu.active {
    max-height: 500px;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 48px;
    color: #b0d0f0;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.submenu-item:hover {
    background: rgba(0, 150, 255, 0.15);
    color: #ffffff;
    border-left-color: #00bfff;
    padding-left: 52px;
}

.link-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Sub-submenu (3rd level) */
.submenu-item.has-subsubmenu {
    display: block;
    padding: 0;
    background: transparent;
    border: none;
}

.subsubmenu-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 48px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: #b0d0f0;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subsubmenu-btn:hover {
    background: rgba(0, 150, 255, 0.15);
    color: #ffffff;
    border-left-color: #00bfff;
    padding-left: 52px;
}

.subsubmenu-btn.active {
    background: rgba(0, 150, 255, 0.2);
    color: #ffffff;
    border-left-color: #00bfff;
}

.subsubmenu-arrow {
    width: 8px;
    height: 12px;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.subsubmenu-btn.active .subsubmenu-arrow {
    transform: rotate(90deg);
}

.subsubmenu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 5, 20, 0.9);
    transition: max-height 0.3s ease;
}

.subsubmenu.active {
    max-height: 300px;
}

.subsubmenu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 64px;
    color: #a0c0e0;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.subsubmenu-item:hover {
    background: rgba(0, 150, 255, 0.1);
    color: #ffffff;
    border-left-color: #0096ff;
    padding-left: 68px;
}

/* PlayStation version number - show/hide based on theme */
.ps-version--1 {
    display: none;
}

.ps-version--2 {
    display: inline;
}

[data-theme="light"] .ps-version--1 {
    display: inline;
}

[data-theme="light"] .ps-version--2 {
    display: none;
}

/* Light theme (PS1) Memory Card overrides */
[data-theme="light"] .memory-card-btn {
    background: linear-gradient(180deg, #D0D0D0 0%, #ABABAB 100%);
    border: 2px solid #7B7B7B;
    color: #1A1A1A;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .memory-card-btn:hover {
    background: linear-gradient(180deg, #E0E0E0 0%, #C0C0C0 100%);
    color: #1A1A1A;
    border-color: #5FB878;
}

[data-theme="light"] .memory-card-btn.active {
    background: linear-gradient(180deg, #C0C0C0 0%, #9E9E9E 100%);
    border-color: #5FB878;
}

[data-theme="light"] .memory-card-menu {
    background: linear-gradient(180deg, #E8E8E8 0%, #D8D8D8 100%);
    border: 3px solid #7B7B7B;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .menu-item-btn {
    color: #1A1A1A;
    border-bottom: 2px solid #ABABAB;
}

[data-theme="light"] .menu-item-btn:hover {
    background: linear-gradient(90deg, rgba(95, 184, 120, 0.3), transparent);
    color: #1A1A1A;
}

[data-theme="light"] .menu-item-btn.active {
    background: linear-gradient(90deg, rgba(95, 184, 120, 0.4), transparent);
}

[data-theme="light"] .submenu {
    background: linear-gradient(180deg, #D8D8D8 0%, #C8C8C8 100%);
    border: 2px solid #9E9E9E;
}

[data-theme="light"] .submenu-item {
    color: #4A4A4A;
    border-left: 3px solid transparent;
}

[data-theme="light"] .submenu-item:hover {
    background: linear-gradient(90deg, rgba(95, 184, 120, 0.25), transparent);
    color: #1A1A1A;
    border-left-color: #5FB878;
}

[data-theme="light"] .subsubmenu-btn {
    color: #4A4A4A;
    border-left: 3px solid transparent;
}

[data-theme="light"] .subsubmenu-btn:hover {
    background: linear-gradient(90deg, rgba(95, 184, 120, 0.25), transparent);
    color: #1A1A1A;
    border-left-color: #5FB878;
}

[data-theme="light"] .subsubmenu-btn.active {
    background: linear-gradient(90deg, rgba(95, 184, 120, 0.3), transparent);
    border-left-color: #5FB878;
}

[data-theme="light"] .subsubmenu {
    background: linear-gradient(180deg, #D0D0D0 0%, #C0C0C0 100%);
    border: 2px solid #9E9E9E;
}

[data-theme="light"] .subsubmenu-item {
    color: #4A4A4A;
    border-left: 3px solid transparent;
}

[data-theme="light"] .subsubmenu-item:hover {
    background: linear-gradient(90deg, rgba(95, 184, 120, 0.2), transparent);
    color: #1A1A1A;
    border-left-color: #5FB878;
}

/* PS1 theme arrows */
[data-theme="light"] .submenu-arrow,
[data-theme="light"] .subsubmenu-arrow,
[data-theme="light"] .dropdown-arrow {
    color: #5FB878;
}

/* Responsive */
@media (max-width: 900px) {
    .memory-card-menu {
        min-width: 240px;
    }

    .menu-item-btn {
        padding: 12px 14px;
        font-size: 12px;
    }

    .submenu-item {
        padding: 10px 14px 10px 42px;
    }
}

@media (max-width: 500px) {
    .memory-card-btn {
        padding: 6px 10px;
        font-size: 10px;
        gap: 6px;
    }

    .memory-card-btn svg:first-of-type {
        width: 16px;
        height: 16px;
    }

    .memory-card-menu {
        min-width: 200px;
        right: -10px;
    }

    .menu-item-btn {
        padding: 10px 12px;
        font-size: 11px;
        gap: 8px;
    }

    .submenu-item {
        padding: 8px 12px 8px 36px;
        font-size: 11px;
    }
}

/* ========== MUSIC PLAYER (EASTER EGG) ========== */
.easter-egg-panel {
    animation: easterEggReveal 0.8s ease-out;
    border: 2px solid #ff00ff !important;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.3), inset 0 0 20px rgba(255, 0, 255, 0.1) !important;
}

/* Protecao contra selecao/copia */
.music-player,
.playlist,
.track-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#audioPlayer {
    pointer-events: none;
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

@keyframes easterEggReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateX(20deg);
    }
    50% {
        transform: scale(1.02) rotateX(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0);
    }
}

@keyframes easterEggHide {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotateX(-20deg);
    }
}

.panel-music .panel-title {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.music-subtitle {
    color: #b0b0b0;
    font-size: 12px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Playlist */
.playlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(0, 20, 60, 0.6);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.track-item:hover {
    background: rgba(255, 0, 255, 0.1);
    border-color: rgba(255, 0, 255, 0.4);
    padding-left: 20px;
}

.track-item.active {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(0, 100, 255, 0.2));
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
}

.track-item.playing {
    animation: trackPulse 1.5s ease-in-out infinite;
}

@keyframes trackPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 0, 255, 0.2); }
    50% { box-shadow: 0 0 25px rgba(255, 0, 255, 0.4); }
}

.track-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-number {
    font-family: var(--font-retro);
    font-size: 10px;
    color: #ff00ff;
    min-width: 24px;
}

.track-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.track-title {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}

.track-artist {
    font-size: 12px;
    color: #ff00ff;
    font-weight: 500;
}

.track-style {
    font-size: 11px;
    color: #a0a0a0;
    font-style: italic;
}

.track-duration {
    font-size: 12px;
    color: #808080;
    font-family: monospace;
}

/* Player Controls */
.player-controls {
    background: rgba(0, 10, 30, 0.8);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
}

.now-playing {
    text-align: center;
    margin-bottom: 15px;
}

.now-playing-label {
    font-size: 10px;
    color: #808080;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 4px;
}

.now-playing-title {
    font-family: var(--font-retro);
    font-size: 12px;
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.now-playing-artist {
    display: block;
    font-size: 11px;
    color: #00bfff;
    margin-top: 2px;
}

/* Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.time-current, .time-total {
    font-size: 11px;
    color: #808080;
    font-family: monospace;
    min-width: 40px;
}

.time-current { text-align: right; }
.time-total { text-align: left; }

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff00ff, #00bfff);
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* Control Buttons */
.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.control-btn {
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ff00ff;
}

.control-btn svg {
    width: 20px;
    height: 20px;
}

.control-btn:hover {
    background: rgba(255, 0, 255, 0.2);
    border-color: #ff00ff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

.control-btn.play-btn {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.3), rgba(0, 100, 255, 0.3));
}

.control-btn.play-btn svg {
    width: 28px;
    height: 28px;
}

.control-btn.play-btn:hover {
    transform: scale(1.15);
}

.volume-btn {
    width: 36px;
    height: 36px;
}

.volume-btn svg {
    width: 18px;
    height: 18px;
}

/* Panel Header Row */
.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.panel-header-row .panel-title {
    margin-bottom: 0;
}

/* Hide Player Button */
.hide-player-btn {
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ff00ff;
}

.hide-player-btn svg {
    width: 18px;
    height: 18px;
}

.hide-player-btn:hover {
    background: rgba(255, 0, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 80px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #ff00ff, #00bfff);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #ff00ff, #00bfff);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
}

/* Easter Egg Trigger Hint */
#easterEggPublisher,
#easterEggYear {
    cursor: default;
    user-select: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

#easterEggPublisher:active,
#easterEggYear:active {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

/* Responsive Music Player */
@media (max-width: 500px) {
    .player-controls {
        padding: 15px;
    }

    .control-btn {
        width: 36px;
        height: 36px;
    }

    .control-btn.play-btn {
        width: 48px;
        height: 48px;
    }

    .track-item {
        padding: 10px 12px;
    }

    .track-title {
        font-size: 13px;
    }
}
