/**
 * Balyoz Mobile Navigation Styles
 * Custom mobile navigation with sliding drawer
 */

/* Hide Theme's Default Mobile Navigation */
.dt_mobilenav,
.dt_mobilenav-mainmenu-toggle,
.dt-mobilenav,
.dt-mobilenav-mainmenu-toggle {
    display: none !important;
}

/* Mobile Top Bar */
.balyoz-mobile-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9997;
    display: none;
    align-items: center;
    padding: 0 10px;
    justify-content: flex-start;
}

/* Mobile Trigger Button */
.balyoz-mobile-trigger {
    background: none;
    color: #dc2626;
    border: none;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 6px;
}

.balyoz-mobile-trigger:hover {
    background: #fef2f2;
    color: #991b1b;
}

.balyoz-mobile-trigger:hover .balyoz-hamburger span {
    background: #991b1b;
}

/* Logo styles removed - clean top bar with just hamburger */



.balyoz-mobile-trigger.active {
    background: #fef2f2;
    color: #991b1b;
    transform: scale(0.95);
}

.balyoz-mobile-trigger.active .balyoz-hamburger span {
    background: #991b1b;
}

/* Hide trigger text on mobile */
.balyoz-trigger-text {
    display: none;
}

/* Hamburger Icon */
.balyoz-hamburger {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 18px;
    height: 14px;
    justify-content: space-between;
}

.balyoz-hamburger span {
    display: block;
    height: 2px;
    background: #dc2626;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.balyoz-mobile-trigger.active .balyoz-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.balyoz-mobile-trigger.active .balyoz-hamburger span:nth-child(2) {
    opacity: 0;
}

.balyoz-mobile-trigger.active .balyoz-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Remove pulse animation for cleaner look */
@keyframes pulse {
    0% {
        box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 2px 10px rgba(220, 38, 38, 0.5);
    }
    100% {
        box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
    }
}

/* Mobile Overlay */
.balyoz-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.balyoz-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer */
.balyoz-mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 90%;
    max-width: 380px;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    z-index: 10000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.balyoz-mobile-drawer.active {
    right: 0;
}

/* Mobile Header */
.balyoz-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.balyoz-mobile-logo {
    flex: 1;
}

.balyoz-home-link {
    text-decoration: none;
    color: white;
    display: block;
    transition: opacity 0.3s ease;
}

.balyoz-home-link:hover {
    opacity: 0.8;
}

.balyoz-mobile-logo img {
    max-height: 40px;
    width: auto;
}

.balyoz-site-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balyoz-mobile-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.balyoz-mobile-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.balyoz-mobile-close span {
    width: 16px;
    height: 2px;
    background: white;
    border-radius: 1px;
    transition: all 0.3s ease;
}

.balyoz-mobile-close span:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.balyoz-mobile-close span:nth-child(2) {
    transform: rotate(-45deg) translate(3px, -3px);
}

/* Quick Navigation Icons */
.balyoz-mobile-quick-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e5e7eb;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}

.balyoz-quick-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px;
    background: white;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.balyoz-quick-nav-item:hover {
    background: #f3f4f6;
    color: #dc2626;
}

.balyoz-quick-nav-item svg {
    color: #6b7280;
    transition: color 0.3s ease;
}

.balyoz-quick-nav-item:hover svg {
    color: #dc2626;
}

