/* --- VARIABLES & RESET --- */
:root {
    --bg-dark: #0f172a;       /* Deep Navy */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --neon-blue: #3b82f6;
    --neon-green: #22c55e;
    --neon-purple: #8b5cf6;
    
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --blur: 12px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global Background Glow */
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.15), transparent 60%);
    z-index: -1; pointer-events: none;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.highlight { color: var(--neon-blue); }

/* --- NAVBAR --- */
.navbar {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; }
.back-link { font-size: 0.9rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.back-link:hover { color: var(--neon-blue); }

/* --- HERO SECTION (Home Only) --- */
.hero-section { text-align: center; padding: 80px 0 40px; }
.hero-section h1 { font-size: 2.5rem; margin-bottom: 10px; }
.hero-section p { color: var(--text-muted); margin-bottom: 30px; }

.search-bar {
    max-width: 500px; margin: 0 auto; position: relative;
}
.search-bar input {
    width: 100%; padding: 15px 20px; border-radius: 50px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    color: white; font-size: 1rem; outline: none;
}
.search-bar input:focus { border-color: var(--neon-blue); background: rgba(255,255,255,0.1); }

/* --- GRIDS & CARDS --- */
.section-title { 
    margin: 50px 0 25px; font-size: 1.5rem; 
    border-left: 4px solid var(--neon-blue); padding-left: 15px; 
}

.grid-layout { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}

/* The Card Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px;
    transition: transform 0.3s, border-color 0.3s;
    display: flex; flex-direction: column; gap: 10px;
}
.glass-card:hover { transform: translateY(-5px); border-color: var(--neon-blue); }

.card-icon { font-size: 2.5rem; margin-bottom: 5px; }
.card-title { font-size: 1.2rem; font-weight: 600; }
.card-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 15px; }

.use-btn {
    margin-top: auto; padding: 10px; text-align: center;
    background: rgba(59, 130, 246, 0.1); color: var(--neon-blue);
    border: 1px solid var(--neon-blue); border-radius: 8px; font-weight: 600;
}
.glass-card:hover .use-btn { background: var(--neon-blue); color: white; }

/* --- TOOL PAGE SPECIFIC STYLES --- */
.tool-container { max-width: 600px; margin: 40px auto; }
.tool-header { text-align: center; margin-bottom: 30px; }
.tool-header h1 { font-size: 2rem; color: var(--neon-blue); }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.9rem; }

input[type="number"], select {
    width: 100%; padding: 12px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
    border-radius: 8px; color: white; outline: none; font-size: 1rem;
}
input:focus { border-color: var(--neon-green); }

.calc-btn {
    width: 100%; padding: 15px; background: var(--neon-blue);
    color: white; border: none; border-radius: 8px;
    font-size: 1.1rem; font-weight: 700; cursor: pointer; margin-top: 10px;
    transition: 0.3s;
}
.calc-btn:hover { background: #2563eb; transform: scale(1.02); }

.result-box {
    margin-top: 25px; padding: 20px;
    background: rgba(255, 255, 255, 0.05); border-radius: 12px;
    text-align: center; display: none; /* Hidden by default */
    border: 1px solid var(--glass-border);
}
.result-box.show { display: block; animation: fadeIn 0.4s ease; }
.result-value { font-size: 1.8rem; font-weight: bold; color: var(--neon-green); margin-bottom: 5px; }
.warning-text { color: #ef4444; font-size: 0.8rem; margin-top: 10px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
/* --- FOOTER STYLING --- */
footer {
    text-align: center;
    padding: 50px 20px;
    margin-top: 60px;
    border-top: 1px solid #334155; /* Line above footer */
    background: #0f172a;
}

/* The Box Container */
.footer-box {
    display: inline-flex;       /* Box utna hi bada hoga jitna content hai */
    flex-wrap: wrap;            /* Mobile pe toot ke neeche aa jayega */
    justify-content: center;
    gap: 25px;                  /* Links ke beech gap */
    
    background: rgba(30, 41, 59, 0.6); /* Glassy Background */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Halka border */
    padding: 15px 40px;         /* Box ke andar jagah */
    border-radius: 50px;        /* Gol kinare (Capsule shape) */
    margin-bottom: 20px;
    
    backdrop-filter: blur(10px); /* Blur effect */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Halka shadow */
}

/* Links Design */
.footer-box a {
    color: #cbd5e1;             /* Light Grey Text */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

/* Hover Effect (Color Change) */
.footer-box a:hover {
    color: #3b82f6;             /* Neon Blue on Hover */
}

/* Divider (|) between links - Optional styling trick */
.footer-box a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -15px;
    color: #475569;
    opacity: 0.5;
    pointer-events: none;
}
/* --- Related Tools Section Styling (Add to style.css) --- */
.related-section {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.related-section h3 {
    color: #94a3b8;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* Mobile Friendly */
    gap: 15px;
    padding: 0 10px;
}

.mini-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: #3b82f6;
}

.mini-icon {
    font-size: 1.5rem;
}

.mini-name {
    font-size: 0.9rem;
    font-weight: 500;
}
/* --- LATEST UPDATES GRID --- */
.grid-layout {
    display: grid;
    /* Jadu: Screen ke hisaab se jitne card aa sakein, utne aayenge */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px;
    padding: 20px 0;
}

/* Card Design */
.post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden; /* Image bahar na nikle */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px); /* Hover karne par upar uthega */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Image Auto-Fit */
.post-card img {
    width: 100%;
    height: 180px; /* Fixed height taaki sab barabar dikhein */
    object-fit: cover; /* Image crop hogi par pichkegi nahi */
    border-bottom: 1px solid #f1f5f9;
}

/* Content Area */
.post-content {
    padding: 15px;
    flex: 1; /* Content ko barabar jagah mile */
    display: flex;
    flex-direction: column;
}

.post-tag {
    font-size: 0.75rem;
    color: #059669; /* Primary Green */
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
    line-height: 1.4;
    /* Agar title bada ho to ... lag jaye */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-link {
    margin-top: auto; /* Button hamesha neeche rahe */
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
}
.post-link:hover { text-decoration: underline; }

/* Container Design */
.tool-share-container {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa; /* Halka Grey Background */
    border-radius: 12px;
    text-align: center;
    border: 1px dashed #ccc; /* Dashed Border Professional lagta hai */
}

.share-text {
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

/* Row Layout */
.share-buttons-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Mobile pe toot ke niche aa jayega */
}

/* Common Button Style */
.s-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 50px; /* Pill Shape */
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.s-btn:hover {
    transform: translateY(-3px); /* Hover karne par thoda uthega */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Colors */
.s-whatsapp { background: #25D366; }
.s-facebook { background: #1877F2; }
.s-copy     { background: #333; }

/* Mobile Friendly */
@media (max-width: 600px) {
    .s-btn {
        flex: 1; /* Mobile pe buttons full width ho jayenge */
        justify-content: center;
        min-width: 120px;
    }
}