/**
 * EthnoGuessr - Shortcuts & Hints Styles
 */

/* ============================================
   KEYBOARD SHORTCUTS DIALOG
   ============================================ */
.shortcuts-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shortcuts-overlay.show {
    opacity: 1;
}

.shortcuts-dialog {
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border: 2px solid #eec566;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: shortcuts-slide 0.4s ease-out;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

@keyframes shortcuts-slide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.shortcuts-header {
    padding: 20px 25px;
    border-bottom: 2px solid #eec566;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shortcuts-header h2 {
    color: #eec566;
    margin: 0;
    font-size: 24px;
}

.shortcuts-close {
    background: none;
    border: none;
    color: #eec566;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

.shortcuts-close:hover {
    transform: scale(1.2) rotate(90deg);
    color: #c0392b;
}

.shortcuts-list {
    padding: 20px 25px;
    overflow-y: auto;
    flex: 1;
}

.shortcuts-list::-webkit-scrollbar {
    width: 8px;
}

.shortcuts-list::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.shortcuts-list::-webkit-scrollbar-thumb {
    background: #eec566;
    border-radius: 4px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-key,
kbd {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    border: 2px solid #eec566;
    border-radius: 6px;
    padding: 6px 12px;
    color: #eec566;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    min-width: 45px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.shortcut-desc {
    color: #fff;
    font-size: 15px;
    flex: 1;
}

.shortcuts-footer {
    padding: 15px 25px;
    border-top: 2px solid #eec566;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcuts-footer-text {
    color: #ccc;
    font-size: 14px;
}

.replay-tutorial-btn {
    padding: 10px 20px;
    background: linear-gradient(145deg, #c0392b, #e74c3c);
    color: #fff;
    border: 2px solid #eec566;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.replay-tutorial-btn:hover {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(238, 197, 102, 0.5);
}

.replay-tutorial-btn:active {
    transform: scale(0.95);
}

/* ============================================
   HINT NOTIFICATION
   ============================================ */
.hint-notification {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    background: linear-gradient(145deg, #1a1a1a, #000000);
    border: 3px solid #eec566;
    border-radius: 12px 12px 0 0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100002;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(238, 197, 102, 0.3);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hint-notification.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hint-icon {
    font-size: 48px;
    flex-shrink: 0;
    animation: hint-glow 2s ease-in-out infinite;
}

@keyframes hint-glow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(238, 197, 102, 0.5));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(238, 197, 102, 0.8));
        transform: scale(1.1);
    }
}

.hint-content {
    flex: 1;
}

.hint-label {
    color: #eec566;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hint-text {
    color: #eec566;
    font-size: 16px;
    line-height: 1.4;
}

.hint-button {
    padding: 10px 16px;
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    color: #eec566;
    border: 2px solid #eec566;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hint-button:hover {
    background: linear-gradient(145deg, #eec566, #d4af37);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(238, 197, 102, 0.5);
}

.hint-button:active {
    transform: scale(0.95);
}

/* ============================================
   EDUCATIONAL INFO DIALOG
   ============================================ */
.info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-overlay.show {
    opacity: 1;
}

.info-dialog {
    background: linear-gradient(145deg, #2c2c2c, #1a1a1a);
    border: 2px solid #eec566;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: info-zoom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

@keyframes info-zoom {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.info-header {
    padding: 20px 25px;
    border-bottom: 2px solid #eec566;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-header h2 {
    color: #eec566;
    margin: 0;
    font-size: 24px;
}

.info-close {
    background: none;
    border: none;
    color: #eec566;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    transition: transform 0.2s ease;
}

.info-close:hover {
    transform: scale(1.2) rotate(90deg);
    color: #c0392b;
}

.info-content {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.info-content::-webkit-scrollbar {
    width: 10px;
}

.info-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 5px;
}

.info-content::-webkit-scrollbar-thumb {
    background: #eec566;
    border-radius: 5px;
}

.info-section {
    margin-bottom: 25px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    color: #eec566;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.info-section p {
    color: #ccc;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.info-section ul {
    color: #ccc;
    font-size: 15px;
    line-height: 1.8;
    margin: 10px 0;
    padding-left: 25px;
}

.info-section li {
    margin-bottom: 8px;
}

.info-footer {
    padding: 15px 25px;
    border-top: 2px solid #eec566;
    text-align: center;
}

.info-footer a {
    color: #eec566;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.info-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ============================================
   HINT BUTTON (Floating)
   ============================================ */
.hint-floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 80px;
    height: 50px;
    background: linear-gradient(145deg, #2c2c2c, #000000);
    border: 2px solid #eec566;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 15px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(238, 197, 102, 0.3);
    transition: all 0.3s ease;
}

.hint-floating-button:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, #eec566, #d4af37);
    box-shadow: 0 6px 20px rgba(238, 197, 102, 0.6);
    animation: hint-pulse 1.5s ease-in-out infinite;
}

@keyframes hint-pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(238, 197, 102, 0.6);
    }
    50% {
        box-shadow: 0 6px 25px rgba(238, 197, 102, 0.9);
    }
}

.hint-btn-icon {
    font-size: 24px;
}

.hint-btn-text {
    color: #eec566;
    font-size: 16px;
    font-weight: bold;
}

.hint-floating-button:hover .hint-btn-text {
    color: #000;
}

.hint-floating-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Help button for menu page */
.help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, #c0392b, #e74c3c);
    border: 2px solid #eec566;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.help-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(238, 197, 102, 0.5);
}

.help-button::before {
    content: '?';
    color: #fff;
    font-size: 28px;
    font-weight: bold;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hint-notification {
        width: 100%;
        max-width: none;
        padding: 15px;
    }

    .hint-notification.show {
        transform: translate(-50%, 0);
    }

    .shortcuts-dialog,
    .info-dialog {
        max-height: 90vh;
    }

    .shortcuts-header,
    .info-header {
        padding: 15px 20px;
    }

    .shortcuts-header h2,
    .info-header h2 {
        font-size: 20px;
    }

    .shortcuts-list,
    .info-content {
        padding: 15px 20px;
    }

    .shortcut-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .shortcuts-footer {
        padding: 10px 15px;
    }

    .replay-tutorial-btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .help-button {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .help-button::before {
        font-size: 24px;
    }

    .hint-floating-button {
        min-width: 70px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        padding: 0 12px;
    }

    .hint-btn-icon {
        font-size: 20px;
    }

    .hint-btn-text {
        font-size: 14px;
    }
}