/* Mobile Search */
.balyoz-mobile-search {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.balyoz-mobile-search form {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.balyoz-search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.balyoz-search-input::placeholder {
    color: #9ca3af;
}

.balyoz-search-btn {
    background: #dc2626;
    border: none;
    color: white;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.balyoz-search-btn:hover {
    background: #991b1b;
}

/* Menu Section */
.balyoz-mobile-menu-section {
    padding: 0 20px 20px;
}

.balyoz-menu-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 15px 0;
    padding: 15px 0 10px;
    border-bottom: 2px solid #dc2626;
    position: relative;
}

.balyoz-menu-title::before {
    content: "📱";
    margin-right: 8px;
}

/* Mobile Menu List */
.balyoz-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.balyoz-mobile-menu-list li {
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
}

.balyoz-mobile-menu-list li:last-child {
    border-bottom: none;
}

.balyoz-mobile-menu-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.balyoz-mobile-menu-list li a:hover {
    color: #dc2626;
    padding-left: 10px;
}

.balyoz-mobile-menu-list li a:hover::before {
    content: "→";
    position: absolute;
    left: -5px;
    color: #dc2626;
    font-weight: bold;
}

/* Dropdown Icon */
.balyoz-dropdown-icon {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.balyoz-mobile-menu-list li.menu-item-has-children > a:hover .balyoz-dropdown-icon {
    transform: rotate(180deg);
    color: #dc2626;
}

/* Sub Menu */
.balyoz-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 10px;
    overflow: hidden;
}

.balyoz-sub-menu li a {
    padding: 12px 20px;
    font-size: 14px;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.balyoz-sub-menu li:last-child a {
    border-bottom: none;
}

.balyoz-sub-menu li a:hover {
    background: white;
    color: #dc2626;
    padding-left: 25px;
}

/* Mobile Extra Sections */
.balyoz-mobile-extra {
    padding: 0 20px;
}

.balyoz-mobile-breaking,
.balyoz-mobile-categories {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.balyoz-mobile-breaking h4,
.balyoz-mobile-categories h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: bold;
    color: #1f2937;
}

/* Breaking News List */
.balyoz-mobile-breaking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.balyoz-breaking-item {
    display: block;
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.balyoz-breaking-item:hover {
    background: #fee2e2;
    border-color: #f87171;
    transform: translateX(5px);
}

/* Category Grid */
.balyoz-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.balyoz-category-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 14px;
    transition: all 0.3s ease;
}

.balyoz-category-item:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.balyoz-category-name {
    flex: 1;
    font-weight: 500;
}

.balyoz-category-count {
    font-size: 12px;
    opacity: 0.7;
}

/* Social Links */
.balyoz-mobile-social {
    padding: 0 20px 20px;
}

.balyoz-mobile-social h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    font-weight: bold;
    color: #1f2937;
}

.balyoz-social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.balyoz-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
}

.balyoz-social-link:hover {
    background: #f3f4f6;
    border-color: #dc2626;
    color: #dc2626;
    transform: translateX(5px);
}

.balyoz-social-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Platform-specific colors */
.balyoz-social-facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.balyoz-social-twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.balyoz-social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #dc2743;
}

.balyoz-social-youtube:hover {
    background: #ff0000;
    color: white;
    border-color: #ff0000;
}

.balyoz-social-whatsapp:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

/* Mobile Footer */
.balyoz-mobile-footer {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    margin-top: auto;
}

.balyoz-mobile-footer p {
    margin: 5px 0;
    font-size: 13px;
    color: #6b7280;
}

.balyoz-mobile-version {
    font-weight: 600;
    color: #dc2626;
}

/* Responsive Behavior - Show on ALL mobile devices */
@media (max-width: 768px) {
    .balyoz-mobile-top-bar {
        display: flex !important;
    }
    
    /* Add padding to body to account for fixed top bar on ALL pages */
    body {
        padding-top: 50px !important;
    }
    
    /* Hide ALL desktop menus on mobile */
    .main-navigation,
    .desktop-menu,
    .site-header .menu,
    .dt_mobilenav,
    .dt-mobilenav,
    .nav-menu,
    .primary-menu,
    header nav,
    .header-navigation {
        display: none !important;
    }
    
    /* Force show mobile elements */
    #balyoz-mobile-nav-overlay,
    #balyoz-mobile-nav-drawer,
    #balyoz-mobile-top-bar {
        display: block !important;
    }
    
    #balyoz-mobile-top-bar {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .balyoz-mobile-drawer {
        width: 95%;
        max-width: 100%;
    }
    
    .balyoz-trigger-text {
        display: none;
    }
    
    .balyoz-hamburger {
        width: 16px;
    }
    
    .balyoz-category-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.balyoz-slide-in {
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.balyoz-slide-out {
    animation: slideOut 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Fade animations */
.balyoz-fade-in {
    animation: fadeIn 0.3s ease;
}

.balyoz-fade-out {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Accessibility */
.balyoz-mobile-trigger:focus,
.balyoz-mobile-close:focus,
.balyoz-search-btn:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .balyoz-mobile-drawer {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        color: #f9fafb;
    }
    
    .balyoz-mobile-menu-list li a {
        color: #e5e7eb;
    }
    
    .balyoz-mobile-breaking,
    .balyoz-mobile-categories {
        background: #374151;
        color: #f9fafb;
    }
    
    .balyoz-social-link {
        background: #374151;
        color: #e5e7eb;
        border-color: #4b5563;
    }
}

/* RTL Support */
[dir="rtl"] .balyoz-mobile-drawer {
    left: -100%;
    right: auto;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .balyoz-mobile-drawer.active {
    left: 0;
}

[dir="rtl"] .balyoz-mobile-trigger {
    left: 20px;
    right: auto;
}

[dir="rtl"] .balyoz-mobile-menu-list li a:hover::before {
    content: "←";
    right: -5px;
    left: auto;
}