/* Eywa Resource Portal - Ultra-Modern Premium Design */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Modern CSS Variables - Premium Design System */
:root {
    /* Primary Colors - Modern Green Gradient */
    --eywa-primary: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    --eywa-primary-solid: #22c55e;
    --eywa-primary-dark: #16a34a;
    --eywa-primary-light: #34d399;

    /* Accent Colors */
    --eywa-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --eywa-accent-solid: #f093fb;
    --eywa-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --eywa-success-solid: #4facfe;
    --eywa-warning: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --eywa-warning-solid: #fcb69f;
    --eywa-danger: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --eywa-danger-solid: #ff9a9e;

    /* Neutral Colors */
    --eywa-white: #ffffff;
    --eywa-gray-50: #fafbfc;
    --eywa-gray-100: #f4f6f8;
    --eywa-gray-200: #e9ecef;
    --eywa-gray-300: #dee2e6;
    --eywa-gray-400: #ced4da;
    --eywa-gray-500: #adb5bd;
    --eywa-gray-600: #6c757d;
    --eywa-gray-700: #495057;
    --eywa-gray-800: #343a40;
    --eywa-gray-900: #212529;

    /* Modern Shadows */
    --eywa-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
    --eywa-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --eywa-shadow-md: 0 8px 25px rgba(0, 0, 0, 0.08), 0 3px 10px rgba(0, 0, 0, 0.05);
    --eywa-shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    --eywa-shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    --eywa-shadow-2xl: 0 35px 60px rgba(0, 0, 0, 0.2), 0 15px 25px rgba(0, 0, 0, 0.15);

    /* Glass Effect */
    --eywa-glass: rgba(255, 255, 255, 0.25);
    --eywa-glass-border: rgba(255, 255, 255, 0.18);

    /* Border Radius */
    --eywa-radius-sm: 0.5rem;
    --eywa-radius: 1rem;
    --eywa-radius-lg: 1.5rem;
    --eywa-radius-xl: 2rem;

    /* Transitions */
    --eywa-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --eywa-transition-fast: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --eywa-transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Typography */
    --eywa-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --eywa-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Modern Reset and Base Styles */
.eywa-resource-portal * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.eywa-resource-portal {
    font-family: var(--eywa-font-body);
    line-height: 1.7;
    color: var(--eywa-gray-800);
    background: linear-gradient(135deg, #fafbfc 0%, #f4f6f8 100%);
    min-height: 100vh;
    position: relative;
}

.eywa-resource-portal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Prime Slider Style Container */
.eywa-resources-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Forest Background Header Section - Matching Projects Page */
.eywa-resources-header {
    margin: 0;
    padding: 120px 2rem 80px 2rem;
    background:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80') center/cover no-repeat;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.eywa-resources-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

.eywa-resources-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    position: relative;
    z-index: 2;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Breadcrumb Navigation */
.eywa-breadcrumb {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.eywa-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.eywa-breadcrumb a:hover {
    color: white;
}

.eywa-breadcrumb-separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Resources Description */
.eywa-resources-description {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

.eywa-resources-description {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

/* Prime Slider Style Filters Section */
.eywa-filters-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    margin: 0 0 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.eywa-filters-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.eywa-filters-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.eywa-filters-icon {
    color: #4a90e2;
    font-size: 1.25rem;
}

.eywa-filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    align-items: end;
    margin: 1rem 0;
}

.eywa-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.eywa-filter-label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.eywa-filter-select,
.eywa-search-input {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #2d3748;
}

.eywa-filter-select:focus,
.eywa-search-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.eywa-search-group {
    flex: 1;
    max-width: 300px;
}

.eywa-search-input {
    width: 100%;
}

.eywa-filter-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.eywa-filter-btn,
.eywa-clear-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.eywa-filter-btn {
    background: #4a90e2;
    color: white;
}

.eywa-filter-btn:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.eywa-clear-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.eywa-clear-btn:hover {
    background: #edf2f7;
    color: #2d3748;
}

/* Clean Layout Toggle */
.eywa-layout-toggle {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 1.5rem 0;
    justify-content: flex-end;
}

.eywa-layout-btn {
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #4a5568;
}

.eywa-layout-btn:hover,
.eywa-layout-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.eywa-layout-btn .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

/* Prime Slider Style Grid System */
.eywa-resources-grid {
    display: grid;
    gap: 28px;
    margin: 0;
    padding: 0 4px;
}

/* Grid Layout - Prime Slider Responsive */
.eywa-layout-grid .eywa-resources-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    align-items: stretch;
}

/* Masonry Layout - Staggered Heights */
.eywa-layout-masonry .eywa-resources-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    grid-auto-rows: max-content;
    align-items: start;
}

/* List Layout - Horizontal Cards */
.eywa-layout-list .eywa-resources-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.eywa-layout-list .eywa-resource-card {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    min-height: 300px;
}

.eywa-layout-list .eywa-resource-image-container {
    flex: 0 0 300px;
    height: auto;
    border-radius: var(--eywa-radius-lg) 0 0 var(--eywa-radius-lg);
}

.eywa-layout-list .eywa-resource-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 0 var(--eywa-radius-lg) var(--eywa-radius-lg) 0;
}

/* User-Centered Resource Cards with Soft Green Shadows */
.eywa-resource-card {
    background: linear-gradient(135deg, #ffffff 0%, #fefffe 50%, #f9fffe 100%) !important;
    border: 1px solid rgba(34, 197, 94, 0.12) !important;
    border-radius: 16px !important;
    box-shadow:
        0 4px 20px rgba(34, 197, 94, 0.08),
        0 2px 8px rgba(34, 197, 94, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
}

.eywa-resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(74, 222, 128, 0.05) 0%,
        rgba(34, 197, 94, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.eywa-resource-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 12px 35px rgba(34, 197, 94, 0.15),
        0 6px 20px rgba(34, 197, 94, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border-color: rgba(34, 197, 94, 0.25);
}

/* Focus state for accessibility */
.eywa-resource-card:focus-within {
    outline: 2px solid rgba(34, 197, 94, 0.5);
    outline-offset: 2px;
    transform: translateY(-4px);
    box-shadow:
        0 8px 25px rgba(34, 197, 94, 0.12),
        0 4px 15px rgba(34, 197, 94, 0.06);
}

/* Active state for better user feedback */
.eywa-resource-card:active {
    transform: translateY(-4px) scale(1.01);
    transition-duration: 0.1s;
}

/* User-Centered Micro-Interactions */
.eywa-resource-card {
    will-change: transform, box-shadow;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .eywa-resource-card,
    .eywa-resource-image,
    .eywa-resource-type-badge {
        transition: none;
        animation: none;
    }

    .eywa-resource-card:hover {
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .eywa-resource-card {
        border: 2px solid #000;
        box-shadow: none;
    }

    .eywa-resource-title a {
        color: #000;
    }

    .eywa-resource-excerpt {
        color: #333;
    }
}

/* ===== ACTUAL CARD TEMPLATE STYLES ===== */
/* These are the classes used in the resource-card.php template */

/* Card Image Container */
.eywa-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.eywa-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
    filter: brightness(1) contrast(1.05) saturate(1.1);
}

.eywa-resource-card:hover .eywa-card-image img {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.1) saturate(1.15);
}

/* Card Placeholder for images */
.eywa-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: #9ca3af;
    font-size: 2rem;
}

.eywa-card-placeholder .dashicons {
    font-size: 3rem;
    width: 3rem;
    height: 3rem;
    opacity: 0.6;
}

/* Category Badge */
.eywa-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
    z-index: 10;
}

/* Card Content Area */
.eywa-card-content {
    padding: 20px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(249, 250, 251, 0.99) 100%) !important;
    border-radius: 0 0 16px 16px !important;
    border-top: 1px solid rgba(34, 197, 94, 0.08) !important;
}

/* Card Title */
.eywa-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0 !important;
    color: #111827 !important;
    letter-spacing: -0.025em;
}

