/* SCM Templates Stylesheet */
/* Styles for single chart, song, and artist pages */

/* ========================================
   ADMIN TOOLBAR (for logged-in admins)
======================================== */

.scm-admin-toolbar {
    background: #23282d;
    padding: 10px 20px;
    margin: -40px -20px 20px -20px;
    border-radius: 10px 10px 0 0;
    text-align: right;
}

.scm-edit-button {
    background: #0073aa !important;
    color: white !important;
    border-color: #0073aa !important;
    padding: 8px 15px !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    border-radius: 3px !important;
    transition: all 0.3s !important;
}

.scm-edit-button:hover {
    background: #005177 !important;
    border-color: #005177 !important;
    color: white !important;
}

.scm-edit-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* ========================================
   COMMON STYLES
======================================== */

.scm-chart-single,
.scm-song-single,
.scm-artist-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Headers */
.scm-chart-header,
.scm-song-header,
.scm-artist-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.scm-chart-title,
.scm-song-title,
.scm-artist-name {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* ========================================
   CHART PAGE STYLES
======================================== */

.scm-chart-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.scm-nav-button,
.scm-nav-previous,
.scm-nav-next {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.scm-nav-button:hover,
.scm-nav-previous:hover,
.scm-nav-next:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.scm-chart-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
}

.scm-chart-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.scm-chart-description {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
}

/* Chart Tables */
.scm-chart-table,
.scm-left-songs-table,
.scm-history-table,
.scm-achievements-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.scm-chart-table thead,
.scm-left-songs-table thead,
.scm-history-table thead,
.scm-achievements-table thead {
    background: #2c3e50;
    color: white;
}

.scm-chart-table th,
.scm-left-songs-table th,
.scm-history-table th,
.scm-achievements-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.scm-chart-table td,
.scm-left-songs-table td,
.scm-history-table td,
.scm-achievements-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.scm-chart-table tbody tr:hover,
.scm-left-songs-table tbody tr:hover,
.scm-history-table tbody tr:hover,
.scm-achievements-table tbody tr:hover {
    background: #f8f9fa;
}

.scm-rank-col {
    width: 80px;
}

.scm-rank {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.scm-new-entry {
    background: #fff3cd !important;
}

.scm-new-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 5px;
    vertical-align: middle;
}

.scm-rank-cell,
.scm-peak-cell {
    font-weight: 700;
    color: #667eea;
    font-size: 18px;
}

/* Left Songs & New Songs */
.scm-left-songs,
.scm-new-songs-list {
    direction: rtl;
    text-align: right;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.scm-left-songs h2,
.scm-new-songs-list h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 3px solid #e74c3c;
    padding-bottom: 10px;
}

.scm-candidates-list {
    list-style: none;
    padding: 0;
    margin: 0;
    direction: rtl;
    text-align: right;
}

.scm-candidates-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 16px;
    text-align: right;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.scm-candidates-list li:last-child {
    border-bottom: none;
}

.scm-candidate-item .scm-song-title {
    color: #667eea;
    font-weight: 600;
    font-size: 1.05em;
    text-decoration: none;
}

.scm-candidate-item .scm-song-title:hover {
    color: #5568d3;
    text-decoration: underline;
}

.scm-artist-separator {
    color: #666;
    margin: 0 4px;
}

.scm-artist-name {
    color: #333;
}

.scm-artist-name .scm-artist-link {
    color: #333;
    text-decoration: none;
}

.scm-artist-name .scm-artist-link:hover {
    color: #667eea;
    text-decoration: underline;
}

.scm-note {
    color: #7f8c8d;
    font-style: italic;
    font-size: 14px;
    margin-right: 4px;
}

/* Awards Section */
.scm-awards-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.scm-awards-section h2 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 3px solid #f39c12;
    padding-bottom: 10px;
}

.scm-awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.scm-award-card {
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
}

.scm-award-card h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.scm-award-winner,
.scm-award-station {
    margin: 10px 0;
    font-size: 14px;
}

.scm-award-runners {
    margin-top: 15px;
}

.scm-award-runners ol {
    margin: 10px 0;
    padding-left: 20px;
}

.scm-award-runners li {
    margin: 5px 0;
}

/* ========================================
   SONG PAGE STYLES
======================================== */

.scm-song-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scm-song-performers {
    font-size: 20px;
    font-weight: 500;
}

.scm-song-performers a,
.scm-song-performers a:visited {
    color: white;
    text-decoration: underline;
}

.scm-song-year {
    font-size: 16px;
    opacity: 0.9;
}

.scm-label {
    font-weight: 600;
    opacity: 0.8;
}

/* Song Content */
.scm-song-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scm-song-thumbnail {
    float: right;
    margin: 0 0 20px 20px;
    max-width: 400px;
}

.scm-song-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.scm-song-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Video */
.scm-song-video {
    margin: 40px 0;
    clear: both;
}

.scm-song-video h2 {
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 10px;
}

.scm-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
}

