:root {
    /* Primary Colors */
    --primary: #e5322d;
    --primary-hover: #c12925;
    --secondary: #ffffff;
    
    /* Light Mode */
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #eeeeee;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    --header-bg: #ffffff;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #aaaaaa;
    --border-color: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --header-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: var(--transition);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header & Nav */
header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--text-main);
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a:hover {
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 5% 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.search-container input:focus {
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 5% 5rem;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.tool-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.tool-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

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

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Tool Page Layout */
.tool-header {
    background: var(--card-bg);
    padding: 4rem 5%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.upload-area {
    max-width: 800px;
    margin: 3rem auto;
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--card-bg);
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover, .upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(229, 50, 45, 0.05);
}

.upload-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* Content Sections */
.content-wrapper {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 5%;
}

.seo-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.seo-card h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    nav ul { display: none; }
}