.eywa-card-title a {
    color: #111827 !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.eywa-card-title a:hover {
    color: #16a34a;
}

.eywa-card-title a:focus {
    outline: 2px solid rgba(34, 197, 94, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Card Excerpt */
.eywa-card-excerpt {
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Card Meta */
.eywa-card-meta {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(34, 197, 94, 0.08);
}

.eywa-card-date {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.eywa-card-date::before {
    content: "📅";
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive Design for Cards */
@media (max-width: 768px) {
    .eywa-card-content {
        padding: 16px;
    }

    .eywa-card-title {
        font-size: 1rem;
    }

    .eywa-card-excerpt {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .eywa-card-image {
        height: 180px;
    }
}

/* Accessibility improvements for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .eywa-card-image img {
        transition: none;
    }

    .eywa-resource-card:hover .eywa-card-image img {
        transform: none;
    }
}

.eywa-resource-card:hover::before {
    opacity: 1;
}

.eywa-resource-card.featured {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.eywa-resource-card.featured::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
        #4a90e2 0%,
        #50c878 50%,
        #ff6b6b 100%);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.6;
}

.eywa-resource-card.featured:hover::after {
    opacity: 0.8;
}

/* Prime Slider Style Image Container */
.eywa-resource-image-container {
    position: relative;
    overflow: hidden;
    height: 260px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px 20px 0 0;
}

.eywa-resource-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease-out;
    display: block;
    filter: brightness(1) contrast(1.05) saturate(1.1);
}

.eywa-resource-card:hover .eywa-resource-image {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.1) saturate(1.15);
}

/* Clean Subtle Overlay */
.eywa-resource-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.02) 70%,
        rgba(0, 0, 0, 0.08) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.eywa-resource-card:hover .eywa-resource-image-overlay {
    opacity: 1;
}

/* Placeholder Styles */
.eywa-resource-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg,
        #f1f5f9 0%,
        #e2e8f0 50%,
        #cbd5e1 100%);
}

.eywa-placeholder-icon {
    position: relative;
    z-index: 3;
    font-size: 3rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.eywa-placeholder-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(99, 102, 241, 0.05) 0%,
        rgba(168, 85, 247, 0.05) 50%,
        rgba(236, 72, 153, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eywa-resource-card:hover .eywa-placeholder-icon {
    color: #6366f1;
    transform: scale(1.1);
}

.eywa-resource-card:hover .eywa-placeholder-bg {
    opacity: 1;
}

/* Prime Slider Style Type Badge */
.eywa-resource-type-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.eywa-badge-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

.eywa-resource-card:hover .eywa-resource-type-badge {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.eywa-resource-type-badge.type-publication {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}
.eywa-resource-type-badge.type-video {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}
.eywa-resource-type-badge.type-podcast {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}
.eywa-resource-type-badge.type-report {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}
.eywa-resource-type-badge.type-toolkit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.eywa-resource-type-badge .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
    opacity: 0.9;
}

/* Featured Badge - Luxury Design */
.eywa-resource-featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 15;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eywa-featured-text {
    font-weight: 600;
}

.eywa-resource-card:hover .eywa-resource-featured-badge {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05),
        0 0 20px rgba(251, 191, 36, 0.3);
}

.eywa-resource-featured-badge .dashicons {
    font-size: 1rem;
    width: 1rem;
    height: 1rem;
}

/* Beautiful Resource Placeholder */
.eywa-resource-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #94a3b8;
    font-size: 3rem;
    transition: all 0.3s ease;
    position: relative;
}

.eywa-resource-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eywa-resource-card:hover .eywa-resource-placeholder {
    color: #22c55e;
}

.eywa-resource-card:hover .eywa-resource-placeholder::before {
    opacity: 1;
}

/* User-Centered Card Content */
.eywa-resource-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(249, 250, 251, 0.99) 100%);
    position: relative;
    z-index: 2;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid rgba(34, 197, 94, 0.08);
}

