/**
 * Hustavla.NO - PUBLIC STYLES
 * Styling for the public-facing page
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    background: var(--color-bg-primary);
    padding: 0;
    color: var(--color-neutral-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-container {
    flex: 1;
}

/* ===== TAB NAVIGATION ===== */
/* Now using shared/css/tab-navigation.css for all tab styles */

/* ===== CONTENT CARDS ===== */
/* All content card styles moved to shared/css/content.css */
/* Public view uses default fully-rounded corners from content.css */

/* ===== SECTIONS (LEGACY) ===== */
.section {
    background: white;
    padding: var(--section-padding-vertical) var(--spacing-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: var(--radius-md);
    margin: 0;
}

.section-title.with-building-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.section-title.with-building-filter .section-title-text {
    display: inline-flex;
    align-items: center;
}

.section-title.with-building-filter .section-filter-inline {
    display: inline-flex;
    align-items: center;
}

.icon {
    margin-right: var(--margin-lg);
    font-size: var(--font-size-icon);
}

/* ===== REGISTRATION BUTTON ===== */
.register-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    margin-top: 10px;
}

.register-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.register-button [data-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.register-button i[data-lucide] {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

/* ===== FOOTER ===== */
.footer {
    background: white;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
    padding: var(--spacing-2xl);
    text-align: center;
    color: var(--color-neutral-light);
    font-size: var(--font-size-small);
}

/* ===== PUBLIC-SPECIFIC COMPONENT STYLES ===== */

.older-messages-container {
    display: none;
    margin-bottom: 15px;
}

.older-messages-container.visible {
    display: block;
}

.show-more-link {
    text-align: center;
    margin-top: 15px;
}

/* ===== CONTACT CARDS GRID LAYOUT ===== */

/* Contact Cards Grid Layout - now uses shared .kontakter-grid from admin/css/om-oss-styles.css */
/* Old #boardContainer grid styling removed - no longer needed */

/* ===== BOOKING CALENDAR STYLES ===== */
/* All calendar styles now in shared/css/calendar.css */

/* Mobile adjustments */
@media (max-width: 767px) {
    /* Registration button - slightly larger on mobile for easier tapping */
    .register-button {
        padding: 8px 16px;
        font-size: 13px;
        margin: 12px auto 0;
    }
    
    .register-button [data-icon] {
        width: 18px;
        height: 18px;
    }
    
    /* Fixed footer at bottom of mobile screen (matches admin toolbar pattern) */
    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-top: var(--border-width-medium) solid var(--color-text-heading);
        box-shadow: var(--shadow-sm);
        z-index: 5;
        margin-top: 0;
    }
    
    /* Add padding to prevent content from hiding behind fixed footer */
    body {
        padding-bottom: 90px;
    }
}
