/**
 * 313 LIVE Radio Plugin Styles
 * 
 * @package 313_LIVE_Radio
 * @version 1.0.0
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    --three13-primary: #ff006e;
    --three13-secondary: #8338ec;
    --three13-accent: #3a86ff;
    --three13-black: #000000;
    --three13-dark: #0a0a0a;
    --three13-text: #ffffff;
    --three13-text-muted: #888888;
    --three13-border: rgba(255, 255, 255, 0.1);
    --three13-radius: 1rem;
    --three13-radius-lg: 1.5rem;
    --three13-shadow-glow: 0 0 30px rgba(255, 0, 110, 0.3);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.three13-text-gradient {
    background: linear-gradient(135deg, var(--three13-primary) 0%, var(--three13-secondary) 50%, var(--three13-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.three13-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.three13-icon--small {
    width: 20px;
    height: 20px;
}

.three13-icon--tiny {
    width: 16px;
    height: 16px;
}

.three13-icon--large {
    width: 48px;
    height: 48px;
}

/* ========================================
   SECTION HEADER
   ======================================== */
.three13-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.three13-section-header__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--three13-text-muted);
}

.three13-section-header__label--pink {
    color: var(--three13-primary);
}

.three13-section-header__label--purple {
    color: var(--three13-secondary);
}

.three13-section-header__label--blue {
    color: var(--three13-accent);
}

.three13-section-header__title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--three13-text);
}

.three13-section-header__description {
    color: var(--three13-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   PLAYER WRAPPER
   ======================================== */
.three13-player-wrapper {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

.three13-player-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--three13-primary), var(--three13-secondary), var(--three13-accent));
    border-radius: calc(var(--three13-radius-lg) + 4px);
    opacity: 0.3;
    filter: blur(16px);
    animation: three13-pulse-glow 2s ease-in-out infinite;
}

.three13-player {
    position: relative;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--three13-border);
    border-radius: var(--three13-radius-lg);
    padding: 1.5rem;
    overflow: hidden;
}

/* ========================================
   VISUALIZER
   ======================================== */
.three13-player__visualizer {
    height: 100px;
    border-radius: var(--three13-radius);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.three13-visualizer-canvas {
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
}

/* ========================================
   ALBUM ARTWORK
   ======================================== */
.three13-player__artwork {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--three13-radius);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2), rgba(58, 134, 255, 0.2));
    margin-bottom: 1.5rem;
}

.three13-player__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.three13-player__artwork-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.three13-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--three13-primary), var(--three13-secondary), var(--three13-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.three13-logo-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3em;
    margin-top: 0.5rem;
}

.three13-player__live-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(239, 68, 68, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.three13-live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: three13-blink 1s infinite;
}

/* ========================================
   TRACK INFO
   ======================================== */
.three13-player__track-info {
    text-align: center;
    margin-bottom: 1.5rem;
}

.three13-player__track-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--three13-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.three13-player__track-artist {
    color: var(--three13-text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.three13-player__track-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.three13-player__genre {
    background: rgba(131, 56, 236, 0.2);
    color: var(--three13-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.three13-player__album {
    color: var(--three13-text-muted);
    font-size: 0.75rem;
}

/* ========================================
   PROGRESS BAR
   ======================================== */
.three13-player__progress {
    margin-bottom: 1.5rem;
}

.three13-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.three13-progress-bar--large {
    height: 8px;
}

.three13-progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--three13-primary), var(--three13-secondary), var(--three13-accent));
    border-radius: 3px;
    transition: width 1s linear;
    position: relative;
    overflow: hidden;
}

.three13-progress-bar__fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: three13-shimmer 2s infinite;
}

.three13-player__progress-time {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--three13-text-muted);
}

/* ========================================
   CONTROLS
   ======================================== */
.three13-player__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.three13-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--three13-primary), var(--three13-secondary));
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.three13-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.4);
}

.three13-play-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* ========================================
   VOLUME
   ======================================== */
.three13-player__volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.three13-volume-btn {
    background: none;
    border: none;
    color: var(--three13-text-muted);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

.three13-volume-btn:hover {
    color: var(--three13-text);
}

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

.three13-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--three13-primary), var(--three13-secondary));
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.three13-volume-percent {
    color: var(--three13-text-muted);
    font-size: 0.875rem;
    min-width: 35px;
    text-align: right;
}

/* ========================================
   STATS
   ======================================== */
.three13-player__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--three13-border);
}

.three13-player__stat {
    text-align: center;
}

.three13-player__stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.three13-player__stat-value--purple {
    color: var(--three13-secondary);
}

.three13-player__stat-value--blue {
    color: var(--three13-accent);
}

.three13-player__stat-label {
    font-size: 0.75rem;
    color: var(--three13-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   NOW PLAYING SECTION
   ======================================== */
.three13-now-playing {
    padding: 3rem 0;
}

.three13-now-playing__card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--three13-border);
    border-radius: var(--three13-radius-lg);
}

.three13-now-playing__artwork {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--three13-radius);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2));
}

.three13-now-playing__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.three13-now-playing__artwork-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.three13-now-playing__live-indicator {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(239, 68, 68, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 50px;
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
}

.three13-now-playing__title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--three13-text);
}

.three13-now-playing__artist {
    font-size: 1.125rem;
    color: var(--three13-text-muted);
    margin-bottom: 1rem;
}

