/**
 * Tenants Directory — Glassmorphism Redesign v4.2.0
 *
 * Dark ambient background + glass cards + 4-column grid
 *
 * @package Xeora
 * @subpackage Assets/CSS/Frontend
 * @since 4.2.0
 */

/* ═══════════════════════════════════════════════════
   BASE
   ═══════════════════════════════════════════════════ */

body.xeora-tenants-list-page {
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #fff;
}

/* Prevent horizontal scroll from orb pseudo-elements */
html, body.xeora-tenants-list-page {
    overflow-x: hidden;
}

/* Ensure footer stays above ambient orbs */
body.xeora-tenants-list-page #footer,
body.xeora-tenants-list-page footer,
body.xeora-tenants-list-page .site-footer {
    position: relative;
    z-index: 10;
}

/* Ambient orbs */
body.xeora-tenants-list-page::before,
body.xeora-tenants-list-page::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}
body.xeora-tenants-list-page::before {
    width: 500px; height: 500px;
    background: #667eea;
    top: -120px; left: -100px;
}
body.xeora-tenants-list-page::after {
    width: 400px; height: 400px;
    background: #764ba2;
    bottom: -80px; right: -80px;
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */

.tenants-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 70px 20px 50px;
}

.tenants-hero-inner {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 48px 32px;
    max-width: 700px;
    margin: 0 auto;
}

.tenants-hero h1 {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.tenants-hero h1 i {
    margin-right: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tenants-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   CONTAINER
   ═══════════════════════════════════════════════════ */

.tenants-container {
    position: relative;
    z-index: 1;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* ═══════════════════════════════════════════════════
   COUNT BADGE
   ═══════════════════════════════════════════════════ */

.tenant-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tenant-count-badge strong {
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   GRID — 4 columns
   ═══════════════════════════════════════════════════ */

.tenants-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ═══════════════════════════════════════════════════
   CARD
   ═══════════════════════════════════════════════════ */

.tenant-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.tenant-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ── Banner ── */

.tenant-card-banner {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.tenant-card-banner.no-image {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5), rgba(118, 75, 162, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
}

.tenant-card-banner.no-image::after {
    content: '\f07b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 44px;
    color: rgba(255, 255, 255, 0.2);
}

.tenant-card-banner::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    pointer-events: none;
}

/* ── Logo overlay ── */

.tenant-card-logo {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.tenant-card-logo img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.tenant-card-logo i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
}

/* ── Body ── */

.tenant-card-body {
    padding: 34px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.tenant-card-name {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.tenant-card-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin: 0 0 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Meta pills ── */

.tenant-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}

.tenant-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.tenant-meta-pill i {
    font-size: 10px;
    color: #b8cc0b;
}

/* ── CTA ── */

.tenant-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: auto;
}

.tenant-card-cta:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.45);
    color: #fff;
    text-decoration: none;
}

.tenant-card-cta i {
    font-size: 13px;
}

/* ═══════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════ */

.tenants-empty {
    text-align: center;
    padding: 80px 20px;
}

.tenants-empty-inner {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 500px;
    margin: 0 auto;
}

.tenants-empty i {
    font-size: 56px;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}

.tenants-empty h3 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.tenants-empty p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .tenants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .tenants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tenants-hero h1 {
        font-size: 32px;
    }
    .tenants-hero-inner {
        padding: 36px 24px;
    }
}

@media (max-width: 560px) {
    .tenants-grid {
        grid-template-columns: 1fr;
    }
    .tenants-hero {
        padding: 50px 16px 36px;
    }
    .tenants-hero-inner {
        padding: 32px 18px;
    }
    .tenants-hero h1 {
        font-size: 26px;
    }
    .tenants-hero p {
        font-size: 15px;
    }
}

/* Mobile: disable orbs + prevent pinch-out */
@media (max-width: 768px) {
    body.xeora-tenants-list-page:not(.xeora-menu-open)::before,
    body.xeora-tenants-list-page:not(.xeora-menu-open)::after {
        content: none !important;
    }
    html {
        background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
        overflow-x: hidden;
    }
    body.xeora-tenants-list-page {
        overflow-x: hidden;
    }
}
