/**
 * Juhhe User Cards CSS
 * 
 * Clean, modern card design with responsive grid layout
 * Grid: 6 cols (wide), 5 (desktop), 3 (laptop), 2 (tablet), 1 (mobile)
 */

/* Main container */
.juhhe-user-cards {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Filters */
.juhhe-filters {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.juhhe-search-filter {
    flex: 1;
    min-width: 250px;
}

.juhhe-plan-filter {
    flex: 1;
    min-width: 200px;
}

.juhhe-tevekenyseg-filter {
    flex: 1;
    min-width: 200px;
}

.juhhe-filter-actions {
    flex-shrink: 0;
}

.juhhe-filter-label {
    display: block;
    font-weight: 600;
    color: #0D3F32;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.juhhe-search-input {
    width: 100%;
    padding: 0.75rem 1rem !important;
    border: 1px solid rgba(0,0,0,.2) !important;
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    background: #ffffff !important;
}

.juhhe-search-input:focus {
    outline: none;
    border-color: #0D3F32;
    box-shadow: 0 0 0 3px rgba(13, 63, 50, 0.1);
}

.juhhe-plan-filter fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.juhhe-plan-filter legend {
    padding: 0;
    margin-bottom: 0.5rem;
}

.juhhe-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    color: #0D3F32;
    font-weight: 500;
}

.juhhe-radio-label input[type="radio"] {
    margin: 0;
    accent-color: #0D3F32;
}

.juhhe-tevekenyseg-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 8px;
    font-size: 0.875rem;
    background: #ffffff;
    color: #0D3F32;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.juhhe-tevekenyseg-select:focus {
    outline: none;
    border-color: #0D3F32;
    box-shadow: 0 0 0 3px rgba(13, 63, 50, 0.1);
}

.juhhe-clear-filters {
    background-color: #F8D7DA !important;
    color: #721C24 !important;
    transition: all 0.3s !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0px !important;
    border-style: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}

.juhhe-clear-filters:hover {
    background-color: #f1c2c7;
    transform: translateY(-1px);
}

/* Loading and error states */
.juhhe-loading {
    text-align: center;
    padding: 1rem;
    color: #6b7280;
    font-style: italic;
}

.juhhe-loading-state {
    opacity: 0.6;
    pointer-events: none;
}

.juhhe-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.juhhe-results-counter {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Group container */
.juhhe-user-cards__group {
    margin-bottom: 3rem;
}

.juhhe-user-cards__group:last-child {
    margin-bottom: 0;
}

/* Group title */
.juhhe-user-cards__group-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #1a1a1a;
    border-bottom: 2px solid #22c55e;
    padding-bottom: 0.5rem;
}

/* Results info */
.juhhe-user-cards__results-info {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Responsive Cards grid - 6/5/3/2/1 columns */
.juhhe-user-cards__grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
    
    /* Mobile: 1 column */
    grid-template-columns: 1fr;
}

/* Tablet: 2 columns (768px+) */
@media (min-width: 768px) {
    .juhhe-user-cards__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Laptop: 3 columns (1024px+) */
@media (min-width: 1024px) {
    .juhhe-user-cards__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: 5 columns (1280px+) */
@media (min-width: 1280px) {
    .juhhe-user-cards__grid {
        grid-template-columns: repeat(4, 1fr);
        /*grid-template-columns: repeat(5, 1fr);*/
    }
}

/* Wide screen: 6 columns (1536px+) */
@media (min-width: 1536px) {
    .juhhe-user-cards__grid {
        grid-template-columns: repeat(5, 1fr);
        /*grid-template-columns: repeat(6, 1fr);*/
    }
}

/* Individual card - clean modern design */
.juhhe-card {
    background: #ffffff !important;
    border-radius: 16px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,.1) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Avatar - square aspect ratio like in the image */
.juhhe-card__avatar {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    /*background: #f9fafb;*/
    background: #ffffff;
    position: relative;
    border-top: 0px !important;
    border-left: 0px !important;
    border-right: 0px !important;
    border-bottom: 1px solid rgba(197,197,197,0.5) !important;
    border-style: inset !important;
}

.juhhe-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card content area */
.juhhe-card__content {
    padding: 1.25rem 0.95rem 3.75rem 0.95rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Name */
.juhhe-card__name {
    font-size: 1.125rem !important;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #111827 !important;
    line-height: 1.4 !important;
}

/* Meta container */
.juhhe-card__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Meta items */
.juhhe-card__meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    color: #222222 !important;
}

.juhhe-card__meta-item a {
    color: #222222 !important;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-all;
    font-weight: 400;
}

.juhhe-card__meta-item a:hover {
    color: #0D3F32 !important;
}

/* Icons */
.juhhe-card__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #0D3F32;
}

/* Logo watermark */
.juhhe-card__logo {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 70px;
    height: auto;
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Empty state */
.juhhe-user-cards__empty {
    text-align: center;
    padding: 3rem 1rem !important;
    color: #6b7280 !important;
    font-size: 1rem !important;
    background: #f9fafb !important;
    border-radius: 12px !important;
    border: 2px dashed #d1d5db !important;
    grid-column: 1 / -1 !important;
}

/* Pagination */
.juhhe-user-cards__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.juhhe-pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    transition: all 0.2s ease;
}

.juhhe-pagination__link:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #1f2937;
}

