﻿/**
 * NAVIGATION COMPONENTS
 * =====================
 * 
 * Top Navigation, Bottom Footer, Progress Indicators, Breadcrumbs
 */

/* Top Navigation Bar */
.top-nav {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(var(--primary-rgb), 0.15) 100%), rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.2);
    top: 0;
    z-index: 100;
    font-size: 0.875rem;
}

/* Brand/logo area */
.top-nav-brand {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Navigation links */
.top-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    position: relative;
}

    .top-nav-link:hover {
        color: white;
        background: rgba(var(--primary-rgb), 0.2);
        transform: translateY(-1px);
    }

    .top-nav-link:focus {
        outline: 2px solid rgba(var(--primary-rgb), 0.5);
        outline-offset: 2px;
    }

/* Special styling for logout link */
.top-nav-logout {
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

    .top-nav-logout:hover {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.4);
        color: #fca5a5;
    }

/* Separator */
.top-nav-separator {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* Theme-aware variations for top nav */
body.theme-nature .top-nav {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.95) 0%, rgba(76, 175, 80, 0.1) 100%), rgba(0, 0, 0, 0.85);
    border-bottom-color: rgba(76, 175, 80, 0.3);
}

body.theme-sky .top-nav {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.95) 0%, rgba(33, 150, 243, 0.1) 100%), rgba(0, 0, 0, 0.85);
    border-bottom-color: rgba(33, 150, 243, 0.3);
}

body.theme-sunset .top-nav {
    background: linear-gradient(135deg, rgba(216, 67, 21, 0.95) 0%, rgba(255, 112, 67, 0.1) 100%), rgba(0, 0, 0, 0.85);
    border-bottom-color: rgba(255, 112, 67, 0.3);
}

body.theme-mystical .top-nav {
    background: linear-gradient(135deg, rgba(81, 45, 168, 0.95) 0%, rgba(126, 87, 194, 0.1) 100%), rgba(0, 0, 0, 0.85);
    border-bottom-color: rgba(126, 87, 194, 0.3);
}

/* Bottom Footer Bar */
.bottom-nav {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(var(--primary-rgb), 0.25) 100%), rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(var(--primary-rgb), 0.4);
    margin-top: auto;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
}

.footer-brand {
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
}

    .footer-brand p:first-child {
        font-weight: 600;
        letter-spacing: 0.05em;
        color: white;
    }

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 0.375rem 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .footer-link:hover {
        color: white;
        background: rgba(var(--primary-rgb), 0.3);
        transform: translateY(-1px);
    }

    .footer-link:focus {
        outline: 2px solid rgba(var(--primary-rgb), 0.7);
        outline-offset: 2px;
    }

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.footer-info {
    color: rgba(255, 255, 255, 0.9);
}

/* Theme-aware footer variations */
body.theme-nature .bottom-nav {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.98) 0%, rgba(76, 175, 80, 0.2) 100%), rgba(0, 0, 0, 0.9);
    border-top-color: rgba(76, 175, 80, 0.5);
}

body.theme-sky .bottom-nav {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.98) 0%, rgba(33, 150, 243, 0.2) 100%), rgba(0, 0, 0, 0.9);
    border-top-color: rgba(33, 150, 243, 0.5);
}

body.theme-sunset .bottom-nav {
    background: linear-gradient(135deg, rgba(216, 67, 21, 0.98) 0%, rgba(255, 112, 67, 0.2) 100%), rgba(0, 0, 0, 0.9);
    border-top-color: rgba(255, 112, 67, 0.5);
}

body.theme-mystical .bottom-nav {
    background: linear-gradient(135deg, rgba(81, 45, 168, 0.98) 0%, rgba(126, 87, 194, 0.2) 100%), rgba(0, 0, 0, 0.9);
    border-top-color: rgba(126, 87, 194, 0.5);
}

/* Progress indicator dots and lines */
.progress-dot-link {
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

    .progress-dot-link:hover {
        transform: translateY(-1px);
    }

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(128, 128, 128, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

    .progress-dot.active {
        transform: scale(1.2);
        filter: brightness(1.1);
    }

    .progress-dot:hover {
        transform: scale(1.1);
        filter: brightness(1.05);
    }

    .progress-dot.active:hover {
        transform: scale(1.25);
        filter: brightness(1.15);
    }

/* Theme-specific dot colors */
.progress-dot[data-theme="nature"] {
    background: #4caf50;
}

.progress-dot[data-theme="sky"] {
    background: #2196f3;
}

.progress-dot[data-theme="sunset"] {
    background: #ff7043;
}

.progress-dot[data-theme="mystical"] {
    background: #7e57c2;
}

.progress-dot[data-theme="ocean"] {
    background: #00acc1;
}

/* Inactive dots - subtle theme colors */
.progress-dot:not(.active)[data-theme="nature"] {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.5);
}

.progress-dot:not(.active)[data-theme="sky"] {
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.5);
}

.progress-dot:not(.active)[data-theme="sunset"] {
    background: rgba(255, 112, 67, 0.3);
    border-color: rgba(255, 112, 67, 0.5);
}

.progress-dot:not(.active)[data-theme="mystical"] {
    background: rgba(126, 87, 194, 0.3);
    border-color: rgba(126, 87, 194, 0.5);
}

.progress-dot:not(.active)[data-theme="ocean"] {
    background: rgba(0, 172, 193, 0.3);
    border-color: rgba(0, 172, 193, 0.5);
}

.progress-line {
    height: 2px;
    background: rgba(128, 128, 128, 0.2);
    flex: 1;
}

    .progress-line.active {
        background: var(--primary);
    }

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.breadcrumb-item {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .breadcrumb-item:hover {
        color: var(--primary);
    }

    .breadcrumb-item.active {
        color: var(--text-primary);
        font-weight: 600;
    }

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #d1d5db;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #6b7280;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .nav-link:hover {
        background: var(--bg-tint);
        color: var(--primary);
    }

    .nav-link.active {
        background: var(--primary);
        color: white;
    }

/* Tab Navigation */
.tab-navigation {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

.tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

    .tab-button:hover {
        color: var(--primary);
    }

    .tab-button.active {
        color: var(--primary);
        border-bottom-color: var(--primary);
    }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .pagination-button:hover {
        border-color: var(--primary);
        color: var(--primary);
    }

    .pagination-button.active {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
    }

    .pagination-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Page Navigation Layout */
.page-navigation {
    margin-top: 2rem;
    padding: 0 1rem;
}

.page-navigation-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Navigation sections */
.nav-section {
    display: flex;
    align-items: center;
    min-height: 3rem;
}

    .nav-section.nav-left {
        justify-content: flex-start;
        flex: 1;
    }

    .nav-section.nav-center {
        justify-content: center;
        flex: 0 0 auto;
        gap: 0.5rem;
    }

    .nav-section.nav-right {
        justify-content: flex-end;
        flex: 1;
    }

    .nav-section .header-action-btn {
        margin: 0 0.25rem;
    }
