/* ===== Theme CSS Variables (Bootstrap overrides) ===== */
:root {
    --primary-color: #088dcd;
    --primary-hover: #066e9f;
}

[data-theme="dark"] {
    --bs-body-bg: #121212;
    --bs-body-color: #f8f9fa;
    --bs-light-rgb: 30, 30, 30;
    --bs-light: #1e1e1e;
    --bs-border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Cairo', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Base Overrides */
a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--primary-hover);
}

.primary-text {
    color: var(--primary-color) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1a1a 100%) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Winku Style Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 25%;
    border-radius: 2px;
}

/* Custom Utilities */
.border-dashed {
    border-style: dashed !important;
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}

.link-hover:hover {
    color: var(--primary-color) !important;
}

/* Animations */
.breaking-badge i {
    animation: flash 2s infinite;
}
@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.typewriter-text {
    overflow: hidden;
    border-left: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: blink-caret .75s step-end infinite;
}
[dir="ltr"] .typewriter-text {
    border-left: none;
    border-right: 3px solid var(--primary-color);
}
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Entrance Animations */
.dir-slide-in { animation: slideInRTL 1.5s ease-out forwards; opacity: 0; }
[dir="ltr"] .dir-slide-in { animation: slideInLTR 1.5s ease-out forwards; opacity: 0; }

.dir-slide-in-opposite { animation: slideInLTR 1.5s ease-out forwards; opacity: 0; }
[dir="ltr"] .dir-slide-in-opposite { animation: slideInRTL 1.5s ease-out forwards; opacity: 0; }

@keyframes slideInRTL {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideInLTR {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Social Icon Brands Colors */
.social-btn:hover, .social-btn-footer:hover { 
    background-color: #fff !important; 
    border-color: #fff !important;
}
.social-btn:hover i.fa-facebook, .social-btn-footer:hover i.fa-facebook { color: #1877f2; }
.social-btn:hover i.fa-x-twitter, .social-btn-footer:hover i.fa-x-twitter { color: #000000; }
.social-btn:hover i.fa-instagram, .social-btn-footer:hover i.fa-instagram { color: #e1306c; }
.social-btn:hover i.fa-linkedin, .social-btn-footer:hover i.fa-linkedin { color: #0077b5; }
.social-btn:hover i.fa-youtube, .social-btn-footer:hover i.fa-youtube { color: #ff0000; }
.social-btn:hover i.fa-telegram, .social-btn-footer:hover i.fa-telegram { color: #0088cc; }
.social-btn-footer:hover i.fa-tiktok { color: #000000; }

/* Navbar links hover */
.navbar-nav .nav-link {
    position: relative;
    padding-bottom: 5px;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}
[dir="ltr"] .navbar-nav .nav-link::after {
    right: auto;
    left: 0;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    width: 100%;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* New Features Styles */
.stories-container {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.stories-container::-webkit-scrollbar {
    display: none;
}
.cursor-pointer {
    cursor: pointer;
}
.hover-scale {
    transition: transform 0.2s ease;
}
.hover-scale:hover {
    transform: scale(1.1);
}
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}
.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


/* Nature Hub Styles */
.nature-hero {
    width: 100vw;
    margin-right: calc(-50vw + 50%);
    margin-left: calc(-50vw + 50%);
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: url('https://images.unsplash.com/photo-1501854140801-50d01698950b?w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    margin-bottom: 2rem;
    overflow: hidden;
}
.nature-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}
.glass-search {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 5px;
}
.glass-search input {
    background: transparent;
    border: none;
    color: white;
    box-shadow: none !important;
}
.glass-search input::placeholder {
    color: rgba(255,255,255,0.7);
}
.nature-card {
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.nature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.nature-card img {
    transition: all 0.5s ease;
}
.nature-card:hover img {
    transform: scale(1.05);
}
.card-img-overlay-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}


/* Hover Effects for Cards & Images */
.card-img-wrapper img, .card img {
    transition: transform 0.4s ease-in-out !important;
}
.hover-card:hover .card-img-wrapper img, .hover-card:hover img {
    transform: scale(1.1);
}
.card-img-wrapper {
    overflow: hidden;
}

/* Dark Mode Extends */
body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}
body.dark-mode .bg-white, body.dark-mode .bg-light {
    background-color: #1e1e1e !important;
}
body.dark-mode .text-dark {
    color: #f8f9fa !important;
}
body.dark-mode .text-muted {
    color: #adb5bd !important;
}
body.dark-mode .card, body.dark-mode .dropdown-menu {
    background-color: #242424 !important;
    border-color: #333 !important;
}
body.dark-mode .border-bottom {
    border-color: #333 !important;
}
body.dark-mode .navbar {
    background-color: #1e1e1e !important;
    border-bottom: 1px solid #333;
}
body.dark-mode .dropdown-item {
    color: #e0e0e0;
}
body.dark-mode .dropdown-item:hover {
    background-color: #333;
    color: #fff;
}
body.dark-mode #searchOverlay {
    background-color: rgba(18, 18, 18, 0.98) !important;
}
body.dark-mode .input-group-text, body.dark-mode .form-control {
    background-color: #333;
    color: #fff;
    border-color: #444;
}

/* Drawer Button & Sidebar */
.drawer-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 0;
    z-index: 1050;
}
.drawer-toggle-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    transform-origin: left center;
}
.drawer-toggle-btn.open span:nth-child(1) { transform: rotate(45deg); width: 28px; }
.drawer-toggle-btn.open span:nth-child(2) { opacity: 0; width: 0; }
.drawer-toggle-btn.open span:nth-child(3) { transform: rotate(-45deg); width: 28px; }

.custom-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    z-index: 1060;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
}
.custom-sidebar.show { right: 0; }
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }
