/* Economy Helper - Shared Styles */

/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ==========================================================================
   Dictionary - Term Cards
   ========================================================================== */

.term-card {
    transition: all 0.2s ease;
}

.term-card:hover {
    transform: translateY(-2px);
}

.term-card:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Personality Test - Answer Buttons
   ========================================================================== */

.answer-btn {
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.answer-btn:hover {
    transform: scale(1.05);
}

.answer-btn.selected {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* ==========================================================================
   Personality Test - Result Cards
   ========================================================================== */

.result-card {
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-4px);
}

.progress-ring {
    transition: stroke-dashoffset 0.3s ease;
}

/* ==========================================================================
   Mobile Optimizations (max-width: 640px)
   ========================================================================== */

@media (max-width: 640px) {
    .alphabet-btn {
        min-width: 36px;
        min-height: 36px;
    }

    .answer-btn {
        min-width: 40px;
        min-height: 40px;
    }

    .answer-btn:hover {
        transform: none;
    }

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

    .answer-btn.selected {
        transform: scale(1.05);
    }

    .term-card:hover,
    .result-card:hover {
        transform: none;
    }

    .term-card:active {
        transform: scale(0.98);
    }

    body {
        -webkit-text-size-adjust: 100%;
    }

    html, body {
        overflow-x: hidden;
    }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
    .answer-btn:hover {
        transform: none;
    }

    .term-card:hover {
        transform: none;
    }

    .result-card:hover {
        transform: none;
    }
}
