/*
Theme Name: RealSEOTools - Professional SEO Theme
Theme URI: https://realseotools.com
Author: RealSEOTools
Description: Professional SEO tools theme
Version: 1.0.0
Requires PHP: 7.4
Text Domain: realseotools
*/

:root {
    --primary: #4f46e5;
    --secondary: #7c3aed;
    --accent: #06b6d4;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 12px rgba(15,23,42,0.08);
    --shadow-lg: 0 25px 50px -12px rgba(15,23,42,0.15);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; height: 72px; background: var(--surface); border-bottom: 1px solid var(--border); z-index: 1000; transition: all 0.3s; }
.site-header.scrolled { height: 60px; box-shadow: var(--shadow); }
.header-container { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 24px; max-width: 1440px; margin: 0 auto; }

.site-title { font-size: 1.5rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.site-title a { text-decoration: none; }

.nav-menu { display: flex; list-style: none; gap: 8px; }
.nav-menu a { display: flex; align-items: center; gap: 6px; padding: 10px 16px; font-size: 0.9375rem; font-weight: 500; color: var(--text-muted); border-radius: var(--radius); transition: all 0.2s; }
.nav-menu a:hover { color: var(--primary); background: rgba(79,70,229,0.08); }
.nav-menu .current-menu-item a { color: var(--primary); background: rgba(79,70,229,0.08); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.dark-mode-toggle { width: 44px; height: 44px; border: none; background: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; cursor: pointer; transition: all 0.2s; color: var(--text-muted); }
.dark-mode-toggle:hover { background: var(--primary); color: #fff; transform: rotate(20deg); }

/* Hero */
.hero { padding: calc(72px + 80px) 40px 80px; text-align: center; background: linear-gradient(135deg, var(--bg), #eef2ff); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(79,70,229,0.15), transparent 70%); animation: float 8s ease-in-out infinite; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero h1 .gradient { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.125rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; font-size: 1rem; font-weight: 600; border-radius: var(--radius); cursor: pointer; border: none; transition: all 0.2s; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,70,229,0.4); }
.btn-secondary { background: var(--surface); color: var(--text-muted); border: 2px solid var(--border); box-shadow: var(--shadow); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Stats */
.stats { display: flex; justify-content: center; gap: 48px; margin-top: 48px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.875rem; color: var(--text-muted); }

/* Sections */
.section { padding: 80px 20px; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.section-header p { font-size: 1.125rem; color: var(--text-muted); }

/* Tool Cards */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: all 0.3s; position: relative; }
.tool-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.tool-card-icon { width: 56px; height: 56px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; transition: all 0.3s; }
.tool-card:hover .tool-card-icon { transform: scale(1.1) rotate(-5deg); }
.tool-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.tool-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.tool-card .badge { display: inline-block; padding: 4px 12px; background: var(--bg); border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--primary); margin-top: 12px; }

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 60px 20px 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1280px; margin: 0 auto 40px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: #94a3b8; font-size: 0.875rem; transition: all 0.2s; }
.footer-grid ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; max-width: 1280px; margin: 0 auto; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hero { padding: calc(64px + 60px) 20px 60px; }
    .hero h1 { font-size: 2rem; }
    .stats { gap: 24px; }
    .stat-number { font-size: 1.75rem; }
    .tools-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 20px; }
}