/*
Theme Name: Microespana Tools
Theme URI: https://microespanatools.com
Author: Saiful Asif
Author URI: https://saifulasif.com
Description: A production-ready WordPress theme for software downloads and blog, featuring a Tailwind-style UI, dark mode, and Elementor support.
Version: 2.5.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: microespanatools
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, translation-ready
*/


/* * DESIGN TOKENS & CSS VARIABLES * */
:root {
    /* Light Mode Palette */
    --primary: #1173B7;
    --primary-hover: #0E5E95;
    --primary-soft: #E7F2FB;
    
    --accent: #F15529;
    --accent-hover: #D94720;
    --accent-soft: #FFEAE3;
    
    --success: #60AA45;
    --success-hover: #4F8D38;
    --success-soft: #E9F6E6;

    --bg: #F7F8FA;
    --surface: #FFFFFF;
    --surface-alt: #F1F5F9;
    --border: #E2E8F0;
    
    --text: #0F172A;
    --text-muted: #475569;
    --text-subtle: #64748B;

    /* Focus Ring */
    --focus: rgba(17, 115, 183, 0.35);
}

/* Dark Mode Palette (Neutral Black/Gray) */
[data-theme="dark"] {
    /* Branding colors adjusted for dark contrast */
    --primary: #3AA0FF;
    --primary-hover: #1D8CF5;
    --primary-soft: #1e293b; /* Dark Slate */
    
    --accent: #FF6B4A;
    --accent-hover: #FF5430;
    --accent-soft: #3f1912;
    
    --success: #7AD65E;
    --success-hover: #63C74A;
    --success-soft: #142817;

    /* "Dark Black" Neutrals */
    --bg: #09090b;        /* Zinc 950 - Very deep black/gray */
    --surface: #18181b;   /* Zinc 900 - Dark surface */
    --surface-alt: #27272a; /* Zinc 800 - Lighter surface */
    --border: #3f3f46;    /* Zinc 700 - Visible border */
    
    --text: #F4F4F5;      /* Zinc 100 - High contrast text */
    --text-muted: #A1A1AA; /* Zinc 400 */
    --text-subtle: #71717A; /* Zinc 500 */

    --focus: rgba(58, 160, 255, 0.35);
}

/* Base Styles */
body {
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* AdSense Placeholder Pattern */
.ad-pattern {
    background-image: repeating-linear-gradient(
        45deg,
        var(--surface),
        var(--surface) 10px,
        var(--surface-alt) 10px,
        var(--surface-alt) 20px
    );
}

/* Typography overrides */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
}

/* Utility classes that might not be in Tailwind CDN or need overrides */
.rounded-xl2 {
    border-radius: 1rem; /* 16px */
}

.shadow-soft {
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.shadow-glow {
    box-shadow: 0 0 15px rgba(17, 115, 183, 0.3);
}

/* Animations */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: .85; }
}
.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fade-in 0.3s ease-out forwards;
}

/* WordPress Core Alignments */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.alignright {
    float: right;
    margin-left: 1.5em;
}
.alignleft {
    float: left;
    margin-right: 1.5em;
}

/* Elementor Compatibility */
.elementor-page .page-content {
    max-width: 100%;
    padding: 0;
}

/* Pagination Styles */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--surface-alt);
}

.pagination .page-numbers.current {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--text-muted);
}

.pagination .page-numbers i {
    font-size: 1rem;
}

/* GTranslate Integration - Enhanced Overrides */
.met-language-switcher {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
}

/* 1. Standard Select Dropdown Style */
.met-language-switcher select.gt_selector,
.met-language-switcher select#gtranslate_selector {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    padding: 0.5rem 2rem 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-family: inherit !important;
    line-height: 1.25rem !important;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    height: 2.5rem !important;
    min-width: 140px;
    box-shadow: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
}

/* 2. "Nice Dropdown" (Div based) Style */
.met-language-switcher .gt_selector {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.5rem !important;
    color: var(--text) !important;
    font-family: inherit !important;
    font-size: 0.875rem !important;
    padding: 0.4rem 0.8rem !important;
    height: auto !important;
    min-height: 2.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: none !important;
    transition: border-color 0.2s, background-color 0.2s;
}

/* Hover & Focus States */
.met-language-switcher select.gt_selector:hover,
.met-language-switcher .gt_selector:hover {
    background-color: var(--surface-alt) !important;
    border-color: var(--text-muted) !important;
}

.met-language-switcher select.gt_selector:focus,
.met-language-switcher .gt_selector.gt_open {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--focus) !important;
}

/* Dropdown Menu (Nice Dropdown) */
.met-language-switcher .gt_white_content {
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    padding: 0.5rem !important;
    margin-top: 0.5rem !important;
    color: var(--text) !important;
    max-height: 300px !important;
    overflow-y: auto !important;
}

/* Dropdown Items */
.met-language-switcher .gt_white_content a {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem 0.75rem !important;
    color: var(--text) !important;
    text-decoration: none !important;
    font-size: 0.875rem !important;
    border-radius: 0.375rem !important;
    transition: background-color 0.2s !important;
    background-color: transparent !important;
}

.met-language-switcher .gt_white_content a:hover {
    background-color: var(--surface-alt) !important;
    color: var(--primary) !important;
}

/* Flags Styling */
.met-language-switcher img {
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    margin-right: 0.5rem !important;
    vertical-align: middle !important;
}

/* Hide GTranslate Branding */
.met-language-switcher a[href*="gtranslate.io"] {
    display: none !important;
}

/* Dark Mode Specific Adjustments */
[data-theme="dark"] .met-language-switcher select.gt_selector {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
}
