/* Emoji Vote Game Styles */

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.turn-indicator {
    font-size: 1.2rem;
    padding: 1rem;
    background: rgba(139, 190, 178, 0.1);
    border-radius: 10px;
    margin: 1rem 0;
    color: #000;
    font-weight: 600;
}

/* Phase Sections */
.phase-section {
    animation: fadeIn 0.5s ease-in;
}

.phase-section.hidden {
    display: none;
}

.phase-header {
    text-align: center;
    margin-bottom: 2rem;
}

.phase-header h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.phase-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Selection Phase */
.selection-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.emoji-grid {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px solid rgba(139, 190, 178, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.emoji-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 0.5rem;
}

.emoji-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
}

.emoji-pagination button {
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.emoji-pagination button:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.emoji-pagination button:disabled {
    background: rgba(139, 190, 178, 0.3);
    cursor: not-allowed;
    opacity: 0.5;
}

.emoji-pagination span {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.emoji-option {
    font-size: 2.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
}

.emoji-option:hover {
    background: rgba(139, 190, 178, 0.2);
    transform: scale(1.1);
}

.emoji-option.selected {
    background: var(--accent-color);
    border-color: var(--secondary-color);
    transform: scale(1.15);
}

.text-input-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px solid rgba(139, 190, 178, 0.2);
}

.text-input-section label {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.text-input-section input {
    padding: 0.75rem;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.text-input-section input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.selection-status {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(139, 190, 178, 0.1);
    border-radius: 10px;
    font-size: 1.1rem;
}

/* Voting Phase */
.voting-timer {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(139, 190, 178, 0.1);
    border-radius: 10px;
}

.voting-timer.urgent {
    color: #ff4444;
    animation: pulse 1s infinite;
}

.voting-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.vote-card {
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(139, 190, 178, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.vote-card:hover {
    border-color: var(--accent-color);
    background: rgba(139, 190, 178, 0.1);
    transform: translateY(-5px);
}

.vote-card.voted {
    border-color: var(--accent-color);
    background: rgba(139, 190, 178, 0.15);
    box-shadow: 0 0 20px rgba(139, 190, 178, 0.3);
}

.vote-card.leading {
    border-color: gold;
    background: rgba(255, 215, 0, 0.1);
}

.vote-option-content {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.text-choice-display {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 1rem;
    background: rgba(139, 190, 178, 0.1);
    border-radius: 8px;
    max-width: 100%;
}

.vote-count {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.vote-card.leading .vote-count {
    color: gold;
}

.vote-voters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    min-height: 2rem;
}

.voter-tag {
    background: rgba(139, 190, 178, 0.3);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(139, 190, 178, 0.5);
}

.voter-tag.me {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
}

/* Winner Announcement */
.winner-announcement {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(139, 190, 178, 0.2) 0%, rgba(56, 78, 119, 0.2) 100%);
    border-radius: 20px;
    border: 3px solid gold;
    animation: celebrate 1s ease-in;
}

.winner-announcement.hidden {
    display: none;
}

.winner-announcement h2 {
    font-size: 3rem;
    color: gold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.winner-option {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    border: 2px solid gold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.winner-option > div:first-child {
    font-size: 4rem;
    line-height: 1.2;
}

.winner-option > div:last-child {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
    padding: 0.5rem 1.5rem;
    background: rgba(139, 190, 178, 0.3);
    border-radius: 10px;
    border: 2px solid var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(-2deg);
    }
    75% {
        transform: scale(1.05) rotate(2deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-header h1 {
        font-size: 2rem;
    }

    .emoji-container {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    }

    .emoji-option {
        font-size: 2rem;
    }

    .emoji-pagination {
        flex-direction: column;
        gap: 0.5rem;
    }

    .emoji-pagination button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .text-choice-display {
        font-size: 1.2rem;
        padding: 0.75rem;
    }

    .voting-options {
        grid-template-columns: 1fr;
    }

    .vote-option-content {
        font-size: 2.5rem;
        min-height: 3rem;
    }

    .winner-announcement h2 {
        font-size: 2rem;
    }

    .winner-option > div:first-child {
        font-size: 3rem;
    }

    .winner-option > div:last-child {
        font-size: 1.2rem;
        padding: 0.4rem 1rem;
    }
}