/* Clean Header Section */
.eywa-resource-header {
    margin-bottom: 18px;
}

.eywa-resource-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #111827;
    letter-spacing: -0.025em;
}

.eywa-resource-title a {
    color: #111827;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.eywa-resource-title a:hover {
    color: #16a34a;
}

.eywa-resource-title a:focus {
    outline: 2px solid rgba(34, 197, 94, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

.eywa-resource-excerpt {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* User-Centered Meta Information */
.eywa-resource-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: auto;
}

.eywa-resource-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(34, 197, 94, 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid rgba(34, 197, 94, 0.1);
    font-weight: 500;
}

.eywa-resource-meta-item:hover {
    background: rgba(34, 197, 94, 0.08);
    transform: translateY(-1px);
    border-color: rgba(34, 197, 94, 0.15);
}

.eywa-meta-icon {
    font-size: 12px;
    color: #6b7280;
    opacity: 0.8;
}

.eywa-resource-author {
    font-weight: 600;
    color: #4b5563;
}

.eywa-resource-date {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Resource Type Badge in Content */
.eywa-resource-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.eywa-resource-type .dashicons {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Modern Tag System */
.eywa-resource-taxonomies {
    margin: 20px 0;
}

.eywa-resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eywa-resource-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.eywa-resource-tag:hover {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2);
}

.eywa-tag-category {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.eywa-tag-theme {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.eywa-tag-region {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Category Tags in Archive Widget */
.eywa-category-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.eywa-category-tag:hover {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.2);
}

.eywa-resource-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.eywa-tag-more {
    background: linear-gradient(135deg, #f3f4f6 0%, #f9fafb 100%);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.2);
    cursor: default;
}

.eywa-resource-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.eywa-tag-more:hover {
    transform: none;
    box-shadow: none;
}

/* Prime Slider Style Action Buttons */
.eywa-resource-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
}

.eywa-resource-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.eywa-btn-primary {
    background: #4a90e2;
    color: white;
    flex: 1;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.eywa-btn-primary:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.eywa-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    border: 1px solid rgba(74, 144, 226, 0.2);
    padding: 8px 12px;
    font-size: 0.8rem;
}

.eywa-btn-secondary:hover {
    background: rgba(255, 255, 255, 1);
    color: #2d3748;
    border-color: rgba(74, 144, 226, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.eywa-btn-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.eywa-btn-text {
    font-weight: 600;
    letter-spacing: 0.025em;
}

.eywa-resource-button:hover .eywa-btn-icon {
    transform: scale(1.1);
    opacity: 1;
}

.eywa-btn-primary:hover .eywa-btn-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Pagination */
.eywa-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.eywa-pagination a,
.eywa-pagination span {
    padding: 0.75rem 1rem;
    border: 2px solid var(--eywa-gray-200);
    border-radius: var(--eywa-radius);
    text-decoration: none;
    color: var(--eywa-gray-700);
    font-weight: 500;
    transition: var(--eywa-transition);
    background: var(--eywa-white);
}

.eywa-pagination a:hover {
    background: var(--eywa-primary);
    color: var(--eywa-white);
    border-color: var(--eywa-primary);
    transform: translateY(-1px);
}

.eywa-pagination .current {
    background: var(--eywa-primary);
    color: var(--eywa-white);
    border-color: var(--eywa-primary);
}

/* Load More Button */
.eywa-load-more {
    text-align: center;
    margin-top: 2rem;
}

.eywa-load-more-btn {
    background: var(--eywa-primary);
    color: var(--eywa-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--eywa-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--eywa-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.eywa-load-more-btn:hover {
    background: var(--eywa-primary-dark);
    transform: translateY(-1px);
}

.eywa-load-more-btn:disabled {
    background: var(--eywa-gray-400);
    cursor: not-allowed;
    transform: none;
}

/* Loading States */
.eywa-loading {
    text-align: center;
    padding: 3rem;
    color: var(--eywa-gray-500);
}

.eywa-loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--eywa-gray-200);
    border-top: 3px solid var(--eywa-primary);
    border-radius: 50%;
    animation: eywa-spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes eywa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.eywa-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--eywa-gray-500);
}

.eywa-no-results-icon {
    font-size: 4rem;
    color: var(--eywa-gray-300);
    margin-bottom: 1rem;
}

.eywa-no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--eywa-gray-700);
    margin: 0 0 0.5rem 0;
}

.eywa-no-results-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Modern Single Resource Page */
.eywa-single-resource {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #ffffff;
}

/* Clean Header Section */
.eywa-single-resource-header {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 32px;
    color: #334155;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Header Top Section */
.eywa-header-top {
    padding: 16px 24px 0;
    position: relative;
}

.eywa-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #22c55e;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eywa-featured-badge .dashicons {
    font-size: 14px;
}

/* Header Main Content */
.eywa-header-main {
    padding: 16px 24px;
    position: relative;
}

.eywa-single-resource-title {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #1e293b;
}

.eywa-single-resource-excerpt {
    font-size: 1rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 0;
}

/* Meta Cards Section */
.eywa-single-resource-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 24px 0;
    position: relative;
}

.eywa-meta-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.eywa-meta-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.eywa-meta-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

.eywa-meta-icon .dashicons {
    font-size: 1.2rem;
    color: #64748b;
}

.eywa-meta-content {
    flex: 1;
    min-width: 0;
}

.eywa-meta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 2px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eywa-meta-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    word-wrap: break-word;
}

/* Taxonomies Section */
.eywa-single-resource-taxonomies {
    margin: 20px 24px 24px;
    position: relative;
}

.eywa-taxonomy-group {
    margin-bottom: 16px;
}

.eywa-taxonomy-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eywa-taxonomy-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eywa-taxonomy-term {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.eywa-taxonomy-term:hover {
    background: #e2e8f0;
    color: #334155;
    border-color: #cbd5e1;
}

/* Featured Image */
.eywa-single-resource-image {
    margin: 40px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.eywa-resource-featured-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Section */
.eywa-single-resource-content {
    background: #ffffff;
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 40px 0;
    color: #374151;
}

.eywa-single-resource-content h1,
.eywa-single-resource-content h2,
.eywa-single-resource-content h3,
.eywa-single-resource-content h4,
.eywa-single-resource-content h5,
.eywa-single-resource-content h6 {
    color: #1f2937;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
}

.eywa-single-resource-content h2 {
    font-size: 1.875rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
}

.eywa-single-resource-content h3 {
    font-size: 1.5rem;
}

.eywa-single-resource-content p {
    margin-bottom: 20px;
}

.eywa-single-resource-content ul,
.eywa-single-resource-content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.eywa-single-resource-content li {
    margin-bottom: 8px;
}

.eywa-single-resource-content blockquote {
    background: #f9fafb;
    border-left: 4px solid #3b82f6;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 8px;
    font-style: italic;
}

/* Media Section */
.eywa-single-resource-media {
    margin: 40px 0;
    background: #f9fafb;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #e5e7eb;
}

.eywa-resource-video,
.eywa-resource-audio {
    margin-bottom: 32px;
}

.eywa-resource-video h3,
.eywa-resource-audio h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.eywa-embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.eywa-embed-container iframe,
.eywa-embed-container object,
.eywa-embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Action Buttons */
.eywa-single-resource-actions {
    display: flex;
    gap: 16px;
    margin: 48px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.eywa-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    position: relative;
    overflow: hidden;
}

.eywa-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.eywa-action-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
    color: white;
}

.eywa-action-btn:hover::before {
    left: 100%;
}

/* Document View Button */
.eywa-action-btn.eywa-view-document-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.eywa-action-btn.eywa-view-document-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Video View Button */
.eywa-action-btn.eywa-view-video-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.eywa-action-btn.eywa-view-video-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Download Button */
.eywa-action-btn.eywa-download-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.eywa-action-btn.eywa-download-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

/* External Link Button */
.eywa-action-btn.eywa-external-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.eywa-action-btn.eywa-external-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Share Button */
.eywa-action-btn.eywa-share-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.eywa-action-btn.eywa-share-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.eywa-action-btn .dashicons {
    font-size: 18px;
}

/* Related Resources Section */
.eywa-related-resources {
    margin: 60px 0 40px;
    padding: 40px;
    background: #f9fafb;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.eywa-related-resources h3 {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.eywa-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* Archive Page Layout */
.eywa-resource-archive-page {
    min-height: 100vh;
    background: #f8fafc;
}

.eywa-resources-main {
    padding: 2rem 0 4rem 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .eywa-resources-grid {
        gap: 2rem;
        padding: 0;
    }

    .eywa-layout-grid .eywa-resources-grid,
    .eywa-layout-masonry .eywa-resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 1024px) {
    .eywa-resources-grid {
        gap: 2rem;
    }

    .eywa-layout-grid .eywa-resources-grid,
    .eywa-layout-masonry .eywa-resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .eywa-resources-header {
        margin: 0;
        padding: 80px 1.5rem 60px 1.5rem;
        min-height: 250px;
    }

    .eywa-resources-title {
        font-size: 2.5rem;
    }

    .eywa-breadcrumb {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .eywa-filters-section {
        padding: 1.5rem;
        margin: 0 0 1rem 0;
    }

    .eywa-filters-row {
        grid-template-columns: 1fr;
    }

    .eywa-filter-group,
    .eywa-search-group {
        max-width: none;
    }

    .eywa-layout-toggle {
        justify-content: center;
    }

    .eywa-resources-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
        margin: 0;
    }

    .eywa-layout-grid .eywa-resources-grid,
    .eywa-layout-masonry .eywa-resources-grid {
        grid-template-columns: 1fr;
    }

    /* Single Resource Responsive */
    .eywa-single-resource {
        padding: 20px 16px;
    }

    .eywa-single-resource-header {
        margin-bottom: 24px;
    }

    .eywa-header-top {
        padding: 12px 20px 0;
    }

    .eywa-header-main {
        padding: 12px 20px;
    }

    .eywa-single-resource-title {
        font-size: 1.5rem;
    }

    .eywa-single-resource-meta {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 16px 20px 0;
    }

    .eywa-meta-card {
        padding: 14px;
        gap: 10px;
    }

    .eywa-meta-icon {
        width: 32px;
        height: 32px;
    }

    .eywa-single-resource-taxonomies {
        margin: 16px 20px 20px;
    }

    .eywa-single-resource-content {
        padding: 32px 24px;
    }

    .eywa-single-resource-media {
        padding: 24px;
    }

    .eywa-single-resource-actions {
        flex-direction: column;
        align-items: center;
    }

    .eywa-action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .eywa-related-resources {
        padding: 24px;
        margin: 40px 0;
    }

    .eywa-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .eywa-layout-list .eywa-resource-card {
        flex-direction: column;
    }

    .eywa-layout-list .eywa-resource-image-container {
        flex: none;
        height: 220px;
    }

    .eywa-resource-actions {
        flex-direction: column;
    }

    .eywa-resource-card {
        margin: 0 0.5rem;
    }

    .eywa-resource-content {
        padding: 1.5rem 1.5rem 2rem;
    }

    .eywa-single-resource-title {
        font-size: 2rem;
    }

    .eywa-single-resource-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .eywa-single-resource-actions {
        flex-direction: column;
    }

    .eywa-filter-actions {
        justify-content: stretch;
    }

    .eywa-filter-btn,
    .eywa-clear-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .eywa-resources-container,
    .eywa-single-resource {
        padding: 0 0.75rem;
    }

    .eywa-resources-header {
        margin: 0.5rem 0 1.5rem 0;
        padding: 1.5rem 1rem;
    }

    .eywa-filters-section {
        padding: 1rem;
        margin: 0 0 1.5rem 0;
    }

    .eywa-resource-content {
        padding: 1rem;
    }

    .eywa-resources-title {
        font-size: 1.75rem;
    }

    .eywa-single-resource-title {
        font-size: 1.5rem;
    }

    .eywa-single-resource-header {
        margin: 1.5rem 0;
    }

    .eywa-header-top {
        padding: 12px 16px 0;
    }

    .eywa-header-main {
        padding: 12px 16px;
    }

    .eywa-single-resource-meta {
        margin: 16px 16px 0;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .eywa-meta-card {
        padding: 12px;
        gap: 8px;
    }

    .eywa-meta-icon {
        width: 28px;
        height: 28px;
    }

    .eywa-meta-icon .dashicons {
        font-size: 1rem;
    }

    .eywa-single-resource-taxonomies {
        margin: 16px 16px 16px;
    }

    .eywa-taxonomy-terms {
        gap: 6px;
    }

    .eywa-taxonomy-term {
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .eywa-single-resource-content {
        padding: 2rem;
    }

    .eywa-resource-image-container {
        height: 180px;
    }

    .eywa-layout-list .eywa-resource-image-container {
        height: 180px;
    }
}

/* Modern Modal Styles */
.eywa-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: eywa-modal-fade-in 0.3s ease-out;
}

.eywa-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.eywa-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    position: relative;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.15);
    animation: eywa-modal-slide-up 0.3s ease-out;
    overflow: hidden;
}

.eywa-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.eywa-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.eywa-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.eywa-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Floating Close Button */
.eywa-modal-close-floating {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.eywa-modal-close-floating:hover {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    transform: scale(1.1);
}

.eywa-modal-close-floating .dashicons {
    font-size: 20px;
}

/* Header Close Button */
.eywa-modal-close-header {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.eywa-modal-close-header:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.eywa-modal-body {
    padding: 32px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* Document Modal Specific */
.eywa-document-modal .eywa-modal-content {
    max-width: 1200px;
    height: 90vh;
}

.eywa-document-modal .eywa-modal-body {
    padding: 0;
    height: calc(90vh - 80px);
}

.eywa-document-viewer {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 20px 20px;
}

/* Video Modal Specific */
.eywa-video-modal .eywa-modal-content {
    max-width: 1000px;
}

.eywa-video-modal .eywa-modal-body {
    padding: 0;
}

.eywa-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.eywa-video-container iframe,
.eywa-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Modal Animations */
@keyframes eywa-modal-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes eywa-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Loading State */
.eywa-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: #6b7280;
}

.eywa-modal-loading .eywa-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #22c55e;
    border-radius: 50%;
    animation: eywa-spin 1s linear infinite;
    margin-right: 16px;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .eywa-modal {
        padding: 10px;
    }

    .eywa-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 16px;
    }

    .eywa-modal-header {
        padding: 20px 24px;
    }

    .eywa-modal-title {
        font-size: 1.25rem;
    }

    .eywa-modal-body {
        padding: 24px;
        max-height: calc(95vh - 100px);
    }

    .eywa-document-modal .eywa-modal-content {
        height: 95vh;
    }

    .eywa-document-modal .eywa-modal-body {
        height: calc(95vh - 70px);
    }

    .eywa-video-container {
        border-radius: 0 0 16px 16px;
    }

    /* Mobile floating close button */
    .eywa-modal-close-floating {
        top: 12px;
        right: 12px;
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .eywa-modal-close-floating .dashicons {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .eywa-modal {
        padding: 5px;
    }

    .eywa-modal-content {
        border-radius: 12px;
    }

    .eywa-modal-header {
        padding: 16px 20px;
    }

    .eywa-modal-title {
        font-size: 1.125rem;
    }

    .eywa-modal-body {
        padding: 20px;
    }

    .eywa-video-container {
        border-radius: 0 0 12px 12px;
    }

    /* Small mobile floating close button */
    .eywa-modal-close-floating {
        top: 8px;
        right: 8px;
        width: 52px;
        height: 52px;
        font-size: 24px;
    }

    .eywa-modal-close-floating .dashicons {
        font-size: 24px;
    }
}

/* Prevent body scroll when modal is open */
body.eywa-modal-open {
    overflow: hidden;
    padding-right: 15px; /* Prevent layout shift from scrollbar */
}

/* ========================================
   MODERN ARCHIVE TEMPLATE STYLES
   ======================================== */

/* Archive Container */
.eywa-archive-modern {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Hero Section */
.eywa-archive-hero {
    position: relative;
    padding: 80px 0 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.eywa-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.eywa-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.eywa-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    background-size: 100px 100px, 150px 150px;
}

.eywa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Modern Breadcrumb */
.eywa-breadcrumb-modern {
    margin-bottom: 40px;
}

.eywa-breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.eywa-breadcrumb-item {
    display: flex;
    align-items: center;
}

.eywa-breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.eywa-breadcrumb-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.eywa-home-icon {
    width: 16px;
    height: 16px;
}

.eywa-breadcrumb-separator {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.5);
}

.eywa-breadcrumb-current {
    color: white;
    font-weight: 500;
}

/* Hero Content */
.eywa-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.eywa-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.eywa-hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0 0 48px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Hero Stats */
.eywa-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
}

.eywa-stat-item {
    text-align: center;
}

.eywa-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 7;
    line-height: 1;
    margin-bottom: 8px;
    color: white;
}

.eywa-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Main Content */
.eywa-archive-main {
    margin-top: -60px;
    position: relative;
    z-index: 3;
}

/* Search Section */
.eywa-search-section {
    margin-bottom: 48px;
}

.eywa-search-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.eywa-search-header {
    text-align: center;
    margin-bottom: 32px;
}

.eywa-search-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1f2937;
}

.eywa-search-icon {
    color: #667eea;
}

.eywa-search-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Primary Search */
.eywa-search-primary {
    margin-bottom: 24px;
}

.eywa-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.eywa-search-input-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    z-index: 2;
}

.eywa-search-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.eywa-search-input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.eywa-search-submit {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    padding: 0 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.eywa-search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Advanced Filters */
.eywa-filters-advanced {
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.eywa-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
}

.eywa-filters-toggle:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.eywa-filters-toggle[aria-expanded="true"] {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.eywa-filters-toggle[aria-expanded="true"] .eywa-chevron {
    transform: rotate(180deg);
}

.eywa-filter-icon,
.eywa-chevron {
    transition: transform 0.3s ease;
}

.eywa-filters-panel {
    margin-top: 24px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: none;
}

.eywa-filters-panel[aria-hidden="false"] {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.eywa-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.eywa-filter-group {
    display: flex;
    flex-direction: column;
}

.eywa-filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.eywa-label-icon {
    color: #667eea;
}

.eywa-filter-select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    outline: none;
}

.eywa-filter-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Filter Actions */
.eywa-filter-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.eywa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.eywa-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.eywa-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.eywa-btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.eywa-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

/* Results Section */
.eywa-results-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.eywa-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.eywa-results-info {
    flex: 1;
}

.eywa-results-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.eywa-search-query {
    font-size: 0.875rem;
    color: 6b7280;
    margin: 0;
}

/* View Controls */
.eywa-view-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.eywa-view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 4px;
}

.eywa-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.eywa-view-btn:hover {
    color: #374151;
    background: rgba(255, 255, 255, 0.5);
}

.eywa-view-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Resources Container */
.eywa-resources-container[data-view="grid"] .eywa-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.eywa-resources-container[data-view="list"] .eywa-resources-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* No Results */
.eywa-no-results-modern {
    text-align: center;
    padding: 80px 40px;
    max-width: 500px;
    margin: 0 auto;
}

.eywa-no-results-modern .eywa-no-results-icon {
    margin-bottom: 24px;
    color: #d1d5db;
}

.eywa-no-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}

.eywa-no-results-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 32px;
}

