/* Main Styles - Enhanced Design */
body {
    background: linear-gradient(135deg, #051c33 0%, #0a2744 50%, #051c33 100%);
    color: white;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Header Styles */
.header-gradient {
    background: #8B1818;
    padding: 20px 0;
    margin: 0;
    width: 100%;
}

.header-gradient h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}


/* Tab Navigation - Enhanced */
.tab-active {
    background: #8B1818;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    width: 200px;
    margin: 0 10px;
    padding: 15px 30px;
    cursor: pointer;
}

.tab-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #9a0e0e;
    border-radius: 0 0 4px 4px;
}

.tab-inactive {
    background: #16A34A;
    color: white;
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    width: 200px;
    margin: 0 10px;
    padding: 15px 30px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-inactive i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.tabs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px 0;
}

.tab-inactive:hover {
    background: #1a3764;
    color: white;
    transform: translateY(-2px);
    opacity: 0.9;
}

/* VS Badge - Enhanced */
.vs-badge {
    background: #FFD700;
    color: black;
    font-weight: 800;
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 20px;
}

.vs-badge:hover {
    transform: rotate(0deg) scale(1.1);
}

/* Vote Button - Enhanced */
.vote-button {
    background: linear-gradient(to bottom, #8b1a1a 0%, #a52a2a 100%);
    color: white;
    border: none;
    border-radius: 8px;
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.vote-button:hover {
    background: linear-gradient(to bottom, #a52a2a 0%, #c53030 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Skip Button - Secondary Style */
.skip-button {
    background: linear-gradient(to bottom, #091b2e 0%, #0d2440 100%);
    color: #8e9ab3;
    border: 2px solid #1e3a5a;
    border-radius: 8px;
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.skip-button:hover {
    background: linear-gradient(to bottom, #1a3764 0%, #2a4a6a 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Store Button - Purple Style */
.store-button {
    background: linear-gradient(to bottom, #4b1d89 0%, #7e32e6 100%);
    color: #e0d2ff;
    border: 2px solid #6422bb;
    border-radius: 8px;
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.store-button:hover {
    background: linear-gradient(to bottom, #6a29c9 0%, #9151f5 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Modal - Enhanced */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: linear-gradient(145deg, #091b2e 0%, #0d2440 100%);
    border: 2px solid #1e3a5a;
    border-radius: 15px;
    animation: slideDown 0.3s ease;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

@keyframes slideDown {
    from { transform: translateY(-70px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Loading Spinner - Enhanced */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
    border-color: #a52a2a;
    border-top-color: transparent;
    box-shadow: 0 0 15px rgba(165, 42, 42, 0.3);
}

/* Upload Button - Enhanced */
#upload-button {
    background: linear-gradient(to bottom, #1e3a5a 0%, #2a4a6a 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#upload-button:hover {
    background: linear-gradient(to bottom, #2a4a6a 0%, #3a5a7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Form Elements - Enhanced */
input[type="text"] {
    background: linear-gradient(to bottom, #0c2341 0%, #0f2a4d 100%);
    border: 1px solid #1e3a5a;
    border-radius: 6px;
    color: white;
    padding: 12px;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: #2a4a6a;
    box-shadow: 0 0 10px rgba(42, 74, 106, 0.5);
    outline: none;
}

/* Character Card Styles - Enhanced */
.character-card {
    background: linear-gradient(145deg, #0d2c4b 0%, #0a2038 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #1e3a5a;
    position: relative;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: #2a4a6a;
}

.character-card h3 {
    background-color: rgba(13, 44, 75, 0.8);
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
}

/* Amazon Images and Buttons */
.character-card .object-contain {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    padding: 10px;
}

.character-silhouette {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.amazon-button {
    background: linear-gradient(to bottom, #FF9900 0%, #e68a00 100%);
    color: black;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto 15px auto;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.amazon-button:hover {
    background: linear-gradient(to bottom, #ffaa22 0%, #ff9900 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Rankings Table Styles */
.rankings-table th {
    background: linear-gradient(to bottom, #1a365d 0%, #2d4a77 100%);
    color: white;
    padding: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    text-align: center;
    border-bottom: 2px solid #3d5a8a;
}

.rankings-table tr:nth-child(odd) {
    background-color: rgba(15, 34, 58, 0.4);
}

.rankings-table tr:nth-child(even) {
    background-color: rgba(15, 34, 58, 0.7);
}

.rankings-table td {
    padding: 12px;
    text-align: center;
}

.rankings-table td:last-child {
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .character-card {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .vs-badge {
        margin: 20px 0;
        font-size: 2rem;
        width: 80px;
        height: 80px;
    }
    
    .header-gradient h1 {
        font-size: 2rem;
    }
    
    .tab-active, .tab-inactive {
        font-size: 1rem;
        width: 150px;
    }
}