/**
 * EduDirectory Modern 3D & Neo-Aesthetic Design System
 * Version: 1.0.0 (EduSys v7.2.3)
 * Provides tactile 3D cards, glassmorphism, ambient lighting, and modern sans-serif typography.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ==========================================================================
   1. GLOBAL SCOPE & TYPOGRAPHY ENHANCEMENTS
   ========================================================================== */

.ed-modern-scope,
.ed-modern-scope h1,
.ed-modern-scope h2,
.ed-modern-scope h3,
.ed-modern-scope h4,
.ed-modern-scope h5,
.ed-modern-scope h6,
.ed-card-3d,
.ed-intake-banner-3d {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* ==========================================================================
   2. TACTILE 3D DIRECTORY LISTING CARDS
   ========================================================================== */

.ed-card-3d {
    perspective: 1200px;
    transform-style: preserve-3d;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border-radius: 22px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 
        0 10px 25px -5px rgba(15, 23, 42, 0.06), 
        0 8px 10px -6px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    overflow: visible !important;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ed-card-3d:hover {
    transform: translateY(-8px) scale(1.015) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: 
        0 24px 48px -12px rgba(15, 23, 42, 0.16), 
        0 12px 24px -8px rgba(99, 102, 241, 0.14),
        0 0 0 1.5px rgba(99, 102, 241, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

/* 3D Card Cover Media Area */
.ed-card-cover-wrap {
    position: relative;
    height: 185px;
    border-radius: 21px 21px 0 0;
    overflow: hidden;
    background-color: #f1f5f9;
}

.ed-card-cover-wrap img.ed-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ed-card-3d:hover .ed-card-cover-wrap img.ed-cover-img {
    transform: scale(1.08);
}

/* 3D Geometric Isometric Fallback Cover when no photo uploaded */
.ed-cover-fallback-3d {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 40%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ed-cover-fallback-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(99, 102, 241, 0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.7;
}

.ed-cover-fallback-orb {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 12px 28px rgba(99, 102, 241, 0.2), 
        inset 0 1px 0 #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 1.85rem;
    transition: all 0.35s ease;
    z-index: 1;
}

.ed-card-3d:hover .ed-cover-fallback-orb {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 
        0 16px 36px rgba(99, 102, 241, 0.3), 
        inset 0 1px 0 #ffffff;
    color: #4338ca;
}

/* Gradient Vignette at bottom of cover */
.ed-cover-vignette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.45) 0%, transparent 100%);
    pointer-events: none;
}

/* 3D Floating Squircle Logo */
.ed-card-logo-3d {
    position: absolute;
    bottom: -18px;
    left: 20px;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #ffffff;
    padding: 4px;
    box-shadow: 
        0 10px 22px -3px rgba(15, 23, 42, 0.16), 
        0 4px 6px -2px rgba(15, 23, 42, 0.08), 
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border: 2.5px solid #ffffff;
    object-fit: contain;
    z-index: 5;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ed-card-3d:hover .ed-card-logo-3d {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 
        0 14px 28px -3px rgba(15, 23, 42, 0.22), 
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* 3D Floating Badges */
.ed-badge-partnered {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 55%, #be123c 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 
        0 4px 14px rgba(225, 29, 72, 0.42), 
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    border-radius: 50px !important;
    padding: 5px 12px !important;
    font-size: 0.74rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.ed-badge-verified {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 
        0 4px 14px rgba(16, 185, 129, 0.42), 
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    border-radius: 50px !important;
    padding: 5px 12px !important;
    font-size: 0.74rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.ed-badge-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    box-shadow: 
        0 4px 14px rgba(245, 158, 11, 0.42), 
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    border-radius: 50px !important;
    padding: 5px 12px !important;
    font-size: 0.74rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

/* Card Body Typography & Content */
.ed-card-body {
    padding: 28px 20px 18px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ed-card-category-label {
    font-size: 0.72rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: #4f46e5 !important;
    margin-bottom: 4px !important;
}

.ed-card-title {
    font-size: 1.15rem !important;
    font-weight: 750 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
    text-decoration: none !important;
    display: block !important;
    transition: color 0.2s ease !important;
}

.ed-card-title:hover {
    color: #2563eb !important;
}

.ed-card-location {
    font-size: 0.84rem !important;
    color: #64748b !important;
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-weight: 500 !important;
}

/* 3D Amenity Chips */
.ed-amenity-chip-3d {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
}

.ed-amenity-chip-3d:hover {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
    color: #4338ca !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 6px rgba(99, 102, 241, 0.12) !important;
}

.ed-amenity-chip-more {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 20px !important;
    padding: 4px 8px !important;
    font-size: 0.73rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
}

/* 3D Bottom Footer Strip */
.ed-card-footer {
    margin-top: auto !important;
    padding-top: 14px !important;
    border-top: 1px solid #f1f5f9 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.ed-view-badge-3d {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: #f8fafc !important;
    padding: 4px 11px !important;
    border-radius: 20px !important;
    border: 1px solid #f1f5f9 !important;
}

/* 3D Tactile Buttons */
.ed-btn-3d-red {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 7px 18px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
    box-shadow: 
        0 5px 16px -2px rgba(225, 29, 72, 0.42), 
        inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.ed-btn-3d-red:hover {
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 10px 24px -2px rgba(225, 29, 72, 0.55), 
        inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

.ed-btn-3d-red:active {
    transform: translateY(1px) !important;
    box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4) !important;
}

/* ==========================================================================
   3. 3D COMMUNITY INTAKE & CAMPUS CLAIMS BANNER
   ========================================================================== */

.ed-intake-banner-3d {
    position: relative;
    padding: 70px 0;
    overflow: hidden;
    background: 
        radial-gradient(circle at 15% 25%, rgba(99, 102, 241, 0.32) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(244, 63, 94, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.18) 0%, transparent 55%),
        linear-gradient(145deg, #090e1a 0%, #0f172a 55%, #080c16 100%) !important;
}

/* 3D Geometric Perspective Grid */
.ed-intake-banner-3d::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
}

/* Elevated Glassmorphic Container Card */
.ed-intake-glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.045) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 30px !important;
    padding: 50px 36px !important;
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.6), 
        inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

/* Floating 3D Intake Pill Badge */
.ed-intake-badge-3d {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.22) 0%, rgba(225, 29, 72, 0.32) 100%) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(251, 113, 133, 0.5) !important;
    color: #ffe4e6 !important;
    font-size: 0.82rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    padding: 7px 18px !important;
    border-radius: 50px !important;
    box-shadow: 
        0 4px 20px rgba(225, 29, 72, 0.35), 
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    margin-bottom: 22px !important;
}

.ed-intake-badge-3d i {
    color: #fb7185;
    font-size: 0.95rem;
}

/* Modern Sans-Serif Headline */
.ed-intake-title {
    font-size: clamp(1.8rem, 3.8vw, 2.75rem) !important;
    font-weight: 850 !important;
    letter-spacing: -0.6px !important;
    line-height: 1.22 !important;
    color: #ffffff !important;
    margin-bottom: 16px !important;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6) !important;
}

.ed-intake-title-gradient {
    background: linear-gradient(135deg, #ffffff 20%, #93c5fd 60%, #60a5fa 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    filter: drop-shadow(0 2px 14px rgba(96, 165, 250, 0.45));
}

.ed-intake-sub {
    font-size: 1.12rem !important;
    color: #cbd5e1 !important;
    max-width: 760px !important;
    margin: 0 auto 32px !important;
    line-height: 1.65 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* 3D Action Buttons in Banner */
.ed-btn-intake-suggest {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 13px 32px !important;
    font-size: 1.05rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 
        0 8px 25px rgba(225, 29, 72, 0.48), 
        inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.ed-btn-intake-suggest:hover {
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 
        0 14px 34px rgba(225, 29, 72, 0.6), 
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

.ed-btn-intake-suggest:active {
    transform: translateY(1px) !important;
    box-shadow: 0 3px 10px rgba(225, 29, 72, 0.4) !important;
}

.ed-btn-intake-partner {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 50px !important;
    padding: 13px 32px !important;
    font-size: 1.05rem !important;
    font-weight: 750 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.3), 
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

.ed-btn-intake-partner:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 
        0 14px 32px rgba(0, 0, 0, 0.4), 
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* 3D Micro Feature Trust Badges */
.ed-intake-features-row {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ed-intake-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.ed-intake-feature-pill i {
    color: #10b981;
}

/* ==========================================================================
   4. 3D CATEGORY & DESTINATION CARDS
   ========================================================================= */

.ed-cat-card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 
        0 10px 24px -5px rgba(15, 23, 42, 0.05), 
        0 4px 6px -2px rgba(15, 23, 42, 0.02) !important;
    padding: 24px 20px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ed-cat-card-3d:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 
        0 22px 42px -10px rgba(15, 23, 42, 0.14), 
        0 8px 16px -4px rgba(99, 102, 241, 0.1) !important;
}

.ed-cat-icon-orb-3d {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.06), 
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.ed-cat-card-3d:hover .ed-cat-icon-orb-3d {
    transform: scale(1.1) rotate(4deg);
}

.ed-city-card-3d {
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 16px !important;
    text-align: center;
}

.ed-city-card-3d:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1) !important;
}

/* Similar Institutions Mini 3D Cards */
.ed-sim-card-3d {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ed-sim-card-3d:hover {
    transform: translateY(-3px) scale(1.01) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}
