/* Widget: Champion Spotlight - Premium Redesign v1.1.0 */
.scr-widget-champion {
    background: #ffffff;
    border: none;
    border-top: 4px solid #d4af37; /* Gold accent */
    border-radius: 12px;
    padding: 25px 20px;
    max-width: 320px;
    margin: 30px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scr-widget-champion:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.scr-widget-champion::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(212,175,55,0.05) 0%, rgba(255,255,255,0) 100%);
    z-index: 0;
}

.scr-widget-header {
    background: #f8f9fa;
    color: #333;
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.85em;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid #eee;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scr-widget-header .dashicons {
    color: #d4af37; /* Gold icon */
    font-size: 1.3em;
    vertical-align: sub;
    margin-left: 4px;
}

.scr-widget-content {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.scr-widget-flag {
    width: 90px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    border: 2px solid #fff;
}

.scr-widget-country {
    margin: 5px 0;
    font-size: 1.6em;
    color: #1a1a1a;
    font-weight: 800;
    line-height: 1.2;
}

.scr-widget-votes {
    display: inline-block;
    background: #fff8e1; /* Light yellow bg */
    color: #b58900;
    font-size: 0.85em;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    margin-top: 8px;
}

.scr-widget-cta {
    position: relative;
    z-index: 1;
}

.scr-widget-cta p {
    margin: 0 0 12px;
    color: #666;
    font-size: 0.95em;
    font-style: italic;
}

.scr-widget-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: #fff !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 1.05em;
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.3);
}

.scr-widget-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #004263 100%);
    box-shadow: 0 6px 15px rgba(0, 115, 170, 0.4);
    transform: translateY(-1px);
}

/* General Layout */
.scr-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.scr-header {
    text-align: right;
    margin-bottom: 20px;
}

/* Tabs */
.scr-tabs {
    overflow: hidden;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.scr-tab-btn {
    background-color: transparent;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 20px;
    transition: 0.3s;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
}

.scr-tab-btn:hover {
    color: #333;
}

.scr-tab-btn.active {
    color: #0073aa;
    border-bottom: 3px solid #0073aa;
}

.scr-tab-content {
    display: none;
    animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Table */
.scr-table-responsive {
    overflow-x: auto;
}

.scr-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.scr-table th, .scr-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.scr-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.scr-rank {
    font-weight: bold;
    font-size: 1.1em;
    color: #444;
    width: 60px;
    text-align: center;
}

.scr-flag {
    height: 20px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Voting Grid */
.scr-vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.scr-vote-item {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.scr-vote-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.scr-flag-large {
    display: block;
    height: 40px;
    width: auto;
    margin: 0 auto 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.scr-country-name {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.scr-vote-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.scr-vote-btn:hover {
    background: #005177;
}

.scr-vote-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Results */
.scr-results-section {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.scr-results-list {
    margin-top: 20px;
}

.scr-result-item {
    margin-bottom: 15px;
}

.scr-result-label {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-weight: 500;
}

.scr-flag-small {
    height: 16px;
    width: auto;
    margin-left: 8px;
}

.scr-vote-count {
    margin-right: auto;
    font-size: 0.9em;
    color: #777;
}

.scr-progress-bar {
    background: #f1f1f1;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.scr-progress-fill {
    background: #0073aa;
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.scr-percentage {
    text-align: right;
    font-size: 0.8em;
    color: #666;
    margin-top: 2px;
}

/* Messages */
.scr-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 10px;
    border-radius: 4px;
}

.scr-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 10px;
    border-radius: 4px;
}

/* Toast Notification */
.scr-toast {
    visibility: hidden;
    min-width: 300px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 99999;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s, top 0.3s;
}
.scr-toast.show {
    visibility: visible;
    opacity: 1;
    top: 50px;
}
.scr-toast.error {
    background-color: #d32f2f;
}
.scr-toast.success {
    background-color: #388e3c;
}

/* Comments Section */
.scr-comments-section {
    margin-top: 50px;
    border-top: 2px solid #eee;
    padding-top: 30px;
}

.scr-comments-section h3 {
    margin-bottom: 25px;
    font-size: 1.5em;
    color: #333;
    border-right: 4px solid #0073aa;
    padding-right: 15px;
}

.scr-comment-form-container {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #eee;
}

.scr-comment-form-container h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #444;
}

.scr-form-group {
    margin-bottom: 15px;
}

.scr-form-group input, .scr-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.3s;
    font-family: inherit;
}

.scr-form-group input:focus, .scr-form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.scr-submit-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.scr-submit-btn:hover {
    background: #005177;
    transform: translateY(-2px);
}

.scr-submit-btn:disabled {
    background: #ccc;
    transform: none;
}

/* Comment List */
.scr-comments-list {
    margin-top: 30px;
}

.scr-comment-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: box-shadow 0.3s;
    border-right: 3px solid #0073aa;
}

.scr-comment-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.scr-comment-header {
    margin-bottom: 10px;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 10px;
}

.scr-comment-author {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.scr-comment-date {
    margin-right: auto;
    color: #999;
    font-size: 0.85em;
}

.scr-comment-content {
    color: #555;
    line-height: 1.6;
    font-size: 1.05em;
}

.no-comments {
    text-align: center;
    color: #777;
    font-style: italic;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}
@media (max-width: 600px) {
    .scr-vote-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scr-header {
        text-align: center;
    }
}
