/* Global Styles */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --background-color: #ffffff;
    --text-color: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --hover-color: #1d4ed8;
    --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* Header Styles */
header {
    background-color: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

header h1 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

header h1 a:hover {
    color: var(--hover-color);
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem 0;
}

/* Intro Section */
.intro {
    margin-bottom: 2rem;
}

.intro h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Tool Card */
.tool-card {
    display: block;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
}

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

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.tool-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer Styles */
footer {
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin-top: auto;
}

.ad-slot {
    margin: 2rem 0;
}

.ad-slot--top {
    margin-top: 1rem;
}

footer p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.footer-links {
    text-align: center;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-separator {
    color: var(--text-secondary);
    margin: 0 0.5rem;
}

/* Responsive Typography (Mobile-First) */
@media (min-width: 640px) {
    .intro h1 {
        font-size: 2.5rem;
    }
    
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .intro h1 {
        font-size: 3rem;
    }
    
    .tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .tool-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