.scm-video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.scm-video-link {
    display: inline-block;
    padding: 12px 24px;
    background: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.scm-video-link:hover {
    background: #cc0000;
    color: white;
}

/* Credits */
.scm-song-credits {
    margin: 40px 0;
}

.scm-song-credits h2 {
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 10px;
}

.scm-credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.scm-credit-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.scm-credit-item strong {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scm-credit-list a {
    display: block;
    color: #667eea;
    text-decoration: none;
    margin: 5px 0;
}

.scm-credit-list a:hover {
    text-decoration: underline;
}

.scm-band-members {
    grid-column: 1 / -1;
}

.scm-band-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.scm-band-list li {
    padding: 10px;
    background: white;
    border-radius: 5px;
}

.scm-role {
    color: #7f8c8d;
    font-style: italic;
    font-size: 14px;
}

.scm-additional-notes {
    background: #fff3cd;
    padding: 20px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
    border-radius: 5px;
}

/* Chart Achievements */
.scm-chart-achievements {
    margin: 40px 0;
}

.scm-chart-achievements h2 {
    color: #2c3e50;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.scm-peak-positions {
    margin: 30px 0;
}

.scm-peaks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.scm-peak-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.scm-peak-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.scm-peak-label {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.9;
}

/* Chart History */
.scm-chart-history {
    margin: 30px 0;
}

/* Chart Run Visualization */
.scm-chart-run {
    margin: 30px 0;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.scm-run-container {
    margin-top: 20px;
}

.scm-run-chart {
    margin: 20px 0;
}

.scm-run-chart h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.scm-run-positions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.scm-run-point {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #95a5a6;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

.scm-run-point:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.scm-run-point.scm-top-three {
    background: linear-gradient(135deg, #f39c12 0%, #e74c3c 100%);
    font-size: 18px;
}

.scm-run-point.scm-top-ten {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.scm-run-note {
    font-size: 13px;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 15px;
}

.scm-no-chart-data {
    background: #fff3cd;
    padding: 20px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
    border-radius: 5px;
}

.scm-song-keywords {
    margin: 30px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 14px;
}

/* ========================================
   ARTIST PAGE STYLES
======================================== */

.scm-artist-header {
    display: flex;
    align-items: center;
    gap: 30px;
}

.scm-artist-image {
    flex-shrink: 0;
}

.scm-artist-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.3);
}

.scm-artist-header-content {
    flex: 1;
}

.scm-artist-category {
    font-size: 16px;
    opacity: 0.9;
}

/* Artist Content */
.scm-artist-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.scm-artist-bio,
.scm-artist-bio-additional {
    margin-bottom: 30px;
    line-height: 1.8;
}

.scm-artist-bio h2 {
    color: #2c3e50;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 10px;
}

/* Achievement Sections */
.scm-yearly-charts,
.scm-weekly-charts,
.scm-awards-summary {
    margin: 40px 0;
}

.scm-yearly-charts h2,
.scm-weekly-charts h2,
.scm-awards-summary h2 {
    color: #2c3e50;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.scm-awards-won,
.scm-runner-ups {
    margin: 30px 0;
}

.scm-awards-won h3,
.scm-runner-ups h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 15px;
}

.scm-no-achievements {
    background: #fff3cd;
    padding: 20px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
    border-radius: 5px;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .scm-chart-single,
    .scm-song-single,
    .scm-artist-single {
        padding: 20px 10px;
    }
    
    .scm-chart-header,
    .scm-song-header,
    .scm-artist-header {
        padding: 20px;
    }
    
    .scm-chart-title,
    .scm-song-title,
    .scm-artist-name {
        font-size: 24px;
    }
    
    .scm-chart-navigation {
        flex-direction: column;
    }
    
    .scm-chart-table,
    .scm-left-songs-table,
    .scm-history-table,
    .scm-achievements-table {
        font-size: 14px;
    }
    
    .scm-chart-table th,
    .scm-chart-table td,
    .scm-left-songs-table th,
    .scm-left-songs-table td,
    .scm-history-table th,
    .scm-history-table td,
    .scm-achievements-table th,
    .scm-achievements-table td {
        padding: 10px 5px;
    }
    
    .scm-awards-grid,
    .scm-credits-grid,
    .scm-peaks-grid {
        grid-template-columns: 1fr;
    }
    
    .scm-song-thumbnail {
        float: none;
        margin: 0 0 20px 0;
        max-width: 100%;
    }
    
    .scm-artist-header {
        flex-direction: column;
        text-align: center;
    }
    
    .scm-artist-image img {
        width: 150px;
        height: 150px;
    }
    
    .scm-song-content,
    .scm-artist-content {
        padding: 20px;
    }
}

/* ========================================
   PRINT STYLES
======================================== */

@media print {
    .scm-chart-navigation,
    .scm-nav-button {
        display: none !important;
    }
    
    .scm-chart-header,
    .scm-song-header,
    .scm-artist-header {
        background: #f0f0f1 !important;
        color: #2c3e50 !important;
    }
    
    .scm-video-embed {
        display: none;
    }
    
    .scm-chart-table,
    .scm-achievements-table {
        page-break-inside: avoid;
    }
}

