/* Magyar-Román Szótár - Frontend Styles */

/* Dictionary Main Page */
.huro-dictionary-page { padding: 40px 0; }
.huro-header { text-align: center; margin-bottom: 40px; }
.huro-header h1 { font-size: 2.5rem; margin-bottom: 10px; color: #2271b1; }
.huro-subtitle { font-size: 1.2rem; color: #666; }
.huro-search-box { max-width: 600px; margin: 0 auto 40px; }
.huro-search-form { display: flex; gap: 10px; }
.huro-search-input { 
    flex: 1; 
    padding: 15px 20px; 
    border: 2px solid #ddd; 
    border-radius: 8px; 
    font-size: 16px;
    transition: border-color 0.3s ease;
}
.huro-search-input:focus { outline: none; border-color: #2271b1; }
.huro-search-button { 
    padding: 15px 30px; 
    background: #2271b1; 
    color: white; 
    border: none; 
    border-radius: 8px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer;
    transition: background 0.3s ease;
}
.huro-search-button:hover { background: #135e96; }

/* Alphabet Navigation */
.huro-alphabet-nav { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    justify-content: center; 
    margin-bottom: 40px; 
    padding: 20px; 
    background: #f8f9fa; 
    border-radius: 8px; 
}
.huro-letter-btn { 
    display: inline-block; 
    padding: 10px 16px; 
    background: white; 
    color: #333; 
    text-decoration: none; 
    border: 2px solid #ddd; 
    border-radius: 6px; 
    font-weight: 600;
    transition: all 0.3s ease;
}
.huro-letter-btn:hover,
.huro-letter-btn.active { 
    background: #2271b1; 
    color: white; 
    border-color: #2271b1; 
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);
}

/* Words Table */
.huro-words-container { 
    background: white; 
    border-radius: 8px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    overflow-x: auto;
overflow-y: hidden; 
}
.huro-words-table { width: 100%; border-collapse: collapse; }
.huro-words-table thead { background: #2271b1; color: white; }
.huro-words-table th { padding: 15px 20px; text-align: left; font-weight: 600; }
.huro-words-table tbody tr { 
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}
.huro-words-table tbody tr:hover { background: #f8f9fa; }
.huro-words-table td { padding: 15px 20px; }
.huro-word-hu strong { color: #2271b1; font-size: 1.1rem; }

/* Clickable Word Links */
.huro-word-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.huro-word-row:hover {
    background-color: #f8f9fa !important;
    transform: translateX(2px);
}

.huro-word-link-main {
    color: inherit;
    text-decoration: none;
    display: block;
    width: 100%;
    transition: color 0.2s ease;
    cursor: pointer;
}

.huro-word-hu .huro-word-link-main {
    color: #2271b1;
}

.huro-word-hu .huro-word-link-main:hover strong {
    color: #135e96;
    text-decoration: underline;
}

.huro-word-ro .huro-word-link-main {
    color: #495057;
}

.huro-word-ro .huro-word-link-main:hover {
    color: #2271b1;
}
.huro-view-link { 
    color: #2271b1; 
    text-decoration: none; 
    font-size: 1.5rem; 
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
}
.huro-view-link:hover { color: #135e96; }

/* Pagination & Misc */
.huro-pagination {
    margin-top: 30px;
    text-align: center;
    overflow-x: auto;
    overflow-y: hidden;
}

.huro-pagination ul {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0 1rem;
    margin: 0 auto;
    min-width: max-content;
}

.huro-pagination li {
    list-style: none;
}

.huro-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    border-radius: 999px;
    text-decoration: none;
    color: #1d3fe0;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.huro-pagination .page-numbers.current,
.huro-pagination .page-numbers:hover {
    background: #1d3fe0;
    color: #fff;
}

.huro-pagination .page-numbers.dots {
    background: transparent;
    color: #94a3b8;
    cursor: default;
}

.huro-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}
.huro-stats { text-align: center; margin-top: 30px; padding: 20px; background: #e7f3ff; border-radius: 8px; }

/* ===============================================
   WORD SINGLE PAGE - Clean Minimal Design
   =============================================== */

.huro-word-page {
    background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
    min-height: 70vh;
}

.huro-breadcrumb-nav {
    margin-bottom: 1.5rem;
}

.huro-breadcrumb-nav .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    background: transparent;
    padding: 0;
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #6b7280;
    list-style: none;
}

.huro-breadcrumb-nav .breadcrumb-item {
    list-style: none;
}

.huro-breadcrumb-nav .breadcrumb-item + .breadcrumb-item {
    padding-left: 0.25rem;
}

.huro-breadcrumb-nav .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #c4cadb;
    padding: 0 0.4rem;
    position: static;
}


.huro-breadcrumb-nav .breadcrumb a {
    color: #5964d8;
    text-decoration: none;
}

.huro-breadcrumb-nav .breadcrumb a:hover {
    color: #1d3fe0;
}

.huro-word-card {
    background: #fff;
    border-radius: 28px;
    border: 1px solid #e4e9f7;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.08);
}

.huro-word-head {
    text-align: left;
}

.huro-direction-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(47,111,237,0.16), rgba(116,72,255,0.16));
    color: #1d2b5c;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.huro-word-term {
    margin: 0.5rem 0 0.75rem;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111b2b;
}

.huro-word-context {
    color: #5f6b7a;
    font-size: 1.05rem;
    max-width: 42rem;
    margin-bottom: 2rem;
}

.huro-word-translation {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: #f7f9ff;
    border-radius: 24px;
    border: 1px solid #e1e8ff;
    margin-bottom: 2rem;
}

.huro-term {
    flex: 1;
    text-align: center;
}

.huro-term-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: #7b88a1;
    margin-bottom: 0.35rem;
}

.huro-term-word {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 600;
    margin: 0;
    color: #0f172a;
}

.huro-word-divider {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e1e8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(18, 38, 85, 0.1);
}

.huro-arrow-icon {
    font-size: 1.8rem;
    color: #2f6fed;
}

.huro-word-actions .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.85rem 1.5rem;
}

.huro-word-actions .btn-primary {
    margin-bottom: 0.6rem;
}

@media (min-width: 576px) {
    .huro-word-actions .btn-primary {
        margin-bottom: 0;
    }
}

.huro-note-card {
    background: #fff9f3;
    border: 1px solid #ffe3c8;
    border-radius: 22px;
    padding: 1.5rem;
}

.huro-note-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .huro-word-translation {
        flex-direction: column;
        text-align: center;
    }

    .huro-word-divider {
        transform: rotate(90deg);
    }

    .huro-word-actions {
        flex-direction: column !important;
    }

    .huro-word-card {
        padding: 1.75rem;
    }
}

/* Button Refinements */
.btn {
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* Badge Refinements */
.badge {
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .huro-word-single {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .huro-main-word {
        font-size: 2rem;
    }
    
    .huro-translation-simple {
        padding: 1.5rem 0;
    }
    
    .huro-translation-simple .row {
        text-align: center;
    }
    
    .huro-translation-simple .text-end,
    .huro-translation-simple .text-start {
        text-align: center !important;
    }
    
    .huro-translation-simple .h3 {
        font-size: 1.5rem;
    }
    
    .huro-arrow-icon {
        font-size: 1.5rem;
        transform: rotate(90deg);
        display: block;
        margin: 0.5rem 0;
    }
    
    .huro-word-card {
        padding: 1.5rem !important;
    }
    
    .huro-related-section {
        padding: 1.5rem !important;
    }
    
    .huro-word-single .breadcrumb {
        font-size: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .huro-main-word {
        font-size: 1.75rem;
    }
    
    .huro-translation-simple .h3 {
        font-size: 1.25rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus states for accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Loading states */
.huro-word-card,
.huro-related-section {
    animation: fadeIn 0.3s ease;
}

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