/* Sidebar Styles */
.leftbar,
.rightbar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leftbar {
    grid-area: leftbar;
}

.rightbar {
    grid-area: rightbar;
}

.sidebar-panel {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    padding: 15px;
    transition: all 0.3s ease;
}

.sidebar-panel:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 0 var(--border-color);
}

.sidebar-title {
    font-size: 1em;
    text-transform: lowercase;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-align: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 8px;
}

.sidebar-title-with-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.title-icon {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
}


/* Stats Panel */
.sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-line {
    font-size: 0.85em;
    color: var(--text-primary);
    padding: 5px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        rgba(155, 89, 182, 0.1) 10px,
        rgba(155, 89, 182, 0.1) 20px
    );
}

/* Banner Ad Panel */
.ad-banner {
    padding: 0;
    background: transparent;
    border: none;
    overflow: hidden;
}

.ad-banner:hover {
    transform: none;
    box-shadow: none;
}

.banner-ad {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.banner-ad:hover {
    transform: scale(1.02);
}

/* Pixel Art Graphics */
.pixel-art {
    font-family: "Courier New", monospace;
    font-size: 0.9em;
    color: var(--accent-color);
    text-align: center;
    line-height: 1.2;
    margin: 0;
}

.retro-graphic {
    text-align: center;
    padding: 10px 0;
}

.pixel-border {
    border-style: ridge !important;
    border-width: 4px !important;
    border-color: var(--accent-color) !important;
}

/* Webring Badges */
.webring-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ring-badge {
    padding: 8px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    color: #000;
    text-align: center;
    font-weight: bold;
    font-size: 0.8em;
    text-transform: uppercase;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.flame-border {
    border-style: double !important;
    border-width: 4px !important;
    animation: flame-flicker 2s ease-in-out infinite;
}

@keyframes flame-flicker {
    0%, 100% { border-color: #ff6600; }
    50% { border-color: #ff9900; }
}

/* Site Info */
.site-info {
    text-align: center;
}

.info-line {
    font-size: 0.85em;
    margin: 8px 0;
    color: var(--text-primary);
    text-transform: lowercase;
}

.blink-text {
    margin-top: 15px;
    font-weight: bold;
    color: var(--accent-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Animated Banner */
.animated-banner {
    text-align: center;
}

.banner-text {
    font-size: 1.5em;
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

.banner-label {
    font-size: 0.9em;
    margin: 10px 0;
    color: var(--text-primary);
    text-transform: lowercase;
}

.divider-dots {
    letter-spacing: 8px;
    color: var(--accent-color);
    font-size: 1.2em;
}

.rainbow-border {
    border-style: solid !important;
    border-width: 3px !important;
    animation: rainbow-border-cycle 3s linear infinite;
}

@keyframes rainbow-border-cycle {
    0% { border-color: #ff0000; }
    16% { border-color: #ff8800; }
    33% { border-color: #ffff00; }
    50% { border-color: #00ff00; }
    66% { border-color: #0088ff; }
    83% { border-color: #8800ff; }
    100% { border-color: #ff0000; }
}

/* Cool Links */
.cool-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cool-links marquee {
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    color: #fff;
    font-weight: bold;
    padding: 5px;
    border: 1px solid #000;
    font-size: 0.85em;
}

/* Retro Counter */
.retro-counter {
    background: #000 !important;
    border: 3px ridge #00ff00 !important;
}

.counter-display {
    text-align: center;
    padding: 10px;
}

.counter-digits {
    display: inline-flex;
    gap: 3px;
    background: #000;
    padding: 8px 12px;
    border: 2px inset #333;
}

.digit {
    font-family: "Courier New", monospace;
    font-size: 1.5em;
    font-weight: bold;
    color: #00ff00;
    background: #111;
    padding: 5px 8px;
    border: 1px solid #00ff00;
    text-shadow: 0 0 10px #00ff00;
    animation: digit-flicker 3s ease-in-out infinite;
}

.digit:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes digit-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Character Panel */
.character-panel {
    padding: 10px;
    text-align: center;
    background: transparent;
    border: none;
}

.character-panel:hover {
    transform: none;
    box-shadow: none;
}

.sidebar-character {
    width: 80px;
    height: auto;
    image-rendering: pixelated;
    animation: character-wiggle 3s ease-in-out infinite;
}

.sidebar-character-static {
    width: 100%;
    height: auto;
    image-rendering: pixelated;
}

@keyframes character-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

/* Music Player */
.player-panel {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border: 3px ridge #00ff00 !important;
}

.music-player {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#audio-player {
    display: none;
}

/* Now Playing Display */
.now-playing {
    background: #000;
    border: 2px inset #333;
    padding: 8px;
}

.track-display {
    color: #00ff00;
    font-weight: bold;
    font-size: 0.9em;
    text-shadow: 0 0 5px #00ff00;
}

/* Equalizer Visualization */
.equalizer {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 60px;
    background: #000;
    border: 2px inset #333;
    padding: 5px;
    gap: 3px;
}

.eq-bar {
    flex: 1;
    background: linear-gradient(to top, #00ff00 0%, #00ff00 50%, #ffff00 50%, #ffff00 75%, #ff0000 75%);
    min-width: 8px;
    height: 10%;
    border-radius: 2px;
    transition: height 0.1s ease;
}

.equalizer.playing .eq-bar {
    animation: eq-bounce 0.5s ease-in-out infinite;
}

.equalizer.playing .eq-bar:nth-child(1) { animation-delay: 0s; }
.equalizer.playing .eq-bar:nth-child(2) { animation-delay: 0.1s; }
.equalizer.playing .eq-bar:nth-child(3) { animation-delay: 0.2s; }
.equalizer.playing .eq-bar:nth-child(4) { animation-delay: 0.3s; }
.equalizer.playing .eq-bar:nth-child(5) { animation-delay: 0.4s; }
.equalizer.playing .eq-bar:nth-child(6) { animation-delay: 0.3s; }
.equalizer.playing .eq-bar:nth-child(7) { animation-delay: 0.2s; }
.equalizer.playing .eq-bar:nth-child(8) { animation-delay: 0.1s; }

@keyframes eq-bounce {
    0%, 100% { height: 20%; }
    25% { height: 60%; }
    50% { height: 80%; }
    75% { height: 40%; }
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    background: #000;
    border: 2px outset #333;
    padding: 10px;
}

.control-btn {
    background: linear-gradient(180deg, #444 0%, #222 100%);
    border: 2px outset #666;
    color: #00ff00;
    font-size: 1.2em;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-family: "Courier New", monospace;
    transition: all 0.1s ease;
    text-shadow: 0 0 5px #00ff00;
}

.control-btn:hover {
    background: linear-gradient(180deg, #555 0%, #333 100%);
    border-color: #00ff00;
    box-shadow: 0 0 10px #00ff00;
}

.control-btn:active {
    border-style: inset;
    background: linear-gradient(180deg, #222 0%, #444 100%);
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #000;
    border: 2px inset #333;
    padding: 8px;
}

.volume-label {
    color: #00ff00;
    font-weight: bold;
    font-size: 0.85em;
    text-shadow: 0 0 3px #00ff00;
}

.volume-slider {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    border: 1px solid #00ff00;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: #00ff00;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff00;
}

.volume-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #00ff00;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff00;
    border: none;
}

.volume-display {
    color: #00ff00;
    font-weight: bold;
    font-size: 0.85em;
    min-width: 35px;
    text-align: right;
    text-shadow: 0 0 3px #00ff00;
}

/* Track List */
.track-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 180px;
    overflow-y: auto;
    background: #000;
    border: 2px inset #333;
    padding: 5px;
}

.track-list::-webkit-scrollbar {
    width: 10px;
    display: block;
}

.track-list::-webkit-scrollbar-track {
    background: #111;
    border: 1px solid #333;
}

.track-list::-webkit-scrollbar-thumb {
    background: #00ff00;
    border: 1px solid #00ff00;
}

.track-btn {
    background-color: #1a1a1a;
    color: #00ff00;
    border: 1px solid #333;
    padding: 6px 8px;
    cursor: pointer;
    font-family: "Courier New", monospace;
    font-size: 0.8em;
    text-align: left;
    transition: all 0.15s ease;
    text-shadow: 0 0 3px #00ff00;
}

.track-btn:hover {
    background-color: #2a2a2a;
    border-color: #00ff00;
    box-shadow: inset 0 0 5px rgba(0, 255, 0, 0.3);
}

.track-btn.active {
    background: linear-gradient(90deg, #003300 0%, #001a00 100%);
    color: #00ff00;
    border: 1px solid #00ff00;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

/* Dark theme sidebar adjustments */
.dark-theme .sidebar-panel {
    background-color: var(--bg-secondary);
}

.dark-theme .character-panel {
    background-color: transparent;
}

.dark-theme .sidebar-title {
    color: var(--accent-color);
}

.dark-theme .info-line {
    color: var(--text-primary);
}

.dark-theme .pixel-art {
    color: var(--accent-color);
}
