/* Modal Stilleri */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none; /* Varsayılan olarak gizli */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #1a1a2e;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-actions {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.btn-danger {
    background: #ff1744;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    transition: background 0.3s;
}

.btn-danger:hover {
    background: #d50000;
}

.modal-content--room-join {
    max-width: 420px;
}

.modal-room-msg {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.modal-actions--room-join {
    justify-content: center;
}

.room-join-modal__ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 7rem;
}

.room-join-modal__check {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

.modal-content--create-room {
    max-width: 440px;
    text-align: left;
}

.create-room-modal__title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    text-align: center;
}

.modal-content--create-room .input-group {
    margin-bottom: 1rem;
}

.modal-actions--create-room {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.create-room-modal__hint {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.45;
}

.create-room-modal__code {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: ui-monospace, monospace;
}

.create-room-type__intro {
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.create-room-type__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 400px) {
    .create-room-type__grid {
        grid-template-columns: 1fr;
    }
}

.create-room-type__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.15rem 0.85rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.25));
    color: #fff;
    cursor: pointer;
    font: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.create-room-type__btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 8px 24px rgba(98, 0, 234, 0.35);
}

.create-room-type__btn:focus-visible {
    outline: 2px solid #00e5ff;
    outline-offset: 2px;
}

.create-room-type__icon {
    font-size: 1.75rem;
    line-height: 1;
}

.create-room-type__label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
}

.modal-actions--type-only {
    justify-content: center;
    margin-top: 0.25rem;
}
