/* ===================================
   Home Layout Variants (F28)
   button_hub and mixed layout styles
   =================================== */

/* === BUTTON HUB === */
.hub-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    grid-column: 1 / -1;
    padding: var(--space-2) 0;
}

/* Weather card full-width in button_hub */
.hub-weather-full {
    grid-column: 1 / -1;
    width: 100%;
}

.hub-weather-full .grid-card--weather {
    width: 100%;
    margin: 0;
    aspect-ratio: 4 / 3;
    min-height: auto;
}

.hub-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-2);
    background: var(--bg-card);
    border: none;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}

.hub-btn:active {
    transform: scale(0.95);
    box-shadow: var(--shadow-xs);
}

.hub-btn-icon {
    font-size: 28px;
    color: var(--color-primary);
    background: var(--bg-tertiary);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
}

.hub-btn-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-secondary);
    text-align: center;
    line-height: var(--leading-tight);
}

/* Hub events list */
.hub-events {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* === MIXED LAYOUT — Quick Row === */
.hub-quick-row {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding: 0 var(--space-2);
    margin-top: calc(76px + var(--space-3) + var(--safe-area-top) + var(--space-4));
    margin-bottom: var(--space-1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

/* When quick-row is present, reduce grid padding-top */
.hub-quick-row + .home-grid {
    padding-top: var(--space-2);
}

.hub-quick-row::-webkit-scrollbar {
    display: none;
}

/* Desktop: extra top spacing (no safe-area-top) */
@media (min-width: 480px) {
    .hub-quick-row {
        margin-top: calc(76px + var(--space-3) + var(--space-6));
    }
}

.hub-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    height: var(--space-8);
    padding: 0 var(--space-3);
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    white-space: nowrap;
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    line-height: 1;
    transition: transform var(--duration-fast) var(--ease-out);
}

.hub-quick-btn:active {
    transform: scale(0.95);
}

.hub-quick-btn .material-symbols-outlined {
    font-size: 16px;
    color: var(--color-primary);
}

/* === MINI FORECAST (inside weather card, button_hub only) === */
.weather-mini-forecast {
    display: none;
}

.hub-weather-full .weather-mini-forecast {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mini-forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: white;
}

.mini-forecast-name {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    opacity: 0.8;
}

.mini-forecast-icon {
    font-size: 18px;
}

.mini-forecast-temp {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    opacity: 0.9;
}

/* === TEXT CARD === */
.hub-text-card {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: var(--space-4);
    box-shadow: var(--shadow-card);
}

.hub-text-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
    margin: 0 0 var(--space-2);
}

.hub-text-body {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
    margin: 0;
}

/* === RESPONSIVE === */
@media (min-width: 480px) {
    .hub-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-4);
    }

    .hub-btn {
        padding: var(--space-5) var(--space-3);
    }

    .hub-btn-icon {
        font-size: 32px;
        width: 60px;
        height: 60px;
    }
}
