/* Main CSS file for Zomi Dictionary */

/* ==================== Root Variables ==================== */
:root {
    --primary-color: #5D87FF;
    --secondary-color: #49BEFF;
    --success-color: #13DEB9;
    --info-color: #539BFF;
    --warning-color: #FFAE1F;
    --danger-color: #FA896B;
    --light-color: #F6F9FC;
    --dark-color: #1E293B;
    --body-color: #EAEFF4;
    --text-color: #2A3547;
    --text-muted: #74788D;
    
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --header-height: 70px;
    
    --gradient-1: linear-gradient(to right, #5D87FF, #49BEFF);
    --gradient-2: linear-gradient(to right, #13DEB9, #5D87FF);
    
    /* Added for consistency */
    --font-size-small: 0.85rem;
    --font-size-medium: 1rem;
    --font-size-large: 1.2rem;
    --spacing-small: 0.5rem;
    --spacing-medium: 1rem;
    --spacing-large: 1.5rem;
}

/* ==================== Reset & Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%; /* Improved scalability */
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--body-color);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

input, textarea, select {
    font-family: inherit;
    border: none;
    outline: none;
    transition: var(--transition);
}

/* ==================== Layout ==================== */
.container {
    width: 100%;
    max-width: 1200px; /* Added to constrain width on large screens */
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== Header ==================== */
.header {
    height: var(--header-height);
    background: #fff;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    margin-right: 0.75rem;
}

.nav ul {
    display: flex;
    gap: 1.5rem;
}

.nav a {
    font-weight: 500;
    color: var(--text-color);
    padding: 0.5rem 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* ==================== Main Content ==================== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-height)); /* Ensure content fills viewport */
}

/* ==================== Search Section ==================== */
.search-section {
    padding: 3rem 1rem;
    background: var(--gradient-1);
    color: #fff;
    text-align: center;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.language-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    color: white;
    border-radius: calc(var(--border-radius) - 0.25rem);
    font-weight: 500;
}

.lang-btn.active {
    background: white;
    color: var(--primary-color);
}

/* ==================== Search Box ==================== */
.search-box {
    position: relative;
    display: flex;
    margin-bottom: 1.5rem;
    align-items: center; /* Align items vertically */
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    background: #fff;
    color: var(--text-color);
}

.search-box button {
    padding: 0 1.5rem;
    background: var(--dark-color);
    color: #fff;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 1.2rem;
}

.search-box button:hover {
    background: var(--text-color);
}

/* Voice Search Button */
.voice-search-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.voice-search-btn:hover {
    color: var(--primary-color);
}

.voice-search-btn.recording {
    color: var(--danger-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        transform: translateY(-50%) scale(1);
    }
}

.recording-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    z-index: 1000;
    opacity: 0;
    transition: var(--transition); /* Standardized transition */
}

.recording-indicator.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: #fff;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 100;
    display: none;
    animation: fadeIn 0.3s ease; /* Added animation */
}

.search-suggestions.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
}

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

.suggestion-item:hover {
    background: var(--light-color);
}

.suggestion-item .suggestion-word {
    font-weight: 500;
}

.suggestion-item .suggestion-translation {
    color: var(--text-muted);
    font-size: var(--font-size-small);
}

/* ==================== Filter Tags ==================== */
.filter-container {
    margin-top: var(--spacing-large);
}

.filter-tag-container,
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-small);
    margin: var(--spacing-medium) 0;
    padding: 0 var(--spacing-medium);
}

.filter-tag {
    padding: 0.3rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: var(--font-size-small);
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.filter-tag.active {
    background: white;
    color: var(--primary-color);
}

.tag-count {
    margin-left: 0.3rem;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-tag.active .tag-count {
    background: var(--primary-color);
    color: white;
}

/* ==================== Results Section ==================== */
.results-section {
    padding: 2rem 1rem;
}

.results-container {
    max-width: 800px;
    margin: 0 auto;
}

/* ==================== Welcome Message ==================== */
.welcome-message {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.welcome-message img {
    width: 80px;
    margin-bottom: var(--spacing-large);
}

.welcome-message h2 {
    margin-bottom: var(--spacing-medium);
    color: var(--primary-color);
}

.welcome-message p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-small);
}

/* ==================== Word Card ==================== */
.word-card {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: var(--spacing-large);
    overflow: hidden;
}

.word-header {
    padding: var(--spacing-large);
    background: var(--gradient-1);
    color: #fff;
}

.word-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-small);
}

.word-title h2 {
    font-size: 1.8rem;
}

.word-actions {
    display: flex;
    gap: var(--spacing-small);
}

.word-action-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.word-action-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.word-action-btn.active {
    background: var(--light-color);
    color: var(--primary-color);
}

.word-subtitle {
    display: flex;
    align-items: center;
    gap: var(--spacing-medium);
    flex-wrap: wrap;
}

.word-pos {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: var(--font-size-small);
}

.word-body {
    padding: var(--spacing-large);
}

.translation-title {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-small);
    color: var(--primary-color);
}

.translation-text {
    margin-bottom: var(--spacing-large);
    font-size: var(--font-size-medium);
}

.explanation-title {
    font-size: var(--font-size-large);
    margin-bottom: var(--spacing-small);
    color: var(--primary-color);
}

.explanation-text {
    margin-bottom: var(--spacing-large);
    color: var(--text-color);
}

.word-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-small);
    margin-top: var(--spacing-medium);
}