.juhhe-pagination__current {
    background: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
}

.juhhe-pagination__current:hover {
    background: #16a34a;
    border-color: #16a34a;
}

/* Error state */
.juhhe-user-cards-error {
    padding: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .juhhe-user-cards__grid {
        gap: 1rem;
    }
    
    .juhhe-card__content {
        padding: 1.25rem 1.0rem 3.0rem 1.0rem;
    }
    
    .juhhe-user-cards__group-title {
        font-size: 1.5rem;
    }
    
    .juhhe-pagination__link {
        min-width: 2rem;
        height: 2rem;
        padding: 0 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Filter adjustments for mobile */
    .juhhe-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .juhhe-search-filter,
    .juhhe-plan-filter,
    .juhhe-tevekenyseg-filter {
        min-width: auto;
    }
    
    .juhhe-radio-label {
        margin-right: 0.5rem;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .juhhe-user-cards {
        margin: 1rem 0;
    }
    
    .juhhe-user-cards__group {
        margin-bottom: 2rem;
    }
    
    .juhhe-card__meta-item {
        font-size: 0.8rem;
    }
    
    .juhhe-card__name {
        font-size: 1rem;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .juhhe-user-cards__group-title {
        color: #f9fafb;
    }
    
    .juhhe-card {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .juhhe-card:hover {
        border-color: #4b5563;
    }
    
    .juhhe-card__name {
        color: #f9fafb;
    }
    
    .juhhe-card__meta-item {
        color: #d1d5db;
    }
    
    .juhhe-card__meta-item a {
        color: #d1d5db;
    }
    
    .juhhe-card__meta-item a:hover {
        color: #0D3F32;
    }
    
    .juhhe-card__icon {
        color: #0D3F32;
    }
    
    .juhhe-card__avatar {
        background: #374151;
    }
    
    .juhhe-user-cards__empty {
        background: #1f2937;
        border-color: #4b5563;
        color: #9ca3af;
    }
    
    .juhhe-pagination__link {
        background: #1f2937;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .juhhe-pagination__link:hover {
        background: #374151;
        border-color: #6b7280;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .juhhe-card {
        border-width: 2px;
    }
    
    .juhhe-card__meta-item a {
        text-decoration: underline;
    }
    
    .juhhe-pagination__link {
        border-width: 2px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .juhhe-card {
        transition: none;
    }
    
    .juhhe-card:hover {
        transform: none;
    }
    
    .juhhe-card__logo,
    .juhhe-card__meta-item a,
    .juhhe-pagination__link {
        transition: none;
    }
}

/* Restricted contact info message */
.juhhe-card__restricted {
    color: #dc2626 !important;
    font-size: 0.75rem !important;
    font-style: italic;
    font-weight: 500;
    line-height: 1.3;
    display: block;
}

@media (prefers-color-scheme: dark) {
    .juhhe-card__restricted {
        color: #dc2626 !important;
    }
}

/* 2026-APR FIXES */
body.page-id-5685 .elementor-element.e-flex.e-con.tag-kereso {
    --content-width: 100% !important;
}

body.page-id-5685 .tag-kereso .e-con-inner {
    margin: 0px !important;
    align-self: center !important;
}

/* layout fixed */
.juhhe-card__meta-contact_details {
    height: 43px !important;
}

.juhhe-card__meta-item.email a {
    white-space: nowrap !important;
}

.juhhe-card__meta-item.hely {
    margin-top: 12px !important;
}

.juhhe-card__meta-item.szakterulet {
    margin-top: 8px !important;
}

.juhhe-card__meta-item.szakterulet .juhhe-card__icon {
    align-self: start !important;
}

.juhhe-card__meta-item.email:hover svg,
.juhhe-card__meta-item.tel:hover svg {
    fill: #027F5D !important;
}

.juhhe-card__meta-item.email:hover a,
.juhhe-card__meta-item.tel:hover a {
    color: #027F5D !important; 
}

.juhhe-card__avatar img {
    object-position: top center !important;
}

/* responsive fixes */
@media (min-width: 1280px) and (max-width: 1535px) {
    .juhhe-user-cards__grid {
        gap: 1.2rem !important;
    }

    .juhhe-card__content {
        padding: 1.25rem 0.75rem 3.25rem 0.75rem !important;
    }

    .juhhe-card__name {
        height: 52px !important;
    }

    .juhhe-card__meta-item {
        font-size: 13px !important;
    }
}

@media (min-width: 1536px) {
    .juhhe-user-cards__grid {
        gap: 1.35rem !important;
    }

    .juhhe-card__content {
        padding: 1.25rem 0.5rem 3.5rem 0.5rem !important;
    }

    .juhhe-card__name {
        height: 65px !important;
    }

    .juhhe-card__meta-item {
        font-size: 13px !important;
    }
}