/* Public Display Styles */

.dj-sms-public-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Light Theme (Default) */
.dj-sms-public-container.theme-light {
    background: #ffffff;
    color: #333;
}

/* Dark Theme */
.dj-sms-public-container.theme-dark {
    background: #1a1a1a;
    color: #ffffff;
}

.dj-sms-public-container.theme-dark .dj-sms-public-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dj-sms-public-container.theme-dark .request-card {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.dj-sms-public-container.theme-dark .stat-item {
    background: #2a2a2a;
}

/* Header */
.dj-sms-public-header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.dj-sms-public-title {
    margin: 0 0 20px 0;
    font-size: 2.5em;
    font-weight: bold;
}

.dj-sms-phone-info {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.dj-sms-phone-info p {
    margin: 5px 0;
}

.phone-number {
    font-size: 1.3em;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block;
}

.dj-sms-format {
    font-size: 0.9em;
    opacity: 0.9;
}

.dj-sms-format code {
    background: rgba(255,255,255,0.3);
    padding: 3px 8px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.request-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.method {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 8px;
    text-align: left;
}

.method strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.method p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.method code {
    background: rgba(255,255,255,0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Stats */
.dj-sms-public-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 1em;
}

/* Request List */
.dj-sms-public-list {
    display: grid;
    gap: 20px;
}

.request-card {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.request-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.request-card.played {
    opacity: 0.6;
    border-color: #46b450;
}

.request-card.played .album-art::after {
    content: '✓ PLAYED';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(70, 180, 80, 0.95);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.8em;
}

/* Rank Badge */
.rank-badge {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-right: 20px;
    min-width: 50px;
    text-align: center;
}

.rank-badge.top-1 {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank-badge.top-2 {
    color: #C0C0C0;
}

.rank-badge.top-3 {
    color: #CD7F32;
}

/* Album Art */
.album-art {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
}

.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-art.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Song Info */
.song-info {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.theme-dark .song-title {
    color: #ffffff;
}

.song-artist {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 10px;
}

.theme-dark .song-artist {
    color: #aaa;
}

.song-meta {
    font-size: 0.9em;
    color: #999;
}

.theme-dark .song-meta {
    color: #777;
}

/* Vote Badge */
.vote-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    min-width: 80px;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.vote-count {
    display: block;
    font-size: 1.5em;
    margin-bottom: 3px;
}

.vote-label {
    display: block;
    font-size: 0.7em;
    opacity: 0.9;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1em;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Footer */
.dj-sms-public-footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #999;
    font-size: 0.9em;
}

.auto-refresh-notice {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dj-sms-public-title {
        font-size: 1.8em;
    }
    
    .phone-number {
        font-size: 1.1em;
    }
    
    .request-card {
        flex-direction: column;
        text-align: center;
    }
    
    .rank-badge {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .album-art {
        margin-right: 0;
        margin-bottom: 15px;
        width: 120px;
        height: 120px;
    }
    
    .song-info {
        margin-bottom: 15px;
    }
    
    .vote-badge {
        margin-top: 10px;
    }
}

/* Animation for new requests */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.request-card.new {
    animation: slideIn 0.5s ease;
}