/* ========================================
   DROPDOWN MENU STYLES
   ======================================== */

/* Menu Item Container */
.menu-item {
    position: relative;
    display: inline-block;
}

.menu-item.has-dropdown > .menu-link {
    padding-right: 20px;
}

/* Dropdown Icon */
.dropdown-icon {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.menu-item.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu Container */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.menu-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-inner {
    padding: 15px;
}

/* Dropdown List Style (Simple Links) */
.dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-link i {
    width: 20px;
    font-size: 1.1rem;
    color: #B78D4D;
}

.dropdown-link:hover {
    background: #f8f8f8;
    color: #B78D4D;
    transform: translateX(5px);
}

/* Dropdown Grid Style (Category with Images) */
.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-width: 600px;
}

.dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    border-color: #B78D4D;
    box-shadow: 0 5px 15px rgba(183, 141, 77, 0.15);
    transform: translateY(-2px);
}

.dropdown-item-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
    background: #f8f8f8;
}

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

.dropdown-item:hover .dropdown-item-image img {
    transform: scale(1.05);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-item-title {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.dropdown-item-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Mega Menu for Large Dropdowns */
.dropdown-menu.mega-menu {
    min-width: 700px;
    max-width: 900px;
}

.dropdown-menu.mega-menu .dropdown-inner {
    padding: 30px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        margin-top: 0;
        background: #f8f8f8;
    }
    
    .menu-item:hover .dropdown-menu {
        transform: none;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
    }
    
    .dropdown-item-image {
        height: 100px;
    }
}

/* Enhanced Hover Effects */
.menu-item {
    transition: all 0.3s ease;
}

.menu-item > .menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #B78D4D;
    transition: width 0.3s ease;
}

.menu-item:hover > .menu-link::after {
    width: 100%;
}

/* Arrow Indicator for Dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff;
}

/* Smooth Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .dropdown-menu {
        background: #2a2a2a;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    }
    
    .dropdown-link {
        color: #e0e0e0;
    }
    
    .dropdown-link:hover {
        background: #3a3a3a;
        color: #B78D4D;
    }
    
    .dropdown-item {
        background: #2a2a2a;
        border-color: #3a3a3a;
    }
    
    .dropdown-item-title {
        color: #e0e0e0;
    }
    
    .dropdown-item-desc {
        color: #999;
    }
}

/* Accessibility */
.menu-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link:focus,
.dropdown-item:focus {
    outline: 2px solid #B78D4D;
    outline-offset: 2px;
}
