/*
Theme Name: LEM 24 Horas - Premium News Magazine
Description: Modern news magazine WordPress theme with Bootstrap 5.3.8, glassmorphism effects, and advanced animations
Version: 1.0.4
Author: Snow
License: GPL v2 or later
*/

#menu-menu-1 {
    list-style: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: white;
    overflow-x: hidden;
}

.logo {
    text-transform: uppercase;
    font-family: 'Calibri', sans-serif !important;
    font-style: italic;
    font-weight: 700;
}

/* Custom Colors */
.bg-primary-custom {
    background-color: #ff0066 !important;
}

.bg-primary-dark {
    background-color: #cc0052 !important;
}

.text-primary-custom {
    color: #ff0066 !important;
}

.bg-dark-custom {
    background-color: #0a0a0a !important;
}

.bg-dark-light {
    background-color: #1a1a1a !important;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, #ff0066, #ff3385, #cc0052) !important;
}

.gradient-cosmic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.gradient-aurora {
    background: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%) !important;
}

.gradient-sunset {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
}

.gradient-ocean {
    background: linear-gradient(135deg, #2196f3 0%, #00bcd4 100%) !important;
}

/* Advanced Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(255, 0, 102, 0.5),
            0 0 10px rgba(255, 0, 102, 0.3),
            0 0 15px rgba(255, 0, 102, 0.1);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 0, 102, 0.8),
            0 0 30px rgba(255, 0, 102, 0.4),
            0 0 40px rgba(255, 0, 102, 0.2);
    }
}

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

    100% {
        transform: translateX(100%);
    }
}

@keyframes rotate-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.shimmer {
    animation: shimmer 2s ease-in-out infinite;
}

.rotate-slow {
    animation: rotate-slow 20s linear infinite;
}

.gradient-animated {
    background: linear-gradient(-45deg, #ff0066, #00ffff, #ff3385, #66d9ef);
    background-size: 400% 400%;
    animation: gradient-shift 4s ease infinite;
}

/* Hover Effects */
.hover-float {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-float:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(255, 0, 102, 0.3);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 0, 102, 0.4);
    transform: scale(1.05);
}

/* Text Effects */
.text-gradient {
    background: linear-gradient(135deg, #ff0066, #00ffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow {
    text-shadow: 0 0 10px rgba(255, 0, 102, 0.5);
}

/* Parallax Background */
.parallax-bg {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,0,102,0.1)"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="10" cy="10" r="2" fill="url(%23a)"/><circle cx="30" cy="5" r="1" fill="url(%23a)"/><circle cx="50" cy="15" r="3" fill="url(%23a)"/><circle cx="70" cy="8" r="1.5" fill="url(%23a)"/><circle cx="90" cy="12" r="2.5" fill="url(%23a)"/></svg>');
    background-size: 200px 100px;
    animation: parallax 20s ease-in-out infinite alternate;
}

@keyframes parallax {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff0066, #00ffff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff3385, #66d9ef);
}

/* 3D Card Effects */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.4s ease;
}

.card-3d:hover {
    transform: rotateX(5deg) rotateY(5deg) translateZ(20px);
}

/* Neon Border Effect */
.neon-border {
    border: 2px solid transparent;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
        linear-gradient(135deg, #ff0066, #00ffff) border-box;
    border-radius: 1rem;
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    align-items: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff0066;
    margin: 0 2px;
    animation: loading 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.bg-transparent {
    background-color: transparent;
}

@keyframes loading {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Article Card Styles */
.article-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.article-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 0, 102, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 32px 64px rgba(255, 0, 102, 0.15);
}

/* Category Tags */
.category-tag {
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.2), rgba(0, 255, 255, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.4), rgba(0, 255, 255, 0.4));
    transform: translateY(-2px) scale(1.05);
}

/* Custom fonts */
.font-display {
    font-family: 'Playfair Display', serif;
}

.font-body {
    font-family: 'Inter', sans-serif;
}

/* Custom spacing */
.hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Nav link underline animation */
.nav-link-custom {
    position: relative;
    color: white !important;
    text-decoration: none;
}

.nav-link-custom:hover {
    color: #ff0066 !important;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff0066;
    transition: width 0.3s ease;
    display: inline-block;
    margin-left: 0;
    vertical-align: 0;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
}

.nav-link-custom:hover::after {
    width: 100%;
}

/* Bootstrap overrides */
.btn-primary-custom {
    background: linear-gradient(135deg, #ff0066, #ff3385, #cc0052);
    border: none;
    color: white;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #ff3385, #ff0066, #ff0066);
    color: white;
}

.form-control-custom {
    background-color: transparent;
    border: 1px solid #6c757d;
    color: white;
}

.form-control-custom:focus {
    background-color: transparent;
    border-color: #ff0066;
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 102, 0.25);
}

.form-control-custom::placeholder {
    color: #6c757d;
}

/* Single line text with ellipsis */
.text-single-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Multi-line text with ellipsis (3 lines max) */
.text-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 3);
    /* 3 lines * line-height */
}

/* Trending section specific styles */
.trending-number {
    font-size: 2.5rem !important;
    line-height: 1;
    min-width: 60px;
    flex-shrink: 0;
    text-align: center;
}

.trending-content {
    min-width: 0;
    /* This allows the flex item to shrink below its content size */
    flex: 1;
}

.trending-item {
    min-height: 120px;
    align-items: flex-start !important;
}

/* WordPress specific styles */
.wp-block-group {
    margin-bottom: 2rem;
}

.wp-block-image {
    margin-bottom: 1rem;
}

.wp-block-quote {
    border-left: 4px solid #ff0066;
    padding-left: 1rem;
    font-style: italic;
}

