/* =========================================
   Filename: css/landing.css
   Usage: ONLY for index.html (Dashboard)
   ========================================= */

:root {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --nav-height: 70px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    background-image: radial-gradient(at 50% 0%, rgba(56, 189, 248, 0.1) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
}

/* --- Navigation --- */
nav {
    height: var(--nav-height);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .brand { font-weight: 800; font-size: 1.4rem; color: var(--text-main); text-decoration: none; }
nav .brand span { color: var(--primary); }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; margin-left: 2rem; transition: 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 6rem 1rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 3rem; }

.badge-ad-free {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(16, 185, 129, 0.1); color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 14px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 1.5rem;
}

/* --- Search Bar --- */
.search-wrapper { position: relative; max-width: 600px; margin: 0 auto; }
.search-input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-main);
    font-size: 1.1rem;
    transition: 0.3s;
}
.search-input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
    background: rgba(30, 41, 59, 0.9);
}
.search-icon { position: absolute; left: 1.5rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* --- Tools Grid --- */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 1.5rem;
}

.category-header {
    grid-column: 1 / -1;
    margin-top: 3rem; margin-bottom: 1rem;
    font-size: 1.1rem; font-weight: 700; color: var(--primary);
    text-transform: uppercase; letter-spacing: 1px;
    border-bottom: 1px solid var(--border); padding-bottom: 1rem;
    display: flex; align-items: center; gap: 10px;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex; flex-direction: column;
    text-decoration: none;
    transition: 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: #334155;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.tool-icon {
    width: 48px; height: 48px;
    background: rgba(56, 189, 248, 0.1); color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.5rem; transition: 0.3s;
}

.tool-card:hover .tool-icon { background: var(--primary); color: #fff; box-shadow: 0 0 15px var(--primary-glow); }

.tool-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.5rem; }
.tool-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

.status-badge {
    font-size: 0.7rem; padding: 4px 8px; border-radius: 6px;
    background: rgba(255,255,255,0.05); color: var(--text-muted);
    border: 1px solid var(--border); margin-left: auto;
}

.hidden { display: none !important; }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .tools-grid { grid-template-columns: 1fr; }
}

/* --- Global Professional Footer --- */
.site-footer {
    background: var(--bg-card); /* Matches your tool cards */
    border-top: 1px solid var(--border);
    padding: 4rem 1.5rem;
    text-align: center;
    margin-top: auto; /* Pushes footer to bottom even on short pages */
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
}

.site-footer h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.site-footer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.site-footer .copyright {
    font-size: 0.85rem;
    margin-bottom: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle divider */
    color: var(--text-muted);
}

.site-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.site-footer a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow);
}