.eywa-no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Modern Pagination */
.eywa-pagination-modern {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.eywa-pagination-modern .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin: 0 4px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
}

.eywa-pagination-modern .page-numbers:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.eywa-pagination-modern .page-numbers.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.eywa-pagination-modern .page-numbers.prev,
.eywa-pagination-modern .page-numbers.next {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .eywa-hero-title {
        font-size: 2.5rem;
    }

    .eywa-hero-description {
        font-size: 1.125rem;
    }

    .eywa-hero-stats {
        gap: 24px;
    }

    .eywa-stat-number {
        font-size: 2rem;
    }

    .eywa-search-card,
    .eywa-results-section {
        padding: 24px;
        border-radius: 16px;
    }

    .eywa-filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .eywa-results-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .eywa-view-controls {
        justify-content: center;
    }

    .eywa-resources-container[data-view="grid"] .eywa-resources-grid {
        grid-template-columns: 1fr;
    }

    .eywa-filter-actions {
        flex-direction: column;
    }

    .eywa-no-results-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .eywa-container {
        padding: 0 16px;
    }

    .eywa-archive-hero {
        padding: 60px 0 80px;
    }

    .eywa-hero-title {
        font-size: 2rem;
    }

    .eywa-hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .eywa-search-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    .eywa-search-input {
        padding-left: 16px;
    }

    .eywa-search-input-icon {
        display: none;
    }

    .eywa-search-submit {
        position: static;
        width: 100%;
    }
}