.three13-now-playing__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.three13-now-playing__genre {
    background: rgba(131, 56, 236, 0.2);
    color: var(--three13-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.three13-now-playing__album {
    color: var(--three13-text-muted);
    font-size: 0.875rem;
}

.three13-now-playing__time {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--three13-text-muted);
}

/* ========================================
   SCHEDULE
   ======================================== */
.three13-schedule {
    padding: 3rem 0;
}

.three13-current-show {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(90deg, rgba(255, 0, 110, 0.1), rgba(131, 56, 236, 0.1), rgba(58, 134, 255, 0.1));
    border: 1px solid var(--three13-border);
    border-radius: var(--three13-radius);
    margin-bottom: 2rem;
}

.three13-current-show__info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.three13-current-show__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--three13-radius);
    background: linear-gradient(135deg, var(--three13-primary), var(--three13-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.three13-current-show__label {
    font-size: 0.875rem;
    color: var(--three13-text-muted);
    margin-bottom: 0.25rem;
}

.three13-current-show__title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--three13-text);
}

.three13-current-show__dj {
    color: var(--three13-text-muted);
    font-size: 0.875rem;
}

.three13-current-show__time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--three13-text-muted);
}

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

.three13-show-card {
    padding: 1.5rem;
    border-radius: var(--three13-radius);
    border: 1px solid var(--three13-border);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.three13-show-card:hover {
    border-color: var(--three13-border);
    background: rgba(255, 255, 255, 0.08);
}

.three13-show-card--live {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2));
    border-color: rgba(255, 0, 110, 0.5);
}

.three13-show-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.three13-show-card__time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--three13-text-muted);
}

.three13-show-card__live-badge {
    padding: 0.25rem 0.5rem;
    background: var(--three13-primary);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 50px;
    animation: three13-pulse 2s infinite;
}

.three13-show-card__title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--three13-text);
    transition: all 0.2s ease;
}

.three13-show-card:hover .three13-show-card__title {
    background: linear-gradient(135deg, var(--three13-primary), var(--three13-secondary), var(--three13-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.three13-show-card__description {
    color: var(--three13-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.three13-show-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--three13-border);
}

.three13-show-card__dj {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--three13-text-muted);
}

.three13-show-card__genre {
    padding: 0.25rem 0.5rem;
    background: rgba(131, 56, 236, 0.2);
    color: var(--three13-secondary);
    font-size: 0.625rem;
    font-weight: 600;
    border-radius: 50px;
}

/* ========================================
   UP NEXT
   ======================================== */
.three13-up-next {
    padding: 3rem 0;
}

.three13-up-next__card {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.1), rgba(131, 56, 236, 0.1));
    border: 1px solid rgba(255, 0, 110, 0.3);
    border-radius: var(--three13-radius-lg);
}

.three13-up-next__artwork {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--three13-radius);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2));
    margin-bottom: 1.5rem;
}

.three13-up-next__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.three13-up-next__artwork-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.three13-up-next__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--three13-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
}

.three13-up-next__title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--three13-text);
}

.three13-up-next__artist {
    font-size: 1.125rem;
    color: var(--three13-text-muted);
    margin-bottom: 1rem;
}

.three13-up-next__meta {
    display: flex;
    gap: 1rem;
}

.three13-up-next__genre {
    padding: 0.25rem 0.75rem;
    background: rgba(131, 56, 236, 0.2);
    color: var(--three13-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
}

.three13-up-next__duration {
    font-size: 0.875rem;
    color: var(--three13-text-muted);
}

/* ========================================
   TRACK HISTORY
   ======================================== */
.three13-track-history {
    padding: 3rem 0;
}

.three13-track-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.three13-track-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--three13-radius);
    border: 1px solid var(--three13-border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.three13-track-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(131, 56, 236, 0.5);
    transform: translateX(4px);
}

.three13-track-item--loading {
    opacity: 0.5;
    pointer-events: none;
}

.three13-track-item__number {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    background: rgba(131, 56, 236, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--three13-secondary);
    flex-shrink: 0;
}

.three13-track-item__artwork {
    width: 56px;
    height: 56px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(131, 56, 236, 0.2));
    flex-shrink: 0;
}

.three13-track-item__artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.three13-track-item__info {
    flex: 1;
    min-width: 0;
}

.three13-track-item__title {
    font-weight: 600;
    color: var(--three13-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.three13-track-item__artist {
    font-size: 0.875rem;
    color: var(--three13-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.three13-track-item__meta {
    text-align: right;
    flex-shrink: 0;
}

.three13-track-item__time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--three13-text-muted);
}

.three13-track-item__duration {
    font-size: 0.75rem;
    color: var(--three13-text-muted);
}

.three13-history-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.three13-history-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--three13-border);
    border-radius: var(--three13-radius);
}

.three13-history-stat__value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--three13-primary), var(--three13-secondary), var(--three13-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.three13-history-stat__label {
    font-size: 0.875rem;
    color: var(--three13-text-muted);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes three13-pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 110, 0.4); }
    50% { box-shadow: 0 0 0 15px rgba(255, 0, 110, 0); }
}

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

@keyframes three13-shimmer {
    0% { transform: translateX(0); }
    100% { transform: translateX(20px); }
}

@keyframes three13-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .three13-now-playing__card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .three13-now-playing__artwork {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .three13-current-show {
        flex-direction: column;
        text-align: center;
    }
    
    .three13-schedule-grid {
        grid-template-columns: 1fr;
    }
}
