/* AkaziNet - Main Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* ============================================
   Floating Sticky Navbar
   ============================================ */

.floating-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-navbar-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(229, 229, 229, 0.6);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-navbar.scrolled .floating-navbar-container {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.04);
    border-radius: 16px;
}

.floating-navbar.scrolled {
    padding: 8px 16px;
}

.floating-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 10px 0 16px;
    gap: 10px;
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.03);
}

/* Desktop Nav Items */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    margin: 2px 10px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    border: none;
    background: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
}

.nav-item:hover {
    color: #172d13;
    background-color: rgba(23, 45, 19, 0.06);
}

.nav-item.active {
    color: #172d13;
    background-color: rgba(23, 45, 19, 0.08);
    font-weight: 600;
}

/* Active Indicator Pill */
.nav-indicator {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 3px;
    background: #172d13;
    border-radius: 3px;
    animation: indicatorSlide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes indicatorSlide {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 16px;
        opacity: 1;
    }
}

/* Chevron */
.nav-chevron {
    font-size: 0.6rem;
    transition: transform 0.25s ease;
    opacity: 0.5;
}

.nav-dropdown.open .nav-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 260px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(229, 229, 229, 0.7);
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.97);
    border-left: 1px solid rgba(229, 229, 229, 0.7);
    border-top: 1px solid rgba(229, 229, 229, 0.7);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(23, 45, 19, 0.05);
    color: #172d13;
}

.dropdown-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 45, 19, 0.08);
    color: #172d13;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.dropdown-item:hover .dropdown-item-icon {
    background: #172d13;
    color: #fff;
}

.dropdown-item-icon.accent {
    background: rgba(215, 111, 48, 0.1);
    color: #d76f30;
}

.dropdown-item:hover .dropdown-item-icon.accent {
    background: #d76f30;
    color: #fff;
}

.dropdown-item-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.dropdown-item:hover .dropdown-item-icon.green {
    background: #16a34a;
    color: #fff;
}

.dropdown-item-label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.dropdown-item-desc {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.3;
}

/* Action Buttons */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-family: inherit;
}

.nav-btn-ghost {
    color: #555;
    background: transparent;
}

.nav-btn-ghost:hover {
    color: #172d13;
    background: rgba(23, 45, 19, 0.06);
}

.nav-btn-primary {
    color: #fff;
    background: #d76f30;
    font-weight: 600;
}

.nav-btn-primary:hover {
    background: #c05e25;
    box-shadow: 0 4px 16px rgba(215, 111, 48, 0.35);
    transform: translateY(-1px);
}

.nav-btn-primary:active {
    transform: translateY(0);
}

/* Mobile Toggle */
.navbar-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.navbar-mobile-toggle:hover {
    background: rgba(23, 45, 19, 0.06);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.navbar-mobile-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-mobile-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-mobile-toggle.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: #fff;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    padding: 80px 16px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 0 0 20px;
}

.mobile-menu.open .mobile-menu-inner {
    transform: translateX(0);
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: #444;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-item:hover {
    color: #172d13;
    background: rgba(23, 45, 19, 0.06);
}

.mobile-nav-item.active {
    color: #172d13;
    background: rgba(23, 45, 19, 0.08);
    font-weight: 600;
}

.mobile-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

.mobile-menu-divider {
    height: 1px;
    background: #eee;
    margin: 12px 16px;
}

.mobile-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 16px 0;
    padding: 14px 20px;
    background: #d76f30;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-cta-btn:hover {
    background: #c05e25;
    box-shadow: 0 4px 16px rgba(215, 111, 48, 0.35);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .navbar-nav,
    .navbar-actions {
        display: none;
    }

    .navbar-mobile-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .nav-btn-label {
        display: none;
    }

    .nav-item {
        padding: 7px 10px;
    }
}

/* Admin navigation */
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.admin-nav-link:hover {
    color: white;
    background-color: rgba(255,255,255,0.1);
}

.admin-nav-link.active {
    color: white;
    background-color: rgba(255,255,255,0.15);
    font-weight: 600;
}

/* Job card hover effects */
.job-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #172d13;
    outline-offset: 2px;
}

/* Form focus */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(23, 45, 19, 0.1);
}

/* Responsive sidebar */
@media (max-width: 1023px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .admin-sidebar:not(.-translate-x-full) {
        transform: translateX(0);
    }
    .ml-64 {
        margin-left: 0;
    }
}

/* Print styles */
@media print {
    nav, footer, .admin-sidebar, .no-print {
        display: none !important;
    }
}
