/* === ULTRA-MODERN TENANT DIRECTORY PAGE === */

/* Gradient Background Variants */
.bg-gradient-secondary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
}

/* Tenant Cards */
.tenant-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-2xl);
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
}

.tenant-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
    border-color: rgba(99, 102, 241, 0.3);
}

.tenant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Card Header */
.card-header {
    padding: 1.5rem 1.5rem 0;
    position: relative;
    z-index: 2;
}

.business-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.logo-placeholder {
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Category Badge Variants */
.badge-primary { background: rgba(99, 102, 241, 0.9); color: white; box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4); }
.badge-info { background: rgba(59, 130, 246, 0.9); color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4); }
.badge-success { background: rgba(34, 197, 94, 0.9); color: white; box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4); }
.badge-warning { background: rgba(245, 158, 11, 0.9); color: white; box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4); }
.badge-danger { background: rgba(239, 68, 68, 0.9); color: white; box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4); }
.badge-secondary { background: rgba(107, 114, 128, 0.9); color: white; box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4); }
.badge-dark { background: rgba(31, 41, 55, 0.9); color: white; box-shadow: 0 4px 15px rgba(31, 41, 55, 0.4); }
.badge-purple { background: rgba(139, 92, 246, 0.9); color: white; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); }
.badge-cyan { background: rgba(6, 182, 212, 0.9); color: white; box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4); }

.business-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    line-height: 1.3;
}

.business-tagline {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0;
    font-style: italic;
}

/* Card Content */
.card-content {
    padding: 0 1.5rem 1rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.business-description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Contact Information */
.contact-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-item i {
    width: 16px;
    color: var(--color-primary);
    text-align: center;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

.contact-item a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Services Section */
.services-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tag {
    background: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    font-weight: 500;
}

.service-tag.more {
    background: rgba(107, 114, 128, 0.1);
    color: var(--color-text-muted);
}

/* Business Hours */
.hours-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-dark);
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.hours-item .day {
    font-weight: 500;
    color: var(--color-text-muted);
}

.hours-item .hours {
    color: var(--color-dark);
}

/* Card Footer */
.card-footer {
    padding: 1rem 1.5rem 1.5rem;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-facebook { background: linear-gradient(135deg, #1877f2, #4267b2); }
.social-twitter { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.social-linkedin { background: linear-gradient(135deg, #0077b5, #005885); }
.social-instagram { background: linear-gradient(135deg, #e4405f, #c13584, #833ab4); }
.social-website { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); }

.social-link:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Card Actions */
.card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.card-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
}

/* Filter Panel Enhancement for Tenant Directory */
.tenant-directory-page .filter-panel {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Empty State */
.empty-state {
    padding: 3rem 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.empty-state i {
    opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .business-name {
        font-size: 1.2rem;
    }
    
    .category-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .business-logo {
        width: 50px;
        height: 50px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .card-actions .btn {
        width: 100%;
    }
    
    .services-tags,
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .tenant-card {
        margin-bottom: 1.5rem;
    }
    
    .card-header,
    .card-content,
    .card-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
