/**
 * Navigation & News Ticker Gradient Fix
 * Konsisten, Professional, Modern Design
 * Version: 3.1.0
 */

/* ============================================
   NEWS TICKER - MODERN GRADIENT STYLE
   ============================================ */

.news-ticker {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    border-image-slice: 1;
    position: relative;
    overflow: hidden;
}

.news-ticker::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.news-ticker .container {
    position: relative;
    z-index: 1;
}

.news-ticker__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.875rem 0;
}

.news-ticker__label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #f54ea2 0%, #ff7676 100%);
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(245, 78, 162, 0.4);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.news-ticker__label::before {
    content: '⚡';
    font-size: 1rem;
    animation: bounce 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.news-ticker__content {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.news-ticker__slider {
    display: flex;
    gap: 3rem;
    animation: ticker 40s linear infinite;
    will-change: transform;
}

.news-ticker__slider:hover {
    animation-play-state: paused;
}

.news-ticker__item {
    flex-shrink: 0;
    white-space: nowrap;
}

.news-ticker__item a {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.news-ticker__item a::before {
    content: '●';
    color: #f54ea2;
    font-size: 0.5rem;
    animation: blink 2s infinite;
}

.news-ticker__item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f54ea2, #ff7676);
    transition: width 0.3s ease;
}

.news-ticker__item a:hover {
    color: #fccb90;
    transform: translateY(-1px);
}

.news-ticker__item a:hover::after {
    width: 100%;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================
   BREAKING NEWS - ALTERNATIVE STYLE
   ============================================ */

.breaking-news {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
    border-image-slice: 1;
    position: relative;
    overflow: hidden;
}

.breaking-news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(240, 147, 251, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.breaking-label {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
    position: relative;
    z-index: 1;
}

.breaking-content {
    position: relative;
    z-index: 1;
}

/* ============================================
   PRIMARY NAVIGATION - MODERN GRADIENT
   ============================================ */

.primary-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    position: relative;
}

.primary-navigation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.primary-navigation-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.primary-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.primary-menu > li {
    position: relative;
    margin: 0;
}

.primary-menu > li > a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.primary-menu > li > a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 8px;
}

.primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #fccb90, #d57eeb);
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.primary-menu > li > a:hover::before,
.primary-menu > li.current-menu-item > a::before {
    opacity: 1;
}

.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after {
    width: 80%;
}

.primary-menu > li > a:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Dropdown Menu */
.primary-menu > li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    list-style: none;
}

.primary-menu > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu > li > ul > li > a {
    display: block;
    padding: 0.75rem 1rem;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.primary-menu > li > ul > li > a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

/* ============================================
   MAIN NAVIGATION - CONSISTENT GRADIENT
   ============================================ */

.main-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-navigation ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-navigation ul li a:hover::before,
.main-navigation ul li.current-menu-item > a::before {
    opacity: 1;
}

/* ============================================
   DESKTOP NAVIGATION - GRADIENT BAR
   ============================================ */

nav.bg-gradient-to-r {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

/* ============================================
   MOBILE MENU - MODERN GRADIENT
   ============================================ */

.mobile-menu {
    background: white;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #667eea, #764ba2);
    border-image-slice: 1;
}

.mobile-menu ul li a {
    position: relative;
    overflow: hidden;
}

.mobile-menu ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.mobile-menu ul li a:hover::before {
    width: 4px;
}

.mobile-menu ul li a:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05), transparent);
    color: #667eea;
    padding-left: 1.25rem;
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */

.mobile-bottom-nav {
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    border-image-slice: 1;
}

.mobile-bottom-nav a.active {
    color: #667eea;
    position: relative;
}

.mobile-bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 0 0 3px 3px;
}

nav.fixed.bottom-0 {
    background: white !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1) !important;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, #667eea, #764ba2) !important;
    border-image-slice: 1;
}

/* ============================================
   TOP BAR - CONSISTENT GRADIENT
   ============================================ */

.top-bar,
.hidden.lg\\:block.bg-gradient-to-r {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%) !important;
    box-shadow: 0 2px 10px rgba(30, 60, 114, 0.3);
}

/* ============================================
   HEADER - GRADIENT ACCENTS
   ============================================ */

.site-header {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.site-title a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.site-title a:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   SEARCH BUTTON - GRADIENT ON HOVER
   ============================================ */

.header-search button,
.header-actions button {
    transition: all 0.3s ease;
}

.header-search button:hover,
.header-actions button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

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

@media (max-width: 1023px) {
    .news-ticker__slider {
        animation-duration: 30s;
    }
    
    .news-ticker__inner {
        gap: 1rem;
    }
    
    .news-ticker__label {
        padding: 0.5rem 1rem;
        font-size: 0.625rem;
    }
    
    .news-ticker__item a {
        font-size: 0.813rem;
    }
}

@media (max-width: 767px) {
    .news-ticker {
        display: none; /* Hidden on mobile, use mobile nav instead */
    }
    
    .breaking-news {
        padding: 0.625rem 0;
    }
    
    .breaking-label {
        padding: 0.375rem 0.75rem;
        font-size: 0.625rem;
    }
}

/* ============================================
   ANIMATION PERFORMANCE
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .news-ticker__slider,
    .breaking-content .flex {
        animation: none;
    }
    
    .news-ticker__label,
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .news-ticker,
    .breaking-news,
    .primary-navigation,
    .mobile-bottom-nav {
        display: none;
    }
}
