/* ===============================
   THEME VARIABLES
   =============================== */

/* Light theme (default) */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-color2: #555;
    --text-color3: #777;
    --primary-color: #2985DC;

    --header-bg: #f8f9fa;
    --header-gradient: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);

    --card-bg: #f1f1f1;
    --footer-bg: #f0f0f0;
    --footer-gradient: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);

    --link-color: #2985DC;

    --muted-text: #555;
    --border-color: #ddd;
    --input-bg: #fff;
    --input-placeholder: #666;

    --text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    --iframe-invert:grayscale(0) invert(0);
    --hover-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* Dark theme */
body.dark-mode {
    --bg-color: #121212;
    --text-color: #f1f1f1;
    --text-color2: #ccc;
    --text-color3: #999;
    --primary-color: #2985DC;

    --header-bg: #1a1a1a;
    --header-gradient: linear-gradient(135deg, #000 0%, #1a1a1a 100%);

    --card-bg: #1f1f1f;
    --footer-bg: #1a1a1a;
    --footer-gradient: linear-gradient(135deg, #000 0%, #1a1a1a 100%);

    --link-color: #3498db;

    --muted-text: #ccc;
    --border-color: #333;
    --input-bg: rgba(255,255,255,0.1);
    --input-placeholder: #aaa;
    --iframe-invert:grayscale(100%) invert(100%);
    --text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.4);
    --hover-shadow: 0 4px 16px rgba(0, 123, 255, 0.25);
    --card-shadow:0 4px 16px rgba(0, 123, 255, 0.25);
}
body.dark-mode .hero-section {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff; /* text color for dark mode */
}

body.dark-mode .hero-section::before {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* ===============================
   BASE STYLES
   =============================== */
.custom-table {
    border: 1px solid var(--border-color);
}
.custom-table th {
    background-color: var(--bg-color);
    color: var(--text-color);
}
.custom-table td {
    background-color: var(--bg-color);
    color: var(--text-color)
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* ===============================
   LANGUAGE SWITCHER
   =============================== */

.language-switcher-dropdown {
    z-index: 1050;
}

.language-switcher-dropdown .btn {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.2);
    color:  var(--text-color);
    min-width: 70px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.language-switcher-dropdown .btn:hover,
.language-switcher-dropdown .btn:focus {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color:  var(--text-color);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(41, 133, 220, 0.3);
}

.language-switcher-dropdown .dropdown-menu {
    background: var(--bg-color);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border-radius: 8px;
    min-width: 150px;
}

.language-switcher-dropdown .dropdown-item {
    color: var(--text-color);
    padding: 10px 15px;
    border: none;
    background: transparent;
    transition: all 0.3s ease;
}

.language-switcher-dropdown .dropdown-item:hover {
    background: var(--primary-color);
    color: var(--text-color);
}

.language-switcher-dropdown .dropdown-item.active {
    background: rgba(41, 133, 220, 0.2);
    color: var(--primary-color);
}

.language-switcher-dropdown .flag-emoji {
    font-size: 1.1em;
    display: inline-block;
    width: 20px;
}

.language-switcher-dropdown .locale-name {
    font-size: 14px;
    font-weight: 500;
}

.language-switcher-dropdown .locale-code {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: normal;
}

@media (max-width: 768px) {
    .language-switcher-dropdown .dropdown-menu {
        min-width: 120px;
    }

    .language-switcher-dropdown .dropdown-item {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Loading state */
.language-switcher-dropdown [wire\:loading] .btn {
    opacity: 0.7;
    pointer-events: none;
}

.language-switcher-dropdown [wire\:loading] .dropdown-item {
    opacity: 0.5;
    pointer-events: none;
}
/* ===============================
   THEME SWITCHER
   =============================== */

.theme-switch {
    position: fixed;
    top: 20px;
    left: 0;
    z-index: 1100;
    width: 60px;
    height: 32px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-bg);
    transition: background-color 0.4s ease;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.slider .sun {
    color: #f39c12;
    font-size: 16px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.slider .moon {
    color: #3498db;
    font-size: 16px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.6;
}

input:checked + .slider {
    background-color: var(--border-color);
}

input:checked + .slider .sun {
    transform: translateX(-25px);
    opacity: 0.4;
}

input:checked + .slider .moon {
    transform: translateX(0px);
    opacity: 1;
}

/* ===============================
   HEADER
   =============================== */

#header-container {
    background: var(--header-gradient);
    padding: 20px 0;
    border-bottom: 2px solid var(--border-color);
}

#header-logo-container {
    text-align: center;
    margin-bottom: 20px;
}

#header-logo {
    max-height: 80px;
    width: auto;
}

#header-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-element {
    position: relative;
    padding: 15px 20px;
    margin: 5px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    min-width: 120px;
}

.header-element:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(41, 133, 220, 0.3);
    text-decoration: none;
}

.header-element-text {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===============================
   MOBILE HEADER
   =============================== */

.mobile-header {
    display: none;
    background: var(--header-bg);
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    padding: 5px;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    border-top: 1px solid var(--primary-color);
    display: none;
    z-index: 1000;
}

.mobile-menu.show {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.mobile-menu a:hover {
    background: var(--primary-color);
}

/* ===============================
   MAIN CONTENT
   =============================== */

.main-content {
    min-height: calc(100vh - 300px);
    padding: 40px 0;
}

/* ===============================
   PRODUCT CARD
   =============================== */

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    background: var(--card-bg);
    color: var(--text-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(41, 133, 220, 0.2);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.product-title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-old-price {
    text-decoration: line-through;
    color: var(--muted-text);
    font-size: 18px;
    margin-right: 10px;
}

/* ===============================
   LANGUAGE SWITCHER
   =============================== */

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
}

.language-switcher select {
    background: var(--header-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 5px 10px;
}

/* ===============================
   FOOTER
   =============================== */

#footer-container {
    background: var(--footer-gradient);
    border-top: 2px solid var(--border-color);
    padding: 40px 0 20px;
    color: var(--text-color);
}

.footer-section {
    margin-bottom: 30px;
}

.footer-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-link {
    color: var(--muted-text);
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

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

@media (max-width: 768px) {
    #header-container {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .main-content {
        padding: 20px 0;
    }

    .header-element {
        min-width: 100px;
        padding: 10px 15px;
    }
}

/* ===============================
   HERO SECTION
   =============================== */
.main-hero-section {

    padding: 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

/*
.hero-section {
    background: var(--header-gradient);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
*/
.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--muted-text);
    margin-bottom: 30px;
}

/* ===============================
   SEARCH BAR
   =============================== */

.search-bar {
    max-width: 600px;
    margin: 0 auto 40px;
}



.search-input {
    background: var(--header-bg) !important;
    border: 1px solid var(--border-color);
    color: var(--text-color) !important;
    border-radius: 10px;
    padding: 12px 20px;
}

.search-input::placeholder {
    color: var(--input-placeholder);
}

.search-btn {
    border-radius: 10px;
    background: var(--primary-color) !important;
    border: none;
    padding: 12px 25px;
    color: var(--muted-text);
}

.text-muted {
    color: var(--muted-text) !important;
}

/* ===============================
   CATEGORY NAVIGATION
   =============================== */

.category-nav {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.category-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 5px;
}

.category-link:hover,
.category-link.active {
    background: var(--primary-color);
    color: #fff;
}


/* ===============================
   ABOUT and Contacts
   =============================== */

/* Default (light mode) */

.hero-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #eaeaea 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    color: #111;
}

/* Тёмная тема (с приоритетом) */
body.dark-mode .hero-section {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%) !important;
    color: #fff !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

/* Dark mode */



.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color:var(--text-color);
    margin-bottom: 30px;
}