/* Share Modal Styles */
.eywa-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.eywa-share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.eywa-share-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.eywa-share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.eywa-share-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
}

.eywa-share-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.eywa-share-modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.eywa-share-modal-body {
    padding: 32px;
}

.eywa-share-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.eywa-share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    font-weight: 500;
}

.eywa-share-option:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-2px);
    color: #374151;
}

.eywa-share-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eywa-share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.eywa-share-x:hover {
    background: #000000;
    border-color: #000000;
    color: white;
}

.eywa-share-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.eywa-share-email:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

.eywa-share-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.eywa-share-link-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 24px;
}

.eywa-share-link-section label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.eywa-share-link-container {
    display: flex;
    gap: 12px;
}

.eywa-share-link-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    background: #f9fafb;
    color: #6b7280;
}

.eywa-copy-link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.eywa-copy-link-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.eywa-copy-link-btn.copied {
    background: #10b981;
}

.eywa-copy-link-btn.copied:hover {
    background: #059669;
}

/* Prevent body scroll when modal is open */
body.eywa-modal-open {
    overflow: hidden;
}

/* Mobile responsive for share modal */
@media (max-width: 640px) {
    .eywa-share-modal-content {
        width: 95%;
        margin: 20px;
    }

    .eywa-share-modal-header,
    .eywa-share-modal-body {
        padding: 20px;
    }

    .eywa-share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .eywa-share-option {
        padding: 16px 12px;
    }

    .eywa-share-link-container {
        flex-direction: column;
    }

    .eywa-copy-link-btn {
        justify-content: center;
    }
}

