/* ==========================================================================
   FALIXO TOOLS - MASTER STYLESHEET v7.0
   ========================================================================== */

   .ad-responsive, .vertical{
    display: none !important;
   }
/* --- 1. THEME VARIABLES (DAY & NIGHT) --- */
:root {
    /* LIGHT THEME (Day) */
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --accent: #0284C7;
    --accent-hover: #0284C7;
    --success: #10B981;
    --border: #E2E8F0;
    
    /* Day Sky Background */
    --sky-bg: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 100%);
    --stars-display: none;
    --night-display: none;
    --day-display: block;
    --bird-color: rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] {
    /* DARK THEME (Night) */
    --bg-main: #0B0F19;
    --bg-alt: #06080D;
    --bg-card: #151C2C;
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --accent: #0284C7;
    --accent-hover: #0284C7;
    --success: #10B981;
    --border: #1E293B;

    /* Night Sky Background */
    --sky-bg: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    --stars-display: block;
    --night-display: block;
    --day-display: none;
    --bird-color: rgba(255, 255, 255, 0.4);
}


/* hero wrapper */
.tools-hero-section {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden; /* keeps background icons from creating scrollbars */
    background-color: transparent; /* inherits your body's day/night colors */
    border-bottom: 1px solid #1E293B;
}

/* lock the content above the background */
.hero-content, .tools-grid {
    position: relative;
    z-index: 2;
}

/* floating background container */
.floating-icons-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* lets users click through the background */
}

/* individual floating icons */
.bg-icon {
    position: absolute;
    opacity: 0.15; /* keeps it subtle for both day and night mode */
    filter: grayscale(50%); /* tones down bright emoji colors */
    animation: slowDrift 15s ease-in-out infinite alternate;
    transition: transform 0.2s ease-out; /* smooths out the JS parallax */
}

/* organic floating animation */
@keyframes slowDrift {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(10px) rotate(-5deg); }
}

/* offset animations so they don't all move identically */
.bg-icon:nth-child(even) {
    animation-duration: 22s;
    animation-direction: alternate-reverse;
}

/* set up the card for a smooth transition */
.tool-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* keep your existing background, border, padding, etc. here */
}

/* the icon transition setup */
.tool-card .icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* gives it a bouncy feel */
}

/* what happens when you hover over the card */
.tool-card:hover {
    transform: translateY(-8px); /* lifts the card up */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15); /* adds a deeper shadow */
    cursor: pointer;
}

/* what happens to the icon when you hover over the card */
.tool-card:hover .icon {
    transform: scale(1.15) rotate(5deg); /* makes the icon pop out and tilt slightly */
}

/* dark mode shadow adjustment so it looks good at night too */
body.dark-mode .tool-card:hover {
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.05); 
}

/* --- 2. RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.3s;
}

.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-4 { margin-top: 40px; }
.font-bold { font-weight: 800; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.pic-compressor{
    margin-left: 25px;
    margin-bottom: 15px;
}
/* --- 3. BUTTONS & INPUTS --- */
.btn-primary, .btn-success {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
.btn-success { background: var(--success); }
.btn-success:hover { background: #059669; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.full-width { width: 100%; display: block; margin-bottom: 10px; }

input[type="range"] { width: 100%; cursor: pointer; accent-color: var(--accent); }
input[type="number"], select {
    width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px;
    background: var(--bg-main); color: var(--text-main); font-family: 'Inter', sans-serif;
}
input[type="number"]:focus, select:focus { border-color: var(--accent); outline: none; }

/* --- 4. NAVIGATION HEADER --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; background: rgba(var(--bg-card), 0.95);
    backdrop-filter: blur(10px); z-index: 100; border-bottom: 1px solid var(--border);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo {font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    gap: 5px;
    align-items: center;}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { color: var(--text-main); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 25px; height: 3px; background: var(--text-main); border-radius: 3px; }

/* Dropdowns */
.dropdown { position: relative; display: inline-block; }
.dropbtn { background: none; border: none; font-size: 1rem; font-weight: 500; color: var(--text-main); cursor: pointer; font-family: 'Inter', sans-serif;}
.dropdown-content {
    display: none; position: absolute; background-color: var(--bg-card); min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1); border: 1px solid var(--border); border-radius: 8px; z-index: 1; top: 100%; left: 0;
}
.dropdown-content a { color: var(--text-main); padding: 12px 16px; display: block; font-size: 0.95rem; }
.dropdown-content a:hover { background-color: var(--bg-alt); color: var(--accent); }
.dropdown:hover .dropdown-content { display: block; }
.theme-icon { font-size: 1.2rem; }

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; overflow-y: scroll;
    background: var(--bg-card); box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 1000;
    transition: right 0.3s ease; display: flex; flex-direction: column; border-left: 1px solid var(--border);
}
.mobile-sidebar.open { right: 0; }
.close-btn { align-self: flex-end; padding: 20px; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }
.mobile-sidebar a { padding: 15px 20px; color: var(--text-main); font-weight: 500; border-bottom: 1px solid var(--border); }

