/**
 * Homepage Theme CSS - Zero Inline Styles
 * Uses theme variables from shared-theme.css
 * All classes work with Matrix/dark theme by default
 */

/* ==================== HERO SECTION ==================== */

/* Super Admin Corporate Hero */
.hero-corporate {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 100px 0;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.hero-corporate .hero-lead {
    font-size: 1.25rem;
    line-height: 1.6;
}

.hero-corporate .hero-image-container {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.hero-corporate .hero-bg-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 1;
}

/* Tenant Hero Section */
.hero-tenant {
    color: inherit;
}

/* ==================== BUSINESS OPPORTUNITY SECTION ==================== */

.business-opportunity-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Icon Containers */
.icon-container-48 {
    width: 48px;
    height: 48px;
    min-width: 48px;
}

.icon-container-64 {
    width: 64px;
    height: 64px;
}

/* ==================== PARTNER BADGES ==================== */

.partner-badge {
    width: fit-content;
}

/* ==================== PRODUCTION STATUS ==================== */

.status-icon-opacity {
    opacity: 0.9;
}

/* ==================== PROFIT IMAGE ==================== */

.profit-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ==================== PROFILE IMAGES ==================== */

.card-img-top {
    width: 400px;
    height: 400px;
    object-fit: cover;
}

/* ==================== FOOTER ==================== */

.footer-full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-hr {
    border-color: var(--theme-border);
}

/* ==================== PERFORMER CARDS ==================== */

.performer-card-clickable {
    cursor: pointer;
}

/* Featured Badge - Gold with black text */
.featured-badge {
    display: inline-block !important;
    background: #FFD700 !important;
    color: #000 !important;
    font-weight: bold !important;
    font-size: 0.85rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    vertical-align: middle !important;
    border: 2px solid #FFA500 !important;
}

.featured-badge .fas {
    color: #000 !important;
}

/* Tag Badge - Smaller font */
.tag-badge-small {
    font-size: 0.7rem;
    font-weight: normal;
}

/* ==================== COMMUNITY SIDEBAR ==================== */

.wall-sidebar-sticky {
    top: 20px;
}

.wall-header-text {
    font-size: 0.75rem;
}

.wall-body-text {
    font-size: 0.85rem;
}

.wall-alert-small {
    font-size: 0.8rem;
}

.wall-profile-img {
    object-fit: cover;
}

.wall-profile-placeholder {
    width: 28px;
    height: 28px;
}

.wall-profile-icon {
    font-size: 0.7rem;
}

.wall-username {
    font-size: 0.8rem;
}

.wall-timestamp {
    white-space: nowrap;
    font-size: 0.7rem;
}

.wall-content-text {
    font-size: 0.75rem;
    line-height: 1.3;
}

.wall-stats {
    font-size: 0.7rem;
}

.wall-view-all {
    font-size: 0.75rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    .hero-corporate {
        padding: 60px 0;
        min-height: 400px;
    }

    .hero-corporate .hero-lead {
        font-size: 1rem;
    }

    .hero-corporate .hero-logo {
        max-height: 250px;
    }

    .icon-container-48 {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .icon-container-64 {
        width: 56px;
        height: 56px;
    }
}

/* ==================== DARK THEME SPECIFIC ==================== */

/* These styles enhance the dark theme experience */
body.dark-mode .hero-corporate {
    /* Keep the corporate blue gradient even in dark mode */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

body.dark-mode .wall-header-text {
    color: var(--theme-text-muted);
}

body.dark-mode .footer-hr {
    border-color: var(--theme-border);
}

/* ==================== UTILITY CLASSES ==================== */

/* Full viewport width sections */
.full-vw {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Theme-aware text colors */
.hero-text-light {
    color: white;
}

.hero-text-dark {
    color: var(--theme-text);
}

/* Core Web Vitals: Prevent CLS with aspect ratio */
.card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* Optimize font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Reduce CLS for lazy loaded images */
img[loading="lazy"] {
    content-visibility: auto;
}
