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

:root {
    --red-primary: #ff3b5c;
    --red-dark: #d63050;
    --red-light: #ff6b85;
    --blue-primary: #3b7dff;
    --blue-dark: #2d63d9;
    --blue-light: #6b9dff;
    --dark-bg: #0f0f1e;
    --dark-card: #1a1a2e;
    --dark-lighter: #25254a;
    --text-light: #ffffff;
    --text-gray: #a0a0b8;
    --success: #00d4aa;
    --warning: #ffa500;
    --danger: #ff3b5c;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #25254a 100%);
    min-height: 100vh;
    color: var(--text-light);
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 59, 92, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 125, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Screens */
.screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Screen */
.login-box {
    background: var(--dark-card);
    padding: 60px 50px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 400px;
}

.room-info-box {
    background: rgba(59, 125, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 3px solid var(--blue-primary);
    text-align: left;
}

.room-info-box p {
    margin: 8px 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.room-info-box strong {
    color: var(--text-light);
    font-weight: 600;
}

.login-box input[type="text"] {
    margin-bottom: 25px;
}

.game-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--red-primary), var(--blue-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(255, 59, 92, 0.3);
}

.subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Lobi Ekranı */
.lobby-box {
    background: var(--dark-card);
    padding: 60px 50px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 400px;
}

.lobby-form {
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 18px 25px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: var(--dark-lighter);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 20px rgba(59, 125, 255, 0.3);
}

input[type="text"]:disabled,
input[type="password"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--dark-bg);
}

.lobby-info {
    margin-top: 30px;
    padding: 15px;
    background: rgba(59, 125, 255, 0.1);
    border-radius: 12px;
    border-left: 3px solid var(--blue-primary);
}

.lobby-info p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
}

/* Buttons */
.btn {
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(59, 125, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 125, 255, 0.6);
}

.btn-red {
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(255, 59, 92, 0.4);
}

.btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 59, 92, 0.6);
}

.btn-blue {
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(59, 125, 255, 0.4);
}

.btn-blue:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(59, 125, 255, 0.6);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #00b894);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
    flex: 1;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #ff8c00);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.4);
    flex: 1;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--red-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(255, 59, 92, 0.4);
    flex: 1;
}

.btn-large {
    padding: 20px 50px;
    font-size: 1.2rem;
    margin-top: 30px;
}

/* Team Selection */
.team-selection {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.team-selection h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.info-text {
    color: var(--text-gray);
    margin-bottom: 40px;
}

.teams-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.team-box {
    background: var(--dark-card);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.team-box:hover {
    transform: translateY(-5px);
}

.red-team {
    border-color: rgba(255, 59, 92, 0.3);
    box-shadow: 0 10px 30px rgba(255, 59, 92, 0.2);
}

.blue-team {
    border-color: rgba(59, 125, 255, 0.3);
    box-shadow: 0 10px 30px rgba(59, 125, 255, 0.2);
}

.team-box h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.team-players {
    min-height: 100px;
    margin-bottom: 20px;
}

.player-tag {
    display: inline-block;
    padding: 8px 16px;
    margin: 5px;
    background: var(--dark-lighter);
    border-radius: 20px;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.waiting-players {
    background: var(--dark-card);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.waiting-players h4 {
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* Game Screen */
#gameScreen.active {
    display: block;
}

.game-header {
    margin-bottom: 40px;
}

.score-board {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark-card);
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
}

.red-score .score-value {
    color: var(--red-primary);
    text-shadow: 0 0 20px rgba(255, 59, 92, 0.5);
}

.blue-score .score-value {
    color: var(--blue-primary);
    text-shadow: 0 0 20px rgba(59, 125, 255, 0.5);
}

.timer-container {
    position: relative;
}

.timer {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--red-primary), var(--blue-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.game-content {
    max-width: 700px;
    margin: 0 auto;
}

.turn-info {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--dark-card);
    border-radius: 15px;
    font-weight: 600;
}

.word-card,
.taboo-card {
    background: rgba(26, 26, 46, 0.8);
    padding: 0;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 59, 92, 0.5);
    overflow: hidden;
    min-height: 420px;
    backdrop-filter: blur(20px);
}

.taboo-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
}

/* Yasaklı kelimeler bölümü - üst kısım */
.forbidden-section {
    background: linear-gradient(180deg, rgba(255, 59, 92, 0.25) 0%, rgba(255, 59, 92, 0.15) 100%);
    padding: 30px 25px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    border-bottom: 2px solid rgba(255, 59, 92, 0.3);
}

.forbidden-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.forbidden-word {
    padding: 10px 30px;
    background: rgba(255, 59, 92, 0.2);
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--red-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 59, 92, 0.4);
    backdrop-filter: blur(5px);
    min-width: 150px;
    text-align: center;
    transition: transform 0.2s ease;
}

.forbidden-word:hover {
    transform: scale(1.05);
    background: rgba(255, 59, 92, 0.3);
}