.contact-input {
    background: var(--bg-color) !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--text-color) !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease !important;
}

.contact-input:focus {
    background: var(--bg-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(41, 133, 220, 0.25) !important;
    color: var(--text-color) !important;
}

.contact-input::placeholder {
    color: var(--text-color3) !important;
}

.contact-input option {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
}

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

    .hero-subtitle {
        font-size: 1rem;
    }
}


/*NEWS Detailed */
.article-title {
    animation: fadeInUp 0.8s ease-out;
    text-shadow: var(--text-shadow);
}
/* Image Carousel */
.news-carousel {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.map_iframe{
    filter:var(--iframe-invert);
}
.carousel-image {
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Video Card Hover */
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

/* Action Buttons */
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}


/* Card Hover Effect */
.simplified-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Image styling for the related cards */
.related-card-img-top {
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}


.simplified-news-card a:hover .related-card-img-top {
    transform: scale(1.05);
}

/* Text styling */
.simplified-news-card .card-title-simple {
    color: var(--primary-color);
    font-size: 1.35rem;
    line-height: 1.4;
}

.simplified-news-card .card-text-simple {
    color: var(--text-color2) !important;
    font-size: 0.95rem;
    line-height: 1.7;
    min-height: 50px;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ------------------- SHARE MODAL STYLES ------------------- */
.share-modal-content {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 15px;
}

.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.share-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin: 0 auto;
    border-radius: 15px;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-facebook { background-color: #1877F2; }
.social-twitter { background-color: #000000; }
.social-linkedin { background-color: #0A66C2; }
.social-whatsapp { background-color: #25D366; }



#shareUrl {
    border: 1px solid #ced4da;
    background-color: white;
}

.copy-btn {
    background: var(--primary-color);;
    border: none;
}

.copy-btn:hover {
    opacity: 0.9;
}
/* ------------------- END SHARE MODAL STYLES ------------------- */


/* Responsive Design */
@media (max-width: 768px) {
    .carousel-image { height: 250px; }
}
/*NEWS Detailed */
