/**
 * Template Styles - Extracted from template files
 * This file contains all styles that were previously hardcoded in template files
 */

/* ========================================
   FORM TEMPLATE STYLES
   ======================================== */

/* Call to Action Template */
.top100-form-title.call-to-action-template {
    background: linear-gradient(135deg, var(--primary-color, #667eea), var(--secondary-color, #764ba2));
    color: white;
    padding: 2em;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2em;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Minimal Template */
.top100-form-title.minimal-template h3 {
    color: var(--primary-color, #333);
    font-size: 1.3em;
    font-weight: 400;
    margin: 0 0 1.5em 0;
    text-align: left;
    letter-spacing: 0.5px;
    position: relative;
}

/* Standard Template */
.top100-form-title.standard-template h2 {
    font-family: inherit;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid var(--primary-color, #667eea);
    padding-bottom: 0.5em;
}

/* Form Container */
.top100-form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.top100-request-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 8px;
      margin: 30px 0;
    padding: 20px;
}




.top100-request-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top100-request-form label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.top100-request-form input,
.top100-request-form select,
.top100-request-form textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
    font-family: inherit;
}

.top100-request-form input:focus,
.top100-request-form select:focus,
.top100-request-form textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.top100-request-form input:hover,
.top100-request-form select:hover,
.top100-request-form textarea:hover {
    border-color: #bdc3c7;
    background: white;
}

.top100-request-form input.error,
.top100-request-form select.error,
.top100-request-form textarea.error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

/* ========================================
   REQUEST FORM SPECIFIC STYLES
   ======================================== */

/* Form Help Text */
.form-help {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    line-height: 1.4;
}

/* Form Row for Half/Full Width Fields */
.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.form-group.half {
    flex: 1;
}

.form-group.full {
    flex: 1;
}

/* Form Submit Section */
.form-submit-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* Submit Button */
.top100-submit-button,
.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.top100-submit-button:hover:not(:disabled),
.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.top100-submit-button:active,
.submit-btn:active {
    transform: translateY(0);
}

.top100-submit-button:disabled,
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Button Text and Loading States */
.btn-text {
    transition: opacity 0.2s ease;
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Note */
.form-note {
    font-size: 14px;
    color: #6b7280;
    margin-top: 12px;
    line-height: 1.5;
}

/* Form Messages */
.form-messages {
    margin-top: 20px;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.message-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
    line-height: 1.4;
}

/* Request Form Styles */
.top100-request-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
       border-radius: 8px;
      margin: 30px 0;
    padding: 20px;
}

.form-header h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.form-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    
}

.form-section {
    margin-bottom: 25px;
}

.section-title {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Widget Styles */
.top100-widget {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.top100-widget .widget-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.widget-tracks {
    max-height: 400px;
    overflow-y: auto;
}

.widget-track-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    position: relative;
}

.widget-track-item:hover {
    background: #f8f9fa;
}

.widget-track-item:last-child {
    border-bottom: none;
}

.position-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.track-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 12px;
    color: #666;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vote-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
}

.vote-count {
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
}

.mini-vote-btn {
    background: #667eea;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mini-vote-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.mini-vote-btn:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.widget-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.widget-view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.widget-view-all:hover {
    text-decoration: underline;
}

/* Professional Chart Styles */
.top100-professional-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

.professional-chart-header {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.professional-chart-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 10px;
    letter-spacing: -0.025em;
}

.professional-chart-subtitle {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

/* Animation Classes */
.pulse-success {
    animation: pulse-success 0.6s ease-in-out;
}

@keyframes pulse-success {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .top100-form-container,
    .top100-request-form-wrapper {
        margin: 10px;
        padding: 15px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .professional-chart-title {
        font-size: 24px;
    }
    
    .widget-track-item {
        padding: 10px 15px;
    }
    
    .track-title {
        font-size: 13px;
    }
    
    .track-artist {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .top100-form-title.call-to-action-template {
        padding: 1.5em;
    }
    
    .position-number {
        width: 25px;
        height: 25px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .mini-vote-btn {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    /* Request Form Mobile Styles */
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .top100-request-form-wrapper {
        padding: 15px;
    }
    
    .top100-request-form {
        gap: 20px;
    }
    
    .top100-submit-button,
    .submit-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 18px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .form-note {
        font-size: 13px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .top100-widget {
        background: #1f2937;
        color: #f3f4f6;
    }
    
    .widget-track-item {
        border-bottom-color: #374151;
    }
    
    .widget-track-item:hover {
        background: #374151;
    }
    
    .track-title {
        color: #f3f4f6;
    }
    
    .track-artist {
        color: #d1d5db;
    }
    
    .mini-vote-btn {
        background: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }
    
    .mini-vote-btn:hover {
        background: #4b5563;
    }
    
    .widget-footer {
        background: #374151;
        border-top-color: #4b5563;
    }
}