/* Ana kelime bölümü - alt kısım */
.main-word-section {
    background: rgba(15, 15, 30, 0.9);
    padding: 25px 30px;
    border-top: 2px solid rgba(255, 59, 92, 0.3);
}

.main-word {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--red-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 59, 92, 0.5);
}

/* Takım arkadaşı için gizli kelime stili */
.taboo-card.teammate-view .forbidden-section {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark-bg) 100%);
}

.taboo-card.teammate-view .forbidden-word {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
}

.taboo-card.teammate-view .main-word {
    color: var(--text-gray);
    font-size: 2.5rem;
}

.game-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.game-controls .btn {
    font-size: 1.1rem;
    padding: 20px 30px;
    white-space: nowrap;
}

.spectator-mode {
    text-align: center;
    padding: 60px 20px;
    background: var(--dark-card);
    border-radius: 20px;
    font-size: 1.5rem;
    color: var(--text-gray);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* End Screen */
.end-box {
    background: var(--dark-card);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    min-width: 500px;
}

.end-box h1 {
    font-size: 3rem;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--red-primary), var(--blue-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-scores {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.final-score {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    background: var(--dark-lighter);
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: 600;
}

.final-score.red {
    border-left: 5px solid var(--red-primary);
}

.final-score.blue {
    border-left: 5px solid var(--blue-primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--dark-card);
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 400px;
    max-width: 500px;
    animation: slideDown 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.modal-subtitle {
    color: var(--text-gray);
    font-size: 1rem;
    margin-bottom: 25px;
}

.modal-content input[type="password"] {
    width: 100%;
    padding: 18px 25px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: var(--dark-lighter);
    color: var(--text-light);
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.modal-content input[type="password"]:focus {
    outline: none;
    border-color: var(--blue-primary);
    box-shadow: 0 0 20px rgba(59, 125, 255, 0.3);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-secondary {
    background: var(--dark-lighter);
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--dark-bg);
    transform: translateY(-2px);
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px 30px;
    background: var(--dark-card);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    border-left: 5px solid var(--blue-primary);
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    border-left-color: var(--danger);
}

/* Share Section */
.share-section {
    background: var(--dark-card);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.share-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.share-content {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.share-link {
    flex: 1;
    min-width: 250px;
    max-width: 500px;
    width: 100%;
}

.link-input-group {
    display: flex;
    gap: 10px;
}

.link-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: var(--dark-lighter);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
}

.btn-copy {
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 125, 255, 0.4);
}

.btn-copy.copied {
    background: linear-gradient(135deg, var(--success), #00b894);
}

.room-info {
    margin-top: 15px;
    text-align: left;
}

.room-info p {
    margin: 8px 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.room-info strong {
    color: var(--text-light);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .teams-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .team-box {
        padding: 20px;
    }

    .login-box,
    .lobby-box {
        min-width: auto;
        padding: 40px 25px;
        margin: 20px;
    }

    .room-info-box {
        padding: 12px 15px;
        margin-bottom: 25px;
    }

    .room-info-box p {
        font-size: 0.85rem;
    }

    .lobby-form {
        text-align: center;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        text-align: center;
    }

    .game-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .score-board {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }

    .score-value {
        font-size: 2.5rem;
    }

    .timer {
        font-size: 3rem;
    }

    .word-card {
        padding: 30px 20px;
        min-height: 350px;
    }

    .main-word {
        font-size: 2rem;
        min-height: 60px;
        margin-bottom: 30px;
    }

    .forbidden-words {
        min-height: 180px;
    }

    .forbidden-list {
        gap: 10px;
        min-height: 120px;
    }

    .forbidden-word {
        padding: 10px 18px;
        font-size: 0.95rem;
    }

    .game-controls {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .game-controls .btn {
        font-size: 1rem;
        padding: 18px 25px;
        width: 100%;
    }

    .turn-info {
        font-size: 1.1rem;
        padding: 15px;
    }

    .spectator-mode {
        padding: 40px 20px;
        font-size: 1.2rem;
        min-height: 150px;
    }

    .end-box {
        min-width: auto;
        padding: 40px 30px;
        margin: 20px;
    }

    .end-box h1 {
        font-size: 2rem;
    }

    .final-score {
        font-size: 1.2rem;
        padding: 15px 20px;
    }

    .share-content {
        flex-direction: column;
        gap: 20px;
    }

    .share-link {
        width: 100%;
        max-width: none;
    }

    .room-info {
        margin-top: 15px;
        text-align: left;
    }

    .room-info p {
        margin: 8px 0;
        color: var(--text-gray);
    }

    .link-input-group {
        flex-direction: column;
    }

    .btn-copy {
        width: 100%;
    }

    .notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }

    .modal-content {
        min-width: auto;
        padding: 40px 25px;
        margin: 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 2rem;
    }

    .main-word {
        font-size: 1.6rem;
    }

    .word-card {
        padding: 25px 15px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}