/*
Theme Name: Esteem Dev
Theme URI: https://esteemdev.ir/
Author: Ali Momen & Antigravity
Author URI: https://alimomen.ir/
Description: Custom high-performance WordPress theme for the Esteem & Esteem Dev brands. Includes built-in advanced SEO metadata, sitemap generator, custom redirects dashboard, 404 hit logger, and ajax fuzzy search. Fully optimized, plugin-free architecture.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: esteem-dev
Tags: translation-ready, rtl-language-support, dark-mode, custom-post-types
*/

/* Core CSS adjustments to support Tailwind CSS overrides and RTL configurations */
body {
    direction: rtl;
    text-align: right;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

/* Glassmorphism glass styling helpers */
.glass-effect {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
[data-theme="dark"] .glass-effect {
    background-color: rgba(22, 27, 34, 0.8);
}

/* Scroll to Top Button */
.back-to-top {
    position: fixed !important;
    bottom: 2rem !important;
    left: 2rem !important;
    right: auto !important;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: var(--primary) !important;
    color: #111111 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999 !important;
    border: 2px solid var(--background) !important;
    text-decoration: none !important;
}

.back-to-top i {
    font-size: 1.5rem !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.back-to-top:hover {
    background-color: var(--text-primary) !important;
    color: var(--background) !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}
