/* ============================================================
   WADAI Navbar & Footer - Complete Redesign
   Red Primary Color, Dynamic & Professional
   ============================================================ */

/* ========== Navbar Styles ========== */
.wad-header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(217, 2, 23, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 0 !important;
}

.wad-header .navbar {
    margin-bottom: 0 !important;
}

.wad-header.scrolled {
    box-shadow: 0 6px 30px rgba(217, 2, 23, 0.15);
    border-bottom-color: var(--wadai-red);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--wadai-red) !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: var(--wadai-red-dark) !important;
}

.nav-logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(217, 2, 23, 0.2));
}

.navbar-brand:hover .nav-logo {
    transform: scale(1.1);
}

.nav-link {
    font-weight: 600;
    color: var(--wadai-text-dark) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
    color: var(--wadai-red) !important;
    background: rgba(217, 2, 23, 0.05);
    transform: translateY(-2px);
}

/* Dropdown Toggle */
.nav-link.dropdown-toggle {
    cursor: pointer;
}

.nav-link.dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    border-top-color: var(--wadai-red);
}

.dropdown.show .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    border: 2px solid rgba(217, 2, 23, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    background: white;
    min-width: 220px;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    color: var(--wadai-text-dark);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(217, 2, 23, 0.08);
    color: var(--wadai-red);
    border-left-color: var(--wadai-red);
    padding-left: 1.5rem;
}

.dropdown-item i {
    color: var(--wadai-red);
    font-size: 1rem;
}

.dropdown-item-text {
    color: var(--wadai-text-gray);
    font-size: 0.9rem;
    padding: 0.625rem 1.25rem;
}

.dropdown-item-text i {
    color: var(--wadai-red);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(217, 2, 23, 0.1);
}

.navbar-toggler {
    border: 2px solid var(--wadai-red);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(217, 2, 23, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(217, 2, 23, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Search Bar in Navbar */
.navbar form {
    border: 2px solid rgba(217, 2, 23, 0.15);
    transition: all 0.3s ease;
}

.navbar form:focus-within {
    border-color: var(--wadai-red);
    box-shadow: 0 0 0 0.25rem rgba(217, 2, 23, 0.1);
}

.navbar form .bi-search {
    color: var(--wadai-red);
}

.navbar form input::placeholder {
    color: #adb5bd;
}

/* Buttons */
.btn-brand {
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    color: white !important;
    border: none;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-brand:hover {
    background: linear-gradient(135deg, var(--wadai-red-dark) 0%, var(--wadai-red) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(217, 2, 23, 0.4);
    color: white !important;
}

.btn-outline-brand {
    border: 2px solid var(--wadai-red);
    color: var(--wadai-red) !important;
    background: transparent;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-outline-brand:hover {
    background: var(--wadai-red);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.3);
}

/* Notification Toggle */
.notification-toggle {
    border: 2px solid rgba(217, 2, 23, 0.2);
    background: white;
    color: var(--wadai-red);
    transition: all 0.3s ease;
}

.notification-toggle:hover {
    border-color: var(--wadai-red);
    background: rgba(217, 2, 23, 0.05);
    box-shadow: 0 4px 15px rgba(217, 2, 23, 0.2);
    transform: translateY(-2px);
}

.notification-badge {
    background: var(--wadai-red) !important;
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(217, 2, 23, 0.4);
}

.notification-menu {
    border: 2px solid rgba(217, 2, 23, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.notification-menu-header {
    background: linear-gradient(135deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    color: white;
    font-weight: 700;
}

.notification-item.unread {
    background: rgba(217, 2, 23, 0.08);
    border-left: 3px solid var(--wadai-red);
}

/* ========== Footer Styles - White Background ========== */
.wad-footer {
    background: #ffffff;
    color: var(--wadai-text-dark);
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(0, 0, 0, 0.06);
}

.wad-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
}

.footer-logo {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(217, 2, 23, 0.3));
}

.wad-footer .brand-col p {
    color: var(--wadai-text-gray);
    line-height: 1.8;
    max-width: 300px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(217, 2, 23, 0.08);
    color: var(--wadai-red);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icons a:hover {
    background: var(--wadai-red);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(217, 2, 23, 0.4);
    border-color: var(--wadai-red);
}

.wad-footer h6 {
    color: var(--wadai-text-black);
    font-weight: 800;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.75rem;
}

.wad-footer h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--wadai-red) 0%, var(--wadai-red-dark) 100%);
    border-radius: 2px;
}

.wad-footer ul li a {
    color: var(--wadai-text-gray);
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: inline-block;
    position: relative;
}

.wad-footer ul li a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--wadai-red);
    transition: width 0.3s ease;
}

.wad-footer ul li a:hover {
    color: var(--wadai-red);
    padding-left: 15px;
}

.wad-footer ul li a:hover::before {
    width: 8px;
}

.wad-footer hr {
    border-color: rgba(0, 0, 0, 0.08);
    margin: 2.5rem 0 1.5rem;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-bottom p {
    color: var(--wadai-text-gray);
}

.footer-bottom a {
    color: var(--wadai-text-gray);
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom a:hover {
    color: var(--wadai-red);
    text-decoration: none;
}

.footer-bottom .list-inline-item:not(:last-child)::after {
    content: '';
    margin: 0 0.5rem;
}

/* ========== Responsive ========== */
@media (max-width: 991.98px) {
    .navbar form {
        margin-top: 1rem;
        width: 100%;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover {
        background: rgba(217, 2, 23, 0.1);
    }
}

@media (max-width: 768px) {
    .wad-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .wad-footer .brand-col {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .wad-footer .brand-col p {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center !important;
    }
}

