﻿/* MetalWordle Styles */
/*.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.metalwordle-container {
    background-color: #1a1a1a;
    border: 1px solid #444;
}*/

/* Game Board Styles */
/*.game-board {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.game-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.game-tile {
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 50px;
    max-height: 50px;
    border: 2px solid #3a3a3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background-color: #121213;
    transition: all 0.3s ease;
}*/

    /* Tile States */
    /*.game-tile.filled {
        border-color: #565758;
        animation: pop 0.1s ease;
    }

    .game-tile.correct {
        background-color: #538d4e;
        border-color: #538d4e;
    }

    .game-tile.present {
        background-color: #b59f3b;
        border-color: #b59f3b;
    }

    .game-tile.absent {
        background-color: #3a3a3c;
        border-color: #3a3a3c;
    }*/

/* Animations */
/*@keyframes pop {
    0% {
        transform: scale(0.8);
    }

    40% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes flip {
    0% {
        transform: rotateX(0);
    }

    50% {
        transform: rotateX(90deg);
    }

    100% {
        transform: rotateX(0);
    }
}
.keyboard-container {
    margin-top: 20px;
}

.keyboard-key {
    min-width: 30px;
    height: 50px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.keyboard-key-wide {
    min-width: 50px;
}

.keyboard-key:hover {
    opacity: 0.8;
}

.keyboard-key:active {
    transform: scale(0.95);
}*/

/* Stats */
/*.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #f8f9fa;
}

.stat-label {
    font-size: 0.8rem;
    color: #adb5bd;
}

.distribution-bar {
    height: 20px;
    background-color: #3a3a3c;
    margin-bottom: 5px;
    position: relative;
    text-align: right;
    padding-right: 5px;
    color: white;
    font-size: 0.8rem;
    line-height: 20px;
}

.distribution-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: #538d4e;
    z-index: 1;
}

.distribution-bar-text {
    position: relative;
    z-index: 2;
}*/

/* Responsive adjustments */
/*@media (max-width: 576px) {
    .game-tile {
        font-size: 1.5rem;
    }

    .keyboard-key {
        height: 40px;
        min-width: 25px;
        font-size: 0.9rem;
    }

    .keyboard-key-wide {
        min-width: 40px;
    }
}*/

/* Dark theme adjustments */
/*.modal-content.bg-dark {
    background-color: #1a1a1a !important;
    border: 1px solid #444;
}

.border-secondary {
    border-color: #444 !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}*/

/* MetalWordle Styles */
.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

.metalwordle-container {
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
}

/* Game Board Styles */
.game-board {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.game-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.game-tile {
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 62px;
    max-height: 62px;
    border: 2px solid #3a3a3c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    background-color: #121213;
    transition: all 0.3s ease;
}

    /* Tile States */
    .game-tile.filled {
        border-color: #565758;
        animation: pop 0.1s ease;
    }

    .game-tile.correct {
        background-color: #538d4e;
        border-color: #538d4e;
    }

    .game-tile.present {
        background-color: #b59f3b;
        border-color: #b59f3b;
    }

    .game-tile.absent {
        background-color: #3a3a3c;
        border-color: #3a3a3c;
    }

/* Animations */
@keyframes pop {
    0% {
        transform: scale(0.8);
    }

    40% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes flip {
    0% {
        transform: rotateX(0);
    }

    50% {
        transform: rotateX(90deg);
    }

    100% {
        transform: rotateX(0);
    }
}

/* Keyboard Styles */
.keyboard-container {
    margin-top: 20px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.keyboard-key {
    min-width: 30px;
    height: 58px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.keyboard-key-wide {
    min-width: 50px;
    font-size: 0.8rem;
}

/* Modal Styles */
.modal-content {
    border: 1px solid #444;
}

.modal-header {
    border-bottom: 1px solid #444;
}

.modal-footer {
    border-top: 1px solid #444;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Stats Modal Styles */
.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.guess-distribution {
    width: 100%;
    margin-top: 20px;
}

.distribution-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.distribution-label {
    width: 30px;
    text-align: right;
    padding-right: 10px;
    font-weight: bold;
}

.distribution-bar-container {
    flex-grow: 1;
    height: 24px;
    background-color: #3a3a3c;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.distribution-bar {
    height: 100%;
    background-color: #538d4e;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 0.8rem;
    color: white;
}

/* Settings Modal Styles */
.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #444;
}

    .setting-item:last-child {
        border-bottom: none;
    }

.setting-label {
    font-size: 1rem;
    margin-right: 15px;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.toast-body {
    font-weight: bold;
}
/* Challenge Button Styles */
#challenge-btn {
    background-color: #6c757d;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

    #challenge-btn:hover {
        background-color: #5a6268;
    }

/* Challenge Modal Styles */
.social-share-buttons {
    gap: 10px;
}

.share-btn {
    flex: 1;
    white-space: nowrap;
    padding: 8px 12px;
}

    .share-btn i {
        margin-right: 5px;
    }

.score-display {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .game-tile {
        font-size: 1.8rem;
        max-width: 50px;
        max-height: 50px;
    }

    .keyboard-key {
        height: 50px;
        min-width: 25px;
        font-size: 0.9rem;
        margin: 0 2px;
    }

    .keyboard-key-wide {
        min-width: 40px;
        font-size: 0.7rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Dark Theme Overrides */
.bg-dark {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.text-white {
    color: #ffffff !important;
}

.border-secondary {
    border-color: #444 !important;
}

.bg-success {
    background-color: #538d4e !important;
}

.bg-warning {
    background-color: #b59f3b !important;
    color: #000000 !important;
}

.bg-secondary {
    background-color: #3a3a3c !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}