.word-tag {
    padding: 0.3rem 0.75rem;
    background: var(--light-color);
    color: var(--text-color);
    border-radius: 50px;
    font-size: var(--font-size-small);
}

.related-words {
    margin-top: var(--spacing-large);
    border-top: 1px solid var(--light-color);
    padding-top: var(--spacing-large);
}

.related-title {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-medium);
    color: var(--primary-color);
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-height: 200px; /* Prevent overflow on small screens */
    overflow-y: auto;
}

.related-item {
    padding: 0.5rem 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    cursor: pointer;
}

.related-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ==================== No Results ==================== */
.no-results {
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.no-results i {
    font-size: 3rem;
    color: var(--warning-color);
    margin-bottom: var(--spacing-medium);
}

.no-results h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-small);
    color: var(--primary-color);
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-small);
}

/* ==================== Pagination ==================== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: var(--spacing-small);
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.pagination-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:not(.disabled):hover {
    background: var(--light-color);
}

.pagination-btn.active:hover {
    background: var(--primary-color);
}

/* ==================== Word of the Day ==================== */
.word-of-day {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
    color: #fff;
    overflow: hidden;
}

.word-of-day-title {
    padding: 1rem 1.5rem;
    font-size: var(--font-size-large);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.word-of-day-content {
    padding: 1.5rem;
}

.wod-loading {
    text-align: center;
    padding: 1rem 0;
}

.wod-error {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.wod-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.wod-term {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.wod-pronunciation {
    font-size: 0.9rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    display: inline-block;
}

.wod-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

.wod-body {
    margin-bottom: 1.5rem;
}

.wod-translation,
.wod-explanation {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.wod-label {
    font-weight: 500;
    opacity: 0.9;
}

.wod-examples {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
}

.wod-example {
    margin-top: 0.5rem;
}

.wod-example-zomi {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.wod-example-english {
    font-style: italic;
    opacity: 0.9;
}

.wod-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

/* ==================== Toast Notification ==================== */
.toast-message {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    z-index: 1500;
    transition: var(--transition); /* Standardized transition */
    max-width: 300px; /* Added to constrain width */
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
}

/* Removed redundant .toast class */

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: var(--font-size-small);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #4A6CD9;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* ==================== Add to Home Screen Button ==================== */
.add-to-home-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    font-weight: 500;
}

.add-to-home-btn:hover {
    background: #11BF9E;
}

/* ==================== Page Header ==================== */
.page-header {
    padding: 2rem 1rem;
    background: var(--gradient-1);
    color: white;
    text-align: center;
}

.page-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.9;
}

/* ==================== Content Section ==================== */
.content-section {
    padding: 2rem 1rem;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

/* ==================== Forms ==================== */
.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-tab {
    padding: 0.5rem 1rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
    font-weight: 500;
}

.form-tab.active {
    background: var(--primary-color);
    color: white;
}

.form-tab-content {
    display: none;
}

.form-tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-color);
    border-radius: var(--border-radius);
    background: var(--light-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    background: white;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-divider {
    height: 1px;
    background: var(--light-color);
    margin: 2rem 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.tag-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.suggested-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--light-color);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.suggested-tag:hover {
    background: var(--primary-color);
    color: white;
}

.search-box .search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--box-shadow);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.word-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--light-color);
    text-align: left;
}

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

.word-item:hover {
    background: var(--light-color);
}

.word-item.selected {
    background: var(--light-color);
}

.word-item-main {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.word-item-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== Success/Error Messages ==================== */
.success-message,
.error-message {
    text-align: center;
    padding: 2rem;
}

.success-message i,
.error-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.success-message i {
    color: var(--success-color);
}

.error-message i {
    color: var(--danger-color);
}

.success-message h2 {
    color: var(--success-color);
    margin-bottom: 0.75rem;
}

.error-message p {
    color: var(--danger-color);
}

/* ==================== Footer ==================== */
.footer {
    background: var(--dark-color);
    color: white;
    padding-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    padding-right: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-1);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ==================== Favorites Page ==================== */
.favorites-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.favorites-count {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.favorites-actions {
    display: flex;
    gap: 0.5rem;
}

.favorite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
}

.favorite-word {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* ==================== Responsive Design ==================== */
@media (max-width: 992px) {
    .footer-section {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0 1rem;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background: white;
        box-shadow: var(--box-shadow);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .search-box button,
    .voice-search-btn,
    .pagination-btn,
    .word-action-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    .filter-tag {
        margin: 0 6px 6px 0;
        padding: 8px 14px;
    }
    
    .word-card {
        padding: 16px;
    }
    
    .word-title h2 {
        font-size: 1.4rem;
    }
    
    .search-suggestions {
        max-height: 60vh;
    }
    
    .voice-search-btn {
        right: 3.5rem;
    }
    
    .toast-message {
        width: 90%;
        max-width: 300px;
    }
    
    .recording-indicator {
        width: 80%;
        max-width: 250px;
        text-align: center;
    }
    
    .social-icons a {
        width: 48px; /* Increased for better touch targets */
        height: 48px;
        font-size: 1.4rem;
    }
    
    @keyframes pulse {
        0% {
            transform: translateY(-50%) scale(1);
        }
        50% {
            transform: translateY(-50%) scale(1.1);
        }
        100% {
            transform: translateY(-50%) scale(1);
        }
    }
}

/* High contrast mode for accessibility */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0066cc;
        --text-color: #000;
        --body-color: #fff;
    }
    
    .word-card {
        border: 2px solid var(--primary-color);
    }
    
    .word-action-btn {
        border: 1px solid var(--primary-color);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}