/* ==================== NAVIGATION BUTTONS ==================== */

.bottom-nav .nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 60px;
    position: relative;
    flex-shrink: 0;
}

.bottom-nav .nav-btn:hover,
.bottom-nav .nav-btn.active {
    background: var(--accent);
    color: white;
}

.nav-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.nav-label {
    font-size: var(--font-size-xs);
    white-space: nowrap;
}

.nav-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--error);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: var(--font-size-xs);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== MAIN NAVIGATION GRID ==================== */

.main-navigation-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Ensure 2-column layout on desktop - override any conflicting rules */
@media (min-width: 769px) {
    .main-navigation-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: single column only on very small screens */
@media (max-width: 480px) {
    .main-navigation-grid {
        grid-template-columns: 1fr !important;
    }
}

.nav-card-large {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1.6;
}

.nav-card-large:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(88, 184, 231, 0.4);
}

.nav-card-image {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.nav-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nav-card-large:hover .nav-card-image img {
    transform: scale(1.05);
}

.nav-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(88, 184, 231, 0.95), rgba(88, 184, 231, 0.85));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 1.5rem;
}

.nav-card-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: 0.75rem;
}

.nav-card-overlay h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-bold);
}

.nav-card-overlay p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.nav-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(88, 184, 231, 0.9);
    color: var(--brand-text);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==================== MATERIALS TABS ==================== */

.materials-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    position: relative;
    bottom: -1px;
}

.materials-tab:hover {
    color: var(--text-primary);
}

.materials-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: var(--font-weight-semibold);
}

.events-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ==================== TABS ==================== */

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--accent);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}