/* ==========================================
   METIN2 WORD GAME - PREMIUM STYLES
   ========================================== */

.word-game {
    padding: 30px 0;
    min-height: 80vh;
}

/* Game Header */
.game-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 16px;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.game-title {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.game-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    font-weight: 600;
}

/* Game Layout */
.game-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: #d4af37;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stat-label i {
    color: #d4af37;
    font-size: 14px;
}

.stat-value {
    font-size: 28px;
    font-weight: 900;
    color: #d4af37;
    font-family: 'Orbitron', sans-serif;
}

.stat-value.lives {
    font-size: 24px;
    letter-spacing: 4px;
}

@media (max-width: 768px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Word Display Area */
.word-display-area {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 2px solid var(--border);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.word-display-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(212, 175, 55, 0.03) 20px,
        rgba(212, 175, 55, 0.03) 40px
    );
    pointer-events: none;
}

.word-hint {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    border-left: 4px solid #d4af37;
}

.word-hint i {
    color: #d4af37;
    margin-right: 10px;
    font-size: 20px;
}

.word-hint span {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.6;
}

.word-blanks {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 30px 0;
    min-height: 80px;
}

.word-blank {
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #1a1a24 0%, #202030 100%);
    border: 2px solid #d4af37;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #d4af37;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.word-blank.revealed {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0f0f14;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    animation: revealLetter 0.5s ease-out;
}

.word-blank.revealed.failed {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #ef4444;
    animation: revealFailedLetter 0.5s ease-out;
}

