* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #000;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.back-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #000;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.back-button:hover {
    background: #f8f9fa;
    color: #000;
    transform: translateY(-1px);
}

.back-button svg {
    width: 20px;
    height: 20px;
}

h1 {
    font-size: 3rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    font-size: 1.2rem;
    font-weight: 300;
    color: #666;
    max-width: 600px;
    margin: 0 auto 20px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.versus-container {
    width: 100%;
    max-width: 1000px;
}

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

.versus-header h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.versus-battle {
    display: flex;
    gap: 30px;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 30px;
    min-height: 300px;
}

.wisdom-card {
    flex: 1;
    max-width: 450px;
    background: white;
    border: 2px solid #000;
    border-radius: 2px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.wisdom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #000;
}

.wisdom-card:active {
    transform: translateY(-3px);
}

.wisdom-card.fade-out {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.wisdom-card.fade-in {
    opacity: 0;
    transform: scale(1.05);
    animation: fadeInWisdom 0.6s ease forwards;
}

@keyframes fadeInWisdom {
    0% { 
        opacity: 0;
        transform: scale(1.05);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}


.wisdom-votes.vote-increment {
    animation: voteCountUp 0.6s ease-out;
}

@keyframes voteCountUp {
    0% {
        color: #000;
        transform: scale(1);
    }
    50% {
        color: #28a745;
        transform: scale(1.2);
    }
    100% {
        color: #000;
        transform: scale(1);
    }
}


.wisdom-text {
    font-size: 1.2rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 20px;
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 80px;
    line-height: 1.4;
}

.wisdom-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.wisdom-language {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wisdom-votes {
    font-weight: 400;
    color: #000;
}

.wisdom-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    background-color: #000;
    color: white;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.versus-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 400;
    color: #666;
    min-width: 40px;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

.loading-state p {
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.versus-actions {
    text-align: center;
    margin-top: 20px;
}

.skip-btn {
    background: none;
    border: 1px solid #666;
    color: #666;
    padding: 10px 20px;
    border-radius: 2px;
    font-size: 0.9rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.skip-btn:hover {
    background-color: #666;
    color: white;
    transform: translateY(-1px);
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .back-button {
        width: 40px;
        height: 40px;
    }

    .back-button svg {
        width: 18px;
        height: 18px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1rem;
    }

    .versus-battle {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .wisdom-card {
        max-width: 100%;
        width: 100%;
    }

    .versus-separator {
        margin: 10px 0;
    }

    .wisdom-text {
        font-size: 1.1rem;
        min-height: 60px;
    }

    .versus-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .wisdom-card {
        padding: 20px;
    }

    .wisdom-text {
        font-size: 1rem;
    }

    .back-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .wisdom-card {
        border-width: 3px;
    }
    
    .wisdom-card:hover {
        border-width: 3px;
    }
    
    .tag {
        font-weight: 400;
    }
}

/* Animation preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .wisdom-card:hover {
        transform: none;
    }
    
    .back-btn:hover,
    .skip-btn:hover {
        transform: none;
    }
}