/* ============================================================================
   Tournai360 - Design basé sur la charte graphique
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

:root {
    /* Tournai360 Brand Colors */
    --primary-color: #9DD4D9;
    --primary-hover: #7DBEC4;
    --primary-dark: #2D2D2D;
    --secondary-color: #E8F5F6;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --border-color: #D1E7E9;
    --background: #FFFFFF;
    --background-alt: #F5FBFC;
    --user-message-bg: #E8F5F6;
    --assistant-message-bg: #FFFFFF;
    --success-color: #48bb78;
    --error-color: #f56565;
    --shadow-sm: 0 1px 3px 0 rgba(157, 212, 217, 0.15), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(157, 212, 217, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(157, 212, 217, 0.25), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--background-alt);
    color: var(--text-primary);
    line-height: 1.6;
    height: 100vh; /* Fallback for older browsers */
    height: 100svh; /* Small viewport height - accounts for visible browser UI */
    height: var(--viewport-height, 100vh); /* JavaScript-set custom property */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ============================================================================
   Beta Banner (Test/Preview Environment Only)
   ============================================================================ */

.beta-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    z-index: 10000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.beta-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.beta-icon {
    font-size: 1.25rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.beta-text {
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   Header
   ============================================================================ */

.header {
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 40px;
    width: auto;
}

.header-spacer {
    flex: 1;
}

.submit-event-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.submit-event-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.submit-event-btn:active {
    transform: translateY(0);
}

/* Honeypot field - completely hidden from human users, but accessible to bots */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Mobile floating button - hidden on desktop */
.submit-event-btn-mobile {
    display: none;
}

/* ============================================================================
   Hero Logo
   ============================================================================ */

.hero-logo {
    padding: 1.2rem 1rem 0.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--background-alt);
    position: relative;
}

.hero-logo img {
    width: auto;
    height: 105px;
    max-width: 100%;
    object-fit: contain;
    animation: fadeIn 0.6s ease-in;
}

.date-saint-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    animation: fadeIn 0.8s ease-in;
}

.date-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.date-text em {
    font-weight: normal;
}

.saint-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.3;
}

.sun-times-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-top: 0.15rem;
}

/* ============================================================================
   Compact Weather Display
   ============================================================================ */

.weather-current-line,
.weather-forecast-line {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-top: 0.15rem;
}

.weather-current-line span,
.weather-forecast-line span {
    white-space: nowrap;
}

/* ============================================================================
   Chat Container
   ============================================================================ */

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.messages-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 1rem 2rem 1rem;
    scroll-behavior: smooth;
}

.messages {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ============================================================================
   Messages
   ============================================================================ */

.message {
    display: flex;
    gap: 1rem;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
}

.user-message .message-avatar {
    background: var(--primary-dark);
    color: var(--primary-color);
}

.assistant-message .message-avatar {
    background: transparent;
    border-radius: 4px;
}

.message-content {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    background: var(--assistant-message-bg);
    border: 1px solid var(--border-color);
}

.user-message .message-content {
    background: var(--user-message-bg);
    border: 1px solid var(--border-color);
}

.message-content p {
    margin-bottom: 0.75rem;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul,
.message-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.message-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.message-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

.message-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.message-content code {
    background: var(--secondary-color);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

.message-content pre {
    background: var(--secondary-color);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 0.75rem;
}

.message-content pre code {
    background: none;
    padding: 0;
}

.message-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
    opacity: 0.3;
}

/* ============================================================================
   Modern Event Icons & Cards
   ============================================================================ */

/* SVG Icon Styling */
.event-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: -2px;
    margin-right: 8px;
}

/* Icon-specific colors */
.event-icon-title {
    color: #8b5cf6; /* Purple - Event title */
    width: 22px;
    height: 22px;
    vertical-align: -2px;
}

.event-icon-date {
    color: #3b82f6; /* Blue - Time/Date */
}

.event-icon-location {
    color: #10b981; /* Green - Location */
}

.event-icon-link {
    color: #06b6d4; /* Cyan - Links */
}

/* Event Cards Enhancement */
.message-content {
    position: relative;
}

/* Add subtle card effect for events (each br group between hrs) */
.message-content > br + br {
    display: none; /* Remove double line breaks */
}

/* Better typography for event content */
.message-content strong:first-of-type {
    font-size: 1.1em;
    color: var(--text-primary);
    display: inline;
    margin-bottom: 0.5rem;
}

/* Line height improvements */
.message-content {
    line-height: 1.7;
}

/* Icon + text alignment */
.event-icon + strong {
    display: inline-block;
    margin-top: 4px;
}

/* Link styling with icon */
.event-icon-link {
    margin-right: 4px;
}

/* Hover effects for links with icons */
.message-content a:hover .event-icon-link {
    transform: translateX(2px);
    transition: transform 0.2s ease;
}

/* Better spacing between event sections */
.message-content br {
    line-height: 1.2;
}

/* Event separator styling */
.message-content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 1.5rem 0 0.75rem 0;
    opacity: 0.15;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    height: 2px;
}

/* Responsive icon sizing */
@media (max-width: 768px) {
    .event-icon {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }

    .event-icon-title {
        width: 20px;
        height: 20px;
    }
}

/* ============================================================================
   Progressive Event Display
   ============================================================================ */

.loading-more {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    opacity: 0.7;
    font-style: italic;
}

.events-progressive {
    width: 100%;
}

.events-visible,
.events-hidden {
    width: 100%;
}

.show-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    clear: both;
}