/* --- 5. IMMERSIVE HERO & SKY --- */
.sky-container { position: relative; background: var(--sky-bg); transition: background 1s ease; overflow: hidden; }
.sky-elements { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero-content { position: relative; z-index: 2; padding-top: 40px;}

/* Sun */
.sun { position: absolute; top: 40px; right: 80px; width: 90px; height: 90px; border-radius: 50%; background: #FFD700; box-shadow: 0 0 80px 30px rgba(255, 215, 0, 0.5); display: var(--day-display); }

/* Realistic Clouds (Day) */
.real-clouds {
    position: absolute; top: 10%; left: -200px; width: 300px; height: 100px;
    background: transparent; display: var(--day-display);
    box-shadow: 100px 30px 40px 20px rgba(255,255,255,0.6), 250px 80px 50px 30px rgba(255,255,255,0.4);
    animation: drift 80s linear infinite; filter: blur(20px);
}
.real-birds { position: absolute; top: 20%; left: -150px; display: var(--day-display); animation: flyMurghabi 40s linear infinite; }

/* Realistic Night Sky */
.real-half-moon {
    position: absolute; top: 50px; right: 80px; width: 100px; height: 100px; border-radius: 50%;
    display: var(--night-display); background: transparent;
    box-shadow: inset -25px 0px 0 0px #F1F5F9, 0 0 40px 10px rgba(255,255,255,0.1);
}
.realistic-stars {
    position: absolute; width: 100%; height: 100%; display: var(--stars-display);
    background-image: radial-gradient(1px 1px at 20px 30px, #fff, rgba(0,0,0,0)), radial-gradient(1.5px 1.5px at 80px 80px, #fff, rgba(0,0,0,0)), radial-gradient(2px 2px at 150px 150px, rgba(255,255,255,0.8), rgba(0,0,0,0));
    animation: twinkle 4s infinite alternate;
}
.real-airplane { position: absolute; top: 30%; left: -100px; display: var(--night-display); animation: flyPlane 50s linear infinite; }
.blinking-light { position: absolute; bottom: 10px; right: 5px; width: 6px; height: 6px; background: #ff0000; border-radius: 50%; box-shadow: 0 0 10px #ff0000; animation: blink 1s infinite; }

@keyframes drift { to { transform: translateX(120vw); } }
@keyframes flyMurghabi { 0% { transform: translateX(0) translateY(0) scale(0.8); } 100% { transform: translateX(120vw) translateY(-50px) scale(0.5); } }
@keyframes flyPlane { 0% { transform: translateX(0) translateY(0); } 100% { transform: translateX(120vw) translateY(-100px); } }
@keyframes twinkle { 0% { opacity: 0.7; } 100% { opacity: 1; } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* --- 6. TOOLS GRID & CARDS --- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; position: relative; z-index: 2;}
.filter-btn {
    padding: 8px 20px; border-radius: 30px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-main); font-weight: 500; cursor: pointer; transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.tools-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 25px; position: relative; z-index: 2;
}
.tool-card {
    background: var(--bg-card); padding: 30px 20px; border-radius: 16px; text-align: center;
    border: 1px solid var(--border); transition: all 0.3s ease; display: block; color: var(--text-main);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.tool-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
.tool-card .icon { font-size: 2.5rem; margin-bottom: 15px; }
.tool-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.tool-card p { font-size: 0.9rem; color: var(--text-muted); }

.tool-card .icon img{
    width: 40px;
    border-radius: 4px;
}

.back-link {
    font-size: 15px;
}
.tool-ui-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

h1#tool-title {
    font-size: 22px;
}
p#tool-by {
    font-size: 14px;
    

}
p#tool-by span{
text-decoration: underline;
}

p#tool-by span:hover{
    font-weight: bold;
    font-style: italic;
    text-decoration: none;
}


.seo-content-block h2{
    font-size: 1.7rem !important;
}

.privacy-dis .tool-l-des{
    margin-left: 18px;
}
.seo-content-block .tool-l-des{
    font-size: 16px;
}

.seo-content-block h3{
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 600;
}
.seo-content-block  h4{
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 7px;
}
.seo-content-block h5{
    margin-top: 30px;
    font-size: 1.7rem;
}

.blog-nav a{
    color: white;
}

.blog-nav .dropdown-content  a{
    color: black;
}
.nav-scrolled a{
    color: black;
}
[data-theme="dark"] .nav-scrolled a{
    color: white;
}

