/**
 * Fan Upload System - Cleaned CSS Styles
 * Contains only the 80 CSS classes used in fan_upload.php and fan_upload_success.php
 * Based on css_classes_analysis.txt
 */

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* Common Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

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

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dots {
    0%, 20% {
        color: rgba(0, 0, 0, 0);
        text-shadow:
            .25em 0 0 rgba(0, 0, 0, 0),
            .5em 0 0 rgba(0, 0, 0, 0);
    }
    40% {
        color: black;
        text-shadow:
            .25em 0 0 rgba(0, 0, 0, 0),
            .5em 0 0 rgba(0, 0, 0, 0);
    }
    60% {
        text-shadow:
            .25em 0 0 black,
            .5em 0 0 rgba(0, 0, 0, 0);
    }
    80%, 100% {
        text-shadow:
            .25em 0 0 black,
            .5em 0 0 black;
    }
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* =========================
   FAN UPLOAD PAGE STYLES
   ========================= */

/* Body and Container */
body.fan-upload-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fan-upload-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Main Content Wrapper */
.main-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Champion Card */
.champion-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.champion-header {
    text-align: center;
    margin-bottom: 25px;
}

.champion-name {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.champion-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.detail-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.highlight-price {
    font-size: 1.3rem;
    color: #667eea;
    font-weight: 700;
}

.champion-bio {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.bio-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.bio-text {
    color: #666;
    line-height: 1.6;
    white-space: pre-line;
}

.champion-media {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

/* Upload Section */
.upload-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.champion-paused {
    text-align: center;
    padding: 40px 20px;
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 15px;
    margin-bottom: 30px;
}

.pause-icon {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 15px;
}

.pause-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #856404;
    margin-bottom: 10px;
}

.pause-message {
    color: #856404;
    font-size: 1rem;
    line-height: 1.5;
}

.upload-header {
    text-align: center;
    margin-bottom: 30px;
}

.upload-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.upload-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

.general-error {
    background: #ff6b6b;
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

/* Form Styles */
.upload-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-textarea {
    padding: 15px 20px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input.error,
.form-textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
    display: none;
}

.error-message:before {
    content: "⚠ ";
    margin-right: 5px;
}

/* File Upload Styles */
.file-upload-container {
    position: relative;
    margin-bottom: 20px;
}

.file-upload-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: scale(1.02);
}

.file-upload-icon {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 10px;
}

.file-upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.file-upload-hint {
    font-size: 0.9rem;
    color: #666;
}

.file-upload-label.file-selected {
    border-color: #27ae60;
    background: #f0fff4;
}

.file-upload-label.file-selected .file-upload-icon {
    color: #27ae60;
}

.file-upload-label.file-selected .file-upload-text {
    color: #27ae60;
}

/* Character Counter */
.char-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.field-info {
    font-size: 0.8rem;
    color: #666;
}

.char-count {
    font-size: 0.8rem;
    font-weight: 500;
    color: #666;
}

.char-count.valid {
    color: #27ae60;
}

.char-count.invalid {
    color: #e74c3c;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.loading-icon {
    width: 60px;
    height: 60px;
    border: 6px solid #f0f0f0;
    border-top: 6px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.loading-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
}

.loading-dots {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.loading-dots::after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

.progress-container {
    width: 100%;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Validation States */
.border-success {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
}

.border-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

.border-default {
    border-color: #e0e6ed !important;
    box-shadow: none !important;
}

.valid {
    color: #27ae60;
}

.invalid {
    color: #e74c3c;
}

/* Form Loading State */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Validation Error Popup */
.validation-error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
}

.validation-error-popup::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.validation-error-popup h4 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.validation-error-popup ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.validation-error-popup li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.validation-error-popup li:before {
    content: "•";
    color: #e74c3c;
    position: absolute;
    left: 0;
}

.validation-error-popup button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.validation-error-popup button:hover {
    background: #5a6fd8;
}

/* =========================
   SUCCESS PAGE STYLES
   ========================= */

/* Body and Container */
body.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-page-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

/* Success Content Wrapper */
.success-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Card Styles */
.success-message-card,
.request-preview-card,
.next-steps-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

.success-message-card {
    text-align: center;
    animation-delay: 0.1s;
}

.request-preview-card {
    animation-delay: 0.2s;
}

.next-steps-card {
    animation-delay: 0.3s;
}

/* Success Icon and Animation */
.success-icon {
    margin-bottom: 20px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #27ae60;
    stroke-miterlimit: 10;
    margin: 0 auto 20px;
    box-shadow: inset 0px 0px 0px #27ae60;
    animation: bounceIn 0.6s ease-in-out;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #27ae60;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-stem {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.checkmark-kick {
    stroke-dasharray: 23;
    stroke-dashoffset: 23;
    animation: stroke 0.2s cubic-bezier(0.65, 0, 0.45, 1) 0.9s forwards;
}

/* Success Card Content */
.success-card-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.success-card-message {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card Title */
.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

/* Request Preview Card */
.request-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-line;
}

.video-info {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    color: #667eea;
    font-weight: 500;
}

.video-icon {
    font-size: 1.2rem;
}

/* Next Steps Card */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.step-text {
    color: #666;
    line-height: 1.6;
    padding-top: 3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fan-upload-container,
    .success-page-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .main-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .success-content-wrapper {
        gap: 25px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .fan-upload-container,
    .success-page-container {
        padding: 20px 15px;
        margin: 5px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .champion-name {
        font-size: 1.5rem;
    }
    
    .upload-title {
        font-size: 1.5rem;
    }
    
    .success-card-title {
        font-size: 1.7rem;
    }
}