/* Single Resource Navigation and Search */
.eywa-single-resource-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.eywa-nav-left .eywa-back-to-resources {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: rgba(79, 70, 229, 0.1);
}

.eywa-nav-left .eywa-back-to-resources:hover {
    background: rgba(79, 70, 229, 0.15);
    color: #3730a3;
    text-decoration: none;
}

.eywa-nav-left .eywa-back-to-resources .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.eywa-single-search-widget {
    min-width: 300px;
}

.eywa-single-search-form {
    margin: 0;
}

.eywa-search-input-group {
    display: flex;
    align-items: center;
    background: #ffffff;
}

.eywa-search-input-group:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.eywa-search-input-group.focused {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.eywa-search-input-group:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.eywa-single-search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    background: transparent;
    outline: none;
    color: #374151;
}

.eywa-single-search-input::placeholder {
    color: #9ca3af;
}

.eywa-single-search-button {
    background: #4f46e5;
    border: none;
    padding: 12px 16px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eywa-single-search-button:hover {
    background: #3730a3;
}

.eywa-single-search-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.eywa-single-search-button .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design for Single Resource Navigation */
@media (max-width: 768px) {
    .eywa-single-resource-navigation {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .eywa-nav-left,
    .eywa-nav-right {
        width: 100%;
    }

    .eywa-nav-left {
        order: 2;
    }

    .eywa-nav-right {
        order: 1;
    }

    .eywa-single-search-widget {
        min-width: auto;
        width: 100%;
    }

    .eywa-nav-left .eywa-back-to-resources {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .eywa-search-input-group {
        border-radius: 6px;
    }

    .eywa-single-search-input {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .eywa-single-search-button {
        padding: 10px 12px;
    }

    .eywa-nav-left .eywa-back-to-resources {
        padding: 10px 16px;
        font-size: 14px;
    }

/* Clickable Cards */
.eywa-clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.eywa-clickable-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.eywa-card-link {
    color: inherit;
    text-decoration: none;
}

.eywa-card-link:hover {
    color: inherit;
}

/* Resource Type Badge */
.eywa-card-type {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

/* Card Placeholder */
.eywa-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #bbf7d0 100%);
    color: #9ca3af;
}

/* Card Meta */
.eywa-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
}

.eywa-card-read-more {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #667eea;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.eywa-clickable-card:hover .eywa-card-read-more {
    color: #764ba2;
    transform: translateX(4px);
}

/* List View Styles */
.eywa-resources-container[data-view="list"] .eywa-resource-card {
    display: flex;
    flex-direction: row;
    height: 200px;
    max-width: none;
}

.eywa-resources-container[data-view="list"] .eywa-card-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 16px 0 0 16px;
}

.eywa-resources-container[data-view="list"] .eywa-card-content {
    flex: 1;
    padding: 24px;
    border-radius: 0 16px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eywa-resources-container[data-view="list"] .eywa-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.eywa-resources-container[data-view="list"] .eywa-card-excerpt {
    -webkit-line-clamp: 3;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .eywa-resources-container[data-view="list"] .eywa-resource-card {
        flex-direction: column;
        height: auto;
    }

    .eywa-resources-container[data-view="list"] .eywa-card-image {
        width: 100%;
        height: 200px;
        border-radius: 16px 16px 0 0;
    }

    .eywa-resources-container[data-view="list"] .eywa-card-content {
        border-radius: 0 0 16px 16px;
    }
}
}