[data-theme="dark"] .blog-nav .dropdown-content  a{
    color: white;
}
/* --- 7. WORKSPACE (INDIVIDUAL TOOL PAGES) --- */
.workspace-section { padding-top: 100px; padding-bottom: 60px; }
.ad-surround-grid { display: grid; grid-template-columns: 160px 1fr 160px; gap: 30px; align-items: start; }
.tool-main-card { background: var(--bg-card); border-radius: 16px; border: 1px solid var(--border); padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); }
.workspace-header { margin-bottom: 30px; text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 20px;}
.back-link { display: inline-block; color: var(--accent); font-weight: 600; margin-bottom: 15px; }

/* Upload Area */
.drop-zone {
    border: 2px dashed var(--border); border-radius: 12px; padding: 60px 20px;
    text-align: center; cursor: pointer; transition: all 0.3s; background: var(--bg-alt);
}
.drop-zone:hover { border-color: var(--accent); background: rgba(37, 99, 235, 0.05); }
.upload-icon { font-size: 3rem; margin-bottom: 15px; }

/* Editor Area */
.editor-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.preview-container { background: var(--bg-alt); border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 400px; padding: 20px;}
#image-preview { max-width: 100%; max-height: 500px; object-fit: contain; }

.settings-container { background: var(--bg-main); padding: 25px; border-radius: 12px; border: 1px solid var(--border); }
.setting-group { margin-bottom: 20px; }
.setting-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--text-main); }
.stats-box { background: var(--bg-alt); padding: 15px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 20px; font-size: 0.9rem; line-height: 1.8; }

/* Circle Crop Additions */
.round-crop .cropper-view-box, .round-crop .cropper-face { border-radius: 50%; }
.round-crop .cropper-dashed, .round-crop .cropper-line { display: none; }

/* --- 8. CALCULATOR UI SPECIFICS --- */
.calc-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.calc-tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.calc-tab-btn { flex: 1; padding: 20px; text-align: center; font-weight: 600; cursor: pointer; border: none; background: none; color: var(--text-muted); font-size: 1.1rem; transition: all 0.3s; }
.calc-tab-btn:hover { color: var(--accent); }
.calc-tab-btn.active { color: var(--accent); background: var(--bg-card); border-bottom: 3px solid var(--accent); }
.calc-content { padding: 40px; display: none; }
.calc-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 8px; color: var(--text-main); }
.input-wrapper { position: relative; }
.input-prefix { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 600; }
.input-suffix { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 600; }
.calc-input { width: 100%; padding: 12px 15px; border: 2px solid var(--border); border-radius: 8px; font-size: 1.1rem; background: var(--bg-main); color: var(--text-main); transition: border-color 0.3s; }
.calc-input.has-prefix { padding-left: 35px; }
.calc-input:focus { border-color: var(--accent); outline: none; }
.results-panel { background: var(--bg-alt); padding: 30px; border-radius: 12px; border: 1px solid var(--border); }
.result-box { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed var(--border); }
.result-box:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.result-label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.result-value { font-size: 2.5rem; font-weight: 800; color: var(--text-main); font-family: 'Outfit', sans-serif; }
.result-value.highlight { color: var(--success); }

/* --- 9. CONTENT SECTIONS (Split, FAQ, Blog) --- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.seo-content-block { line-height: 1.8; color: var(--text-main); }
.seo-content-block h2 { font-size: 2rem; margin: 40px 0 20px; }
.seo-content-block p { font-size: 1.1rem; margin-bottom: 20px; color: var(--text-muted); }

/* --- 10. AD PLACEHOLDERS --- */
.ad-placeholder {
    background: var(--bg-alt); border: 2px dashed var(--border); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-weight: 600; font-size: 0.9rem;
}
.ad-placeholder.banner { width: 100%; height: 90px; }
.ad-placeholder.vertical { width: 160px; height: 600px; position: sticky; top: 100px; }
.ad-responsive { display: flex; justify-content: center; overflow: hidden; }

/* --- 11. RESPONSIVE DESIGN (MOBILE) --- */
@media (max-width: 1024px) {
    .ad-surround-grid { grid-template-columns: 1fr; }
    .sidebar-ad { display: none; } /* Hide side ads on tablets/mobile */
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .split-grid, .editor-grid, .calc-grid, .footer-grid { grid-template-columns: 1fr !important; gap: 30px; }
    .reverse-mobile .split-image { order: -1; }
    .hero-content h1 { font-size: 2.2rem !important; }
    .tool-main-card { padding: 20px; }
    .calc-tabs { flex-direction: column; }
    .mobile-sidebar {
    position: fixed; overflow-y: scroll;
}
p#tool-by {
    font-size: 11px;
}
h1#tool-title {
    font-size: 14px;
}
}