.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.pagination .page-numbers {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #ff0066;
    border-color: #ff0066;
    color: white;
}

.widget {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget h3 {
    color: white;
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: #ff0066;
}

#menu-main {
    list-style: none;
}

/* Comments */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: bold;
    color: #ff0066;
}

.comment-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.comment-content {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .px-4 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}



/* Mobile Menu Styles - mobile-menu.css */

/* Mobile Navigation Container */
.offcanvas-body nav.mb-4 {
    position: relative;
}

/* Main Menu List */
.offcanvas-body #menu-main-1 {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Menu Items */
.offcanvas-body .menu-item {
    position: relative;
    margin-bottom: 0.5rem;
}

/* Main Menu Links */
.offcanvas-body .menu-item>a {
    display: block;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Menu Link Hover Effects */
.offcanvas-body .menu-item>a:hover,
.offcanvas-body .menu-item>a:focus {
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.2), rgba(0, 255, 255, 0.1));
    border-color: rgba(255, 0, 102, 0.3);
    color: white !important;
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(255, 0, 102, 0.15);
}

/* Current Menu Item */
.offcanvas-body .current-menu-item>a,
.offcanvas-body .current_page_item>a {
    background: linear-gradient(135deg, rgba(255, 0, 102, 0.3), rgba(0, 255, 255, 0.2));
    border-color: rgba(255, 0, 102, 0.4);
    color: white !important;
    font-weight: 600;
}

/* Menu Items with Children - Dropdown Toggle */
.offcanvas-body .menu-item-has-children>a::after {
    content: '\f107';
    /* Font Awesome chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    float: right;
    margin-top: 2px;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.offcanvas-body .menu-item-has-children.show-submenu>a::after {
    transform: rotate(180deg);
    color: #ff0066;
}

/* Submenu Styles */
.offcanvas-body .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(-10px);
}

/* Show Submenu */
.offcanvas-body .menu-item-has-children.show-submenu .sub-menu {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* Submenu Items */
.offcanvas-body .sub-menu .menu-item {
    margin-bottom: 0.25rem;
    margin-left: 1rem;
    position: relative;
}

/* Submenu Links */
.offcanvas-body .sub-menu .menu-item>a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid transparent;
    border-radius: 0.5rem;
    position: relative;
}

/* Submenu Link Hover */
.offcanvas-body .sub-menu .menu-item>a:hover,
.offcanvas-body .sub-menu .menu-item>a:focus {
    background: rgba(255, 0, 102, 0.1);
    border-left-color: #ff0066;
    transform: translateX(5px);
    color: white !important;
}

/* Submenu Current Item */
.offcanvas-body .sub-menu .current-menu-item>a {
    background: rgba(255, 0, 102, 0.2);
    border-left-color: #ff0066;
    color: white !important;
    font-weight: 500;
}

/* Visual Connector Lines */
.offcanvas-body .sub-menu .menu-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 8px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%);
}

.offcanvas-body .menu-item-has-children.show-submenu::after {
    opacity: 1;
}

/* Animation Classes */
.offcanvas-body .menu-item {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.4s ease forwards;
}

.offcanvas-body .menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

.offcanvas-body .menu-item:nth-child(2) {
    animation-delay: 0.2s;
}

.offcanvas-body .menu-item:nth-child(3) {
    animation-delay: 0.3s;
}

.offcanvas-body .menu-item:nth-child(4) {
    animation-delay: 0.4s;
}

.offcanvas-body .menu-item:nth-child(5) {
    animation-delay: 0.5s;
}

.offcanvas-body .menu-item:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Submenu Item Animation */
.offcanvas-body .sub-menu .menu-item {
    animation: slideInSubmenu 0.3s ease forwards;
}

.offcanvas-body .sub-menu .menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

.offcanvas-body .sub-menu .menu-item:nth-child(2) {
    animation-delay: 0.15s;
}

.offcanvas-body .sub-menu .menu-item:nth-child(3) {
    animation-delay: 0.2s;
}

.offcanvas-body .sub-menu .menu-item:nth-child(4) {
    animation-delay: 0.25s;
}

.offcanvas-body .sub-menu .menu-item:nth-child(5) {
    animation-delay: 0.3s;
}

.offcanvas-body .sub-menu .menu-item:nth-child(6) {
    animation-delay: 0.35s;
}

@keyframes slideInSubmenu {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Ripple Effect on Click */
.offcanvas-body .menu-item>a {
    position: relative;
    overflow: hidden;
}

.offcanvas-body .menu-item>a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 0, 102, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.offcanvas-body .menu-item>a:active::before {
    width: 300px;
    height: 300px;
}

/* Scrollbar for Long Menus */
.offcanvas-body nav::-webkit-scrollbar {
    width: 4px;
}

.offcanvas-body nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.offcanvas-body nav::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff0066, #00ffff);
    border-radius: 2px;
}

.offcanvas-body nav::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff3385, #66d9ef);
}

/* Focus States for Accessibility */
.offcanvas-body .menu-item>a:focus {
    outline: 2px solid #ff0066;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .offcanvas-body .menu-item>a {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .offcanvas-body .menu-item>a:hover {
        border-color: #ff0066;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {

    .offcanvas-body .menu-item,
    .offcanvas-body .sub-menu,
    .offcanvas-body .menu-item>a,
    .offcanvas-body .menu-item>a::after {
        animation: none;
        transition: none;
    }
}

.dropdown-menu {
    background-color: #060606;
    border-radius: 0;
    border: 1px solid #282828;
    border-top: 0;
    margin-top: 36px !important;
    padding: 13px;
}