@keyframes revealFailedLetter {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
    }
    100% {
        transform: scale(1.1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes revealLetter {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
    }
    100% {
        transform: scale(1.1) rotate(0deg);
        opacity: 1;
    }
}

.word-category {
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.word-category i {
    margin-right: 8px;
}

/* Correct Word Reveal */
.correct-word-reveal {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 2px solid #ef4444;
    border-radius: 12px;
    text-align: center;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.correct-word-label {
    font-size: 14px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.correct-word-label i {
    font-size: 16px;
}

.correct-word-text {
    font-size: 36px;
    font-weight: 900;
    color: #ef4444;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 12px 0;
    text-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.correct-word-category {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 600;
    margin-top: 8px;
}

/* Keyboard */
.keyboard-container {
    background: var(--bg-card);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.keyboard-row:last-child {
    margin-bottom: 0;
}

.key-btn {
    min-width: 45px;
    height: 50px;
    background: linear-gradient(135deg, #1a1a24 0%, #202030 100%);
    border: 2px solid #2a2a3a;
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
}

.key-btn:hover:not(.guessed) {
    background: linear-gradient(135deg, #2a2a3a 0%, #35354a 100%);
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.key-btn.guessed {
    background: #2a2a3a;
    border-color: #2a2a3a;
    color: #70708a;
    cursor: not-allowed;
    opacity: 0.5;
}

.key-btn.correct {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
}

.key-btn.wrong {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: white;
}

/* Game Controls */
.game-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.control-btn {
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
}

.hint-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
}

.hint-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.skip-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    color: white;
}

.skip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: white;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

.hint-cost,
.skip-cost {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 600;
}

/* Feedback Overlay */
.feedback-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none;
    pointer-events: none;
}

.feedback-text {
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: feedbackPop 0.5s ease-out;
    font-family: 'Orbitron', sans-serif;
}

@keyframes feedbackPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.feedback-overlay.success .feedback-text {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 2px solid #10b981;
}

.feedback-overlay.error .feedback-text {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: 2px solid #ef4444;
}

.feedback-overlay.warning .feedback-text {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: 2px solid #f59e0b;
}

.feedback-overlay.info .feedback-text {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: 2px solid #3b82f6;
}

/* Sidebar Panels */
.game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-panel,
.stats-panel,
.history-panel,
.achievements-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.panel-title {
    font-size: 16px;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 12px;
}

.panel-title i {
    font-size: 18px;
}

.word-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
}

.info-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
}

.info-value {
    font-size: 16px;
    color: #d4af37;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
}

.stat-row .stat-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
}

.stat-row .stat-value {
    font-size: 16px;
    color: #d4af37;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-gray);
}

.history-empty i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
    display: block;
}

.history-item {
    padding: 12px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #d4af37;
}

.history-word {
    font-size: 16px;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 6px;
    font-family: 'Orbitron', sans-serif;
}

.history-details {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
}

.history-category {
    color: var(--text-gray);
    font-weight: 600;
}

.history-score {
    color: #10b981;
    font-weight: 700;
}

.history-yang {
    color: #f4d03f;
    font-weight: 700;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.achievement-item.unlocked {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

.achievement-item.locked {
    opacity: 0.5;
}

.achievement-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.achievement-desc {
    font-size: 12px;
    color: var(--text-gray);
}

.achievement-check {
    color: #10b981;
    font-size: 18px;
}

.achievement-lock {
    color: var(--text-gray);
    font-size: 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #1a1a24 0%, #202030 100%);
    border: 2px solid #d4af37;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    animation: modalPop 0.4s ease;
}

@keyframes modalPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header i {
    font-size: 48px;
    color: #d4af37;
    margin-bottom: 12px;
    display: block;
}

.modal-header h2 {
    font-size: 32px;
    font-weight: 900;
    color: #d4af37;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-body {
    margin-bottom: 24px;
}

.final-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.final-stat-item {
    padding: 16px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.final-stat-label {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.final-stat-value {
    font-size: 24px;
    font-weight: 900;
    color: #d4af37;
    font-family: 'Orbitron', sans-serif;
}

.high-score-text {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 700;
    margin-top: 16px;
}

.high-score-text i {
    color: #d4af37;
    margin-right: 8px;
}

.high-score-text span {
    color: #d4af37;
    font-size: 20px;
    font-weight: 900;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    border-color: #d4af37;
    color: #0f0f14;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.modal-btn.secondary {
    background: #2a2a3a;
    border-color: #2a2a3a;
    color: var(--text-dark);
}

.modal-btn.secondary:hover {
    background: #35354a;
    border-color: #d4af37;
    color: #d4af37;
}

/* Responsive - Mobil Optimizasyon */
@media (max-width: 768px) {
    .word-game {
        padding: 15px 0;
        min-height: auto;
    }
    
    .game-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .game-title {
        font-size: 22px;
        letter-spacing: 1px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .game-title i {
        font-size: 18px;
    }
    
    .game-subtitle {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Game Layout - Tek sütun */
    .game-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    /* Stats Bar - 2x2 Grid */
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-value.lives {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    /* Word Display Area */
    .word-display-area {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .word-hint {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .word-hint i {
        font-size: 16px;
        margin-right: 8px;
    }
    
    .word-hint span {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .word-blanks {
        gap: 8px;
        margin: 20px 0;
        min-height: 60px;
    }
    
    .word-blank {
        width: 35px;
        height: 45px;
        font-size: 20px;
        border-width: 2px;
    }
    
    .word-category {
        margin-top: 15px;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    /* Correct Word Reveal */
    .correct-word-reveal {
        margin-top: 20px;
        padding: 15px;
    }
    
    .correct-word-label {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .correct-word-text {
        font-size: 24px;
        letter-spacing: 1px;
        margin: 10px 0;
    }
    
    .correct-word-category {
        font-size: 12px;
        margin-top: 6px;
    }
    
    /* Keyboard */
    .keyboard-container {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .keyboard-row {
        gap: 6px;
        margin-bottom: 6px;
    }
    
    .key-btn {
        min-width: 32px;
        height: 44px;
        font-size: 13px;
        border-width: 2px;
        flex: 1;
        max-width: 50px;
    }
    
    /* Game Controls */
    .game-controls {
        gap: 10px;
        flex-direction: column;
    }
    
    .control-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 13px;
        justify-content: center;
    }
    
    .hint-cost,
    .skip-cost {
        font-size: 10px;
    }
    
    /* Sidebar - Mobilde gizle veya altına taşı */
    .game-sidebar {
        order: 2;
        gap: 15px;
    }
    
    .info-panel,
    .stats-panel,
    .history-panel,
    .achievements-panel {
        padding: 15px;
    }
    
    .panel-title {
        font-size: 14px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .info-item,
    .stat-row {
        padding: 8px;
    }
    
    .info-label,
    .stat-row .stat-label {
        font-size: 12px;
    }
    
    .info-value,
    .stat-row .stat-value {
        font-size: 14px;
    }
    
    .history-list {
        max-height: 200px;
    }
    
    .history-item {
        padding: 10px;
        margin-bottom: 6px;
    }
    
    .history-word {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .history-details {
        gap: 8px;
        font-size: 11px;
    }
    
    .achievement-item {
        padding: 10px;
        gap: 10px;
    }
    
    .achievement-icon {
        font-size: 20px;
        width: 36px;
        height: 36px;
    }
    
    .achievement-name {
        font-size: 13px;
    }
    
    .achievement-desc {
        font-size: 11px;
    }
    
    /* Modal */
    .modal {
        padding: 15px;
    }
    
    .modal-content {
        padding: 20px 15px;
        max-width: 95%;
        width: 100%;
    }
    
    .modal-header {
        margin-bottom: 20px;
    }
    
    .modal-header i {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .modal-header h2 {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .modal-body {
        margin-bottom: 20px;
    }
    
    .final-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 15px;
    }
    
    .final-stat-item {
        padding: 12px;
    }
    
    .final-stat-label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .final-stat-value {
        font-size: 20px;
    }
    
    .high-score-text {
        font-size: 14px;
        margin-top: 12px;
    }
    
    .high-score-text span {
        font-size: 18px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 13px;
        justify-content: center;
    }
    
    /* Feedback Overlay */
    .feedback-text {
        padding: 15px 25px;
        font-size: 16px;
    }
}

/* Küçük mobil cihazlar için ek optimizasyonlar */
@media (max-width: 480px) {
    .game-title {
        font-size: 18px;
    }
    
    .game-subtitle {
        font-size: 12px;
    }
    
    .stats-bar {
        padding: 12px;
        gap: 8px;
    }
    
    .stat-item {
        padding: 10px 8px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .word-blank {
        width: 30px;
        height: 40px;
        font-size: 18px;
    }
    
    .key-btn {
        min-width: 28px;
        height: 40px;
        font-size: 12px;
        max-width: 45px;
    }
    
    .keyboard-row {
        gap: 4px;
    }
    
    .control-btn {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .modal-content {
        padding: 15px 12px;
    }
    
    .modal-header h2 {
        font-size: 20px;
    }
}

/* Scrollbar Styling */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: #f4d03f;
}

