/* ============================================
   MODERN PREMIUM DESIGN - ToolsFree.org
   ============================================ */

:root {
    /* Deep, rich gradients for a professional look */
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --accent-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);

    /* Dark Theme Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-dark-glass: rgba(15, 23, 42, 0.6);
    --bg-card-glass: rgba(30, 41, 59, 0.7);

    /* Text Colors - Always White/Light for Dark Theme */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-light: rgba(255, 255, 255, 0.6);
    --text-white: #ffffff;

    /* Borders & Shadows */
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.toolsfree-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Deep Midnight Gradient Background */
    background: radial-gradient(circle at top center, #1e1b4b 0%, #0f172a 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background glow effects */
body.toolsfree-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15) 0%, transparent 25%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.toolsfree-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: #ffffff;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

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

.toolsfree-main {
    padding: 3rem 0 5rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-gradient {
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Buttons */
.button-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
    border: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   CARDS & TOOLS
   ============================================ */

.card {
    background: var(--bg-card-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.tool-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.tool-card:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-5px);
    border-color: #6366f1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tool-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tool-link {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
}

.tool-link:hover {
    color: #a5b4fc;
}

/* ============================================
   FORMS & INPUTS
   ============================================ */

.tool-textarea,
.tool-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    color: #ffffff;
    font-family: monospace;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.tool-textarea:focus,
.tool-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.tool-textarea {
    min-height: 200px;
}

/* ============================================
   TEXT UTILITIES (Override Bootstrap)
   ============================================ */

/* Force all headings to be white */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
body.toolsfree-body h1,
body.toolsfree-body h2,
body.toolsfree-body h3,
body.toolsfree-body h4,
body.toolsfree-body h5,
body.toolsfree-body h6,
.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
    color: #ffffff !important;
    font-weight: 600;
}

/* Force all labels to be white */
label,
.form-label,
.form-check-label,
body.toolsfree-body label,
body.toolsfree-body .form-label,
body.toolsfree-body .form-check-label {
    color: #ffffff !important;
}

/* Paragraphs and text */
p,
li,
span,
body.toolsfree-body p,
body.toolsfree-body li,
body.toolsfree-body span {
    color: var(--text-secondary) !important;
}

.text-muted,
body.toolsfree-body .text-muted {
    color: var(--text-light) !important;
}

/* Strong and bold text */
strong,
b,
body.toolsfree-body strong,
body.toolsfree-body b {
    color: #ffffff !important;
    font-weight: 600;
}

code {
    background: rgba(0, 0, 0, 0.3);
    color: #e2e8f0;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* Bootstrap text utilities override */
.text-dark,
.text-black {
    color: #ffffff !important;
}

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

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

.toolsfree-footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

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

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .nav-links {
        display: none;
    }
}