.show-more-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #17a2b8; /* Darker, more saturated cyan for better contrast */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600; /* Slightly bolder for better visibility */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(23, 162, 184, 0.3); /* Stronger shadow with color tint */
    white-space: nowrap;
}

.show-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.show-more-btn:hover {
    background: #138496; /* Darker cyan for hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

.show-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .show-more-btn {
        width: 100%;
        max-width: 300px;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

/* ============================================================================
   Shortcut Chips
   ============================================================================ */

.shortcut-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    justify-content: center;
    background: var(--background-alt);
    border-top: 1px solid var(--border-color);
}

.shortcut-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--background);
    border: 2px solid var(--primary-color);
    color: var(--text-primary);
    border-radius: 24px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.shortcut-chip:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.shortcut-chip:active {
    transform: translateY(0);
}

.shortcut-chip svg {
    width: 18px;
    height: 18px;
}

/* Hide line break on desktop */
.line-break {
    display: none;
}

/* ============================================================================
   Input Area
   ============================================================================ */

.input-container {
    background: var(--background);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem 1rem;
}

.input-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--background);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    transition: all 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.message-input {
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    max-height: 120px;
    overflow-y: auto;
    background: transparent;
    padding: 0.25rem 0;
}

.message-input::placeholder {
    color: var(--text-secondary);
}

.send-button {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-button:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.send-button:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

.input-footer {
    max-width: 800px;
    margin: 0.5rem auto 0;
    text-align: center;
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================================================
   Modal
   ============================================================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.modal-content {
    background: var(--background);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    margin: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: var(--secondary-color);
    color: var(--text-primary);
}

/* ============================================================================
   Form
   ============================================================================ */

.event-form {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--background);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.spinner circle {
    stroke: currentColor;
    stroke-dasharray: 50;
    stroke-dashoffset: 25;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================================
   Success Message
   ============================================================================ */

.success-message {
    padding: 3rem 2rem;
    text-align: center;
}

.success-message svg {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ============================================================================
   Responsive Design
   ============================================================================ */

@media (max-width: 768px) {
    .header {
        display: none;
    }

    .shortcut-chips {
        padding: 0.5rem 0.25rem;
        gap: 0.3rem;
    }

    .shortcut-chip {
        padding: 0.3rem 0.5rem;
        font-size: 0.68rem;
        gap: 0.3rem;
    }

    .shortcut-chip svg {
        width: 14px;
        height: 14px;
    }

    /* Force line break after pharmacy button on mobile */
    .line-break {
        display: block;
        width: 100%;
        height: 0;
        flex-basis: 100%;
    }

    /* Reduce submit button size by 30% and add safe area padding */
    .submit-event-btn-mobile {
        display: flex;
        position: fixed;
        top: calc(env(safe-area-inset-top, 10px) + 54px);
        right: 10px;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        background: var(--bg-secondary);
        color: var(--primary-color);
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        z-index: 1000;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .submit-event-btn-mobile:hover {
        background: var(--primary-color);
        color: white;
        box-shadow: var(--shadow-lg);
        transform: scale(1.05);
    }

    .submit-event-btn-mobile svg {
        width: 18px;
        height: 18px;
    }

    /* Reduce logo size by 30% and add safe area padding for top */
    .hero-logo {
        padding: calc(env(safe-area-inset-top) + 50px) 0.5rem 0.5rem 0.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-logo img {
        width: auto;
        height: 48px;
        max-width: 100%;
    }

    .date-saint-display {
        align-items: center;
        text-align: center;
    }

    .date-text {
        font-size: 0.85rem;
    }

    .weather-current-line,
    .weather-forecast-line {
        font-size: 0.7rem;
    }

    .messages-wrapper {
        padding: 1rem 0.5rem;
    }

    .message {
        gap: 0.75rem;
    }

    .message-avatar {
        width: 32px;
        height: 32px;
    }

    .message-content {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    /* Add safe area padding for bottom to prevent overlap with browser menu bars */
    .input-container {
        padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    }

    .input-wrapper {
        padding: 0.25rem 0.5rem;
    }

    .message-input {
        padding: 0.125rem 0;
        font-size: 0.9375rem;
    }

    .send-button {
        width: 32px;
        height: 32px;
    }

    .input-hint {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    .event-form {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   Scrollbar Styling
   ============================================================================ */

.messages-wrapper::-webkit-scrollbar,
.message-input::-webkit-scrollbar {
    width: 8px;
}

.messages-wrapper::-webkit-scrollbar-track,
.message-input::-webkit-scrollbar-track {
    background: transparent;
}

.messages-wrapper::-webkit-scrollbar-thumb,
.message-input::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.messages-wrapper::-webkit-scrollbar-thumb:hover,
.message-input::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

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

.footer {
    background: var(--background);
    border-top: 1px solid var(--border-color);
    padding: 0.75rem 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-separator {
    color: var(--text-secondary);
    font-size: 1rem;
}

.footer-initiative {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
    margin-left: 0.5rem;
}

.footer-copyright {
    color: var(--text-secondary);
}

.footer-version {
    color: var(--text-secondary);
    font-size: 0.75rem;
    opacity: 0.7;
    font-family: 'Courier New', monospace;
}

@media (max-width: 768px) {
    .footer {
        padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
        font-size: 0.8125rem;
    }

    .footer-content {
        flex-direction: row;
        gap: 0.5rem;
    }

    .footer-separator {
        font-size: 0.875rem;
    }

    .footer-initiative {
        gap: 0.25rem;
    }

    .footer-logo {
        height: 24px;
        margin-left: 0.25rem;
    }
}
