/**
 * Mega Menu - Apple.com Style
 * Gazeta Nord-Vest
 */

/* ============================================
   SKIP TO CONTENT (Accessibility)
   ============================================ */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 400;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* ============================================
   FOCUS INDICATORS
   ============================================ */
*:focus-visible {
    outline: 2px solid #2997ff;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================
   MEGA MENU - Apple.com Style
   ============================================ */
.ow-mega-menu-wrapper {
    position: relative;
}

.ow-mega-menu-item {
    position: static;
}

.ow-mega-menu-item > .nav-link {
    position: relative;
    padding: 12px 14px;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.ow-mega-menu-item > .nav-link:hover {
    color: #fff;
    background: transparent;
}

.ow-mega-menu-item > .nav-link::after {
    display: none;
}

/* ============================================
   DROPDOWN - Apple Translucent Style
   ============================================ */
.ow-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100vw;
    background: rgba(29, 29, 31, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    padding: 0;
    margin: 0;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1000;
    border-top: none;
    box-shadow: none;
}

.ow-mega-menu-item:hover .ow-mega-dropdown,
.ow-mega-menu-item:focus-within .ow-mega-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* ============================================
   DROPDOWN CONTENT
   ============================================ */
.ow-mega-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ============================================
   SECTIONS
   ============================================ */
.ow-mega-subcategories,
.ow-mega-articles,
.ow-mega-quick-links {
    padding: 0;
    border: none;
}

.ow-mega-section-title {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.56);
    margin-bottom: 10px;
    padding: 0;
    border: none;
    text-transform: none;
    letter-spacing: 0;
}

.ow-mega-section-title i {
    display: none;
}

/* ============================================
   SUBCATEGORY LINKS
   ============================================ */
.ow-subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ow-subcategory-item {
    margin-bottom: 0;
}

.ow-subcategory-link {
    display: block;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    transition: color 0.3s ease;
    border-radius: 0;
    background: transparent;
}

.ow-subcategory-link::before {
    display: none;
}

.ow-subcategory-link:hover,
.ow-subcategory-link:focus {
    color: #fff;
    background: transparent;
    padding-left: 0;
}

.ow-subcategory-icon {
    display: none;
}

/* ============================================
   ARTICLES
   ============================================ */
.ow-mega-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ow-mega-article-item {
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
}

.ow-mega-article-item:last-child {
    margin-bottom: 0;
}

.ow-mega-article-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.ow-mega-article-link:hover {
    opacity: 0.8;
    transform: none;
}

.ow-mega-article-thumb-wrapper {
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.ow-mega-article-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    display: block;
    transition: none;
}

.ow-mega-article-link:hover .ow-mega-article-thumb {
    transform: none;
}

.ow-mega-article-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ow-mega-article-category {
    font-size: 0.6875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.56);
    margin-bottom: 2px;
    padding: 0;
    background: none;
    text-transform: none;
    letter-spacing: 0;
}

.ow-mega-article-title {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ow-mega-article-link:hover .ow-mega-article-title {
    color: #fff;
}

.ow-mega-article-meta {
    display: none;
}

/* ============================================
   QUICK LINKS
   ============================================ */
.ow-quick-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ow-quick-link-item {
    margin-bottom: 0;
}

.ow-quick-link {
    display: block;
    padding: 4px 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    transition: color 0.3s ease;
    border-radius: 0;
    box-shadow: none;
}

.ow-quick-link::before {
    display: none;
}

.ow-quick-link:hover,
.ow-quick-link:focus {
    color: #fff;
    background: transparent;
    transform: none;
    box-shadow: none;
}

.ow-quick-link i {
    display: none;
}

/* Featured link - blue */
.ow-quick-link-item:first-child .ow-quick-link {
    color: #2997ff;
    background: transparent;
    padding: 4px 0;
    font-weight: 400;
    font-size: 0.75rem;
}

.ow-quick-link-item:first-child .ow-quick-link:hover {
    color: #2997ff;
    text-decoration: underline;
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Large Desktop */
@media (min-width: 1200px) {
    .ow-mega-content {
        max-width: 1100px;
        padding: 44px 30px;
        gap: 40px;
    }
}

/* Desktop */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .ow-mega-content {
        max-width: 960px;
        padding: 36px 24px;
        gap: 30px;
    }
}

/* Tablet & Mobile - handled in ottoweb.css */
@media (max-width: 991.98px) {
    .ow-mega-dropdown {
        position: static !important;
        width: 100% !important;
        background: #000 !important;
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    .ow-mega-content {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        padding: 0 !important;
        gap: 20px !important;
    }

    .ow-mega-subcategories,
    .ow-mega-articles,
    .ow-mega-quick-links {
        padding: 0 !important;
    }

    .ow-mega-article-thumb {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.ow-nav-helper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.ow-nav-helper.visible {
    opacity: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
