/**
 * Apartment Ideas — Customer Portal Styles
 * Layered on top of Bootstrap 5
 */

/* =============================================================================
   Framework: ViewEngine state classes
   ============================================================================= */

/* Hide templates */
.template {
    display: none !important;
}

/* Loading state */
.load-data.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Error state */
.load-data.load-error {
    border-left: 3px solid #dc3545;
    padding-left: 0.75rem;
}

/* Prevent flash of raw {placeholders} */
.load-data:not(.loaded):not(.loading):not(.cached) [class*="view-"] {
    visibility: hidden;
}

/* =============================================================================
   Home Page — Hero
   ============================================================================= */

.hero-section {
    /* Swap this gradient for a real photo:
       background: url('/img/hero.jpg') center/cover no-repeat; */
    background: linear-gradient(135deg, #1a3a4a 0%, #0d9488 50%, #1a3a4a 100%);
    min-height: 480px;
}

.hero-overlay {
    min-height: 480px;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.hero-title {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.04em;
}

.hero-subtitle {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* =============================================================================
   Home Page — Features
   ============================================================================= */

.feature-card {
    border-radius: 0.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.feature-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e0f7f5;
}

.feature-icon {
    font-size: 1.75rem;
    color: #0d9488;
}

/* =============================================================================
   Home Page — CTA Band
   ============================================================================= */

.cta-band {
    background: #f8f9fa;
}

/* =============================================================================
   Login Page
   ============================================================================= */

.login-section {
    min-height: 60vh;
}

/* =============================================================================
   Navbar
   ============================================================================= */

.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

/* =============================================================================
   Portal Tabs
   ============================================================================= */

.portal-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.portal-tabs .nav-link:hover {
    color: #0d9488;
    border-bottom-color: #ccfbf1;
}

.portal-tabs .nav-link.active {
    color: #0d9488;
    border-bottom-color: #0d9488;
    background: transparent;
}

/* =============================================================================
   Quicklinks Bar
   ============================================================================= */

.quicklinks-bar .btn-outline-secondary {
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
    border-radius: 1rem;
}

/* =============================================================================
   Section Headings (Promotional Items, Promotional Signage)
   ============================================================================= */

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-heading::before {
    content: '';
    flex: 0 0 4px;
    height: 1.5rem;
    background: #e65100;
    border-radius: 2px;
}

.section-heading-text {
    color: #e65100;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

/* =============================================================================
   Product Grid — 5-column layout on large screens
   ============================================================================= */

@media (min-width: 992px) {
    .col-lg-custom-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* =============================================================================
   Product Cards
   ============================================================================= */

.product-card {
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-thumb-wrapper {
    background: #f8f9fa;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    line-height: 1.3;
    color: #495057;
}

/* Active order overlay */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 193, 7, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.product-overlay-label {
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.03em;
    line-height: 1.4;
}

/* =============================================================================
   Pipeline Track — Order Status Dots
   ============================================================================= */

.pipeline-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.25rem 0;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.pipeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #dee2e6;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
}

.pipeline-dot.active {
    background: #0d9488;
    border-color: #0d9488;
}

.pipeline-dot.current {
    background: #fff;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.pipeline-connector {
    width: 2rem;
    height: 2px;
    background: #dee2e6;
    flex-shrink: 0;
}

.pipeline-connector.active {
    background: #0d9488;
}

.pipeline-label {
    font-size: 0.65rem;
    color: #adb5bd;
    white-space: nowrap;
}

/* =============================================================================
   Info Banner
   ============================================================================= */

.alert-info {
    background: #e0f7fa;
    border-color: #b2ebf2;
    color: #00695c;
}

/* =============================================================================
   Portal Footer
   ============================================================================= */

.portal-footer a {
    text-decoration: none;
}

.portal-footer a:hover {
    text-decoration: underline;
}

/* =============================================================================
   Teal accent (brand color)
   ============================================================================= */

a {
    color: #0d9488;
}

a:hover {
    color: #0a7a70;
}

.btn-primary,
.bg-primary {
    background-color: #0d9488 !important;
    border-color: #0d9488 !important;
}

.btn-primary:hover {
    background-color: #0a7a70 !important;
    border-color: #0a7a70 !important;
}

/* =============================================================================
   Design Cards (Product Page)
   ============================================================================= */

.design-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
}

.design-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.design-image-wrapper {
    background: #f8f9fa;
    position: relative;
}

.design-image-wrapper img {
    width: 100%;
    display: block;
}

.design-status-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 193, 7, 0.15);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.5rem;
}

/* =============================================================================
   Subtype Sections (Product Page)
   ============================================================================= */

.subtype-section + .subtype-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

/* =============================================================================
   Utility
   ============================================================================= */

/* Smooth loading transitions */
.load-data {
    transition: opacity 0.2s ease;
}
