/* En Iyi Ikili Game Styles */

/* Game Header */
#best-duo-game-area header {
    text-align: center;
    margin-bottom: 1rem;
}

#best-duo-game-area header h1 {
    font-size: 1.8rem;
    color: #f8fafc;
    margin: 0.5rem 0;
}

#best-duo-game-area header p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Round Info */
.duo-round-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.duo-round-info .round-badge {
    font-size: 1.2rem;
    font-weight: 700;
    color: #818cf8;
    text-transform: uppercase;
}

.duo-round-info .progress-badge {
    font-size: 0.9rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

/* Match Container */
.duo-match-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
}

/* VS Divider */
.duo-vs-divider {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f59e0b;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Cards Container */
.duo-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
}

/* VS Divider Between Cards */
.duo-vs {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f59e0b;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

/* Duo Name Label */
.duo-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), transparent);
    border-radius: 0 0 16px 16px;
    z-index: 5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .duo-cards-container {
        flex-direction: column;
        gap: 1rem;
    }

    .duo-vs {
        font-size: 1.8rem;
    }

    .duo-name {
        font-size: 1rem;
    }
}

/* Duo Cards */
.duo-card {
    position: relative;
    width: 420px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 4px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Gradient border effect */
.duo-card::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7, #6366f1);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.duo-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 25px 60px rgba(99, 102, 241, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.duo-card:hover::before {
    opacity: 1;
}

.duo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    transition: transform 0.3s ease;
    padding: 8px;
    border-radius: 16px;
}

.duo-card:hover img {
    transform: scale(1.02);
}

/* Card States */
.duo-card.selected {
    border-color: #22c55e;
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
    transform: scale(1.05);
}

.duo-card.selected::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: #22c55e;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.8);
    animation: checkmark 0.5s ease;
    z-index: 10;
}

@keyframes checkmark {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.duo-card.eliminated {
    border-color: #ef4444;
    opacity: 0.5;
    transform: scale(0.95);
    filter: grayscale(70%);
}

.duo-card.eliminated::after {
    content: '\2717';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    z-index: 10;
}

/* Name Label - shown at bottom of card */
.duo-name-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0.8rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7), transparent);
    color: #f8fafc;
    font-weight: 700;
    font-size: 1.3rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 4;
    letter-spacing: 0.5px;
}

/* Click hint - using a child element overlay instead of ::before */
.duo-card .select-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.duo-card:hover .select-hint {
    opacity: 1;
}

.duo-card.selected .select-hint,
.duo-card.eliminated .select-hint {
    display: none;
}

/* Result Area */
.duo-result-area {
    text-align: center;
    padding: 2rem;
}

.duo-result-area h2 {
    font-size: 2rem;
    color: #f8fafc;
    margin-bottom: 1.5rem;
}

.duo-winner-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.duo-winner-img {
    width: 320px;
    max-width: 90vw;
    height: auto;
    border-radius: 16px;
    border: 4px solid #fbbf24;
    box-shadow: 0 0 50px rgba(251, 191, 36, 0.4);
    animation: winner-glow 2s ease-in-out infinite;
}

@keyframes winner-glow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
    }

    50% {
        box-shadow: 0 0 60px rgba(251, 191, 36, 0.7);
    }
}

.duo-crown {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: crown-bounce 1s ease-in-out infinite;
}

@keyframes crown-bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Celebration Effect */
.duo-result-area.celebrate {
    position: relative;
}

/* Restart Button */
#duo-restart-btn {
    margin-top: 1.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .duo-match-container {
        flex-direction: column;
        gap: 1rem;
    }

    .duo-card {
        width: 320px;
        height: 380px;
    }

    .duo-name-label {
        font-size: 1.1rem;
    }

    .duo-vs-divider {
        font-size: 1.8rem;
        transform: rotate(90deg);
    }

    .duo-round-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .duo-winner-img {
        width: 280px;
    }
}

@media (max-width: 480px) {
    .duo-card {
        width: 300px;
        height: 360px;
    }

    .duo-name-label {
        font-size: 1rem;
        padding: 0.8rem 0.5rem;
    }

    .duo-card::after {
        font-size: 3rem !important;
    }

    #best-duo-game-area header h1 {
        font-size: 1.4rem;
    }
}

/* Fade in animation */
.duo-card.fade-in {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BUYUK EKRANLAR ICIN (1600px ve uzeri) */
@media (min-width: 1600px) {

    /* Game Header */
    #best-duo-game-area header h1 {
        font-size: 2.5rem;
    }

    #best-duo-game-area header p {
        font-size: 1.2rem;
    }

    /* Round Info */
    .duo-round-info {
        padding: 1.5rem 2rem;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .duo-round-info .round-badge {
        font-size: 1.6rem;
    }

    .duo-round-info .progress-badge {
        font-size: 1.1rem;
        padding: 0.6rem 1.5rem;
    }

    /* Match Container */
    .duo-match-container {
        gap: 3rem;
        padding: 2rem;
    }

    /* VS Divider */
    .duo-vs-divider {
        font-size: 4rem;
    }

    /* Duo Cards */
    .duo-card {
        width: 400px;
        height: 500px;
        border-radius: 28px;
    }

    .duo-card img {
        padding: 12px;
        border-radius: 20px;
    }

    .duo-card .select-hint {
        font-size: 1.4rem;
        padding: 1.5rem;
    }

    .duo-card.selected::after,
    .duo-card.eliminated::after {
        font-size: 7rem;
    }

    /* Result Area */
    .duo-result-area h2 {
        font-size: 3rem;
    }

    .duo-winner-img {
        width: 450px;
    }

    .duo-crown {
        font-size: 4.5rem;
        top: -55px;
    }

    #duo-restart-btn {
        padding: 1.3rem 3rem;
        font-size: 1.3rem;
    }
}

/* COK BUYUK EKRANLAR (2K ve uzeri) */
@media (min-width: 2400px) {
    .duo-card {
        width: 500px;
        height: 620px;
    }

    .duo-vs-divider {
        font-size: 5rem;
    }

    .duo-winner-img {
        width: 550px;
    }

    #best-duo-game-area header h1 {
        font-size: 3.2rem;
    }
}