/* Homepage Specific Styles */
.homepage-main {
    flex: 1;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
    transition: var(--transition);
}

html.dark-mode .hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2844 100%);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.search-box {
    max-width: 600px;
    margin: 2rem auto;
    position: relative;
}

.search-box input {
    padding: 1rem 1.5rem;
    padding-right: 3.5rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    transition: var(--transition);
}

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

.search-box input::placeholder {
    color: var(--text-light);
}

.search-box button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    transition: var(--transition);
}

.search-box button:hover {
    color: var(--primary-color);
}

.quick-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Tools Sections */
.tools-section {
    padding: 4rem 0;
    transition: var(--transition);
    scroll-margin-top: 80px;
}

.tools-section:nth-child(even) {
    background-color: var(--surface-color);
}

/* Subsections within tools sections */
.tools-section .subsection {
    margin-bottom: 3rem;
}

.tools-section .subsection:last-child {
    margin-bottom: 0;
}

.tools-section .subsection > h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.tool-card {
    display: block;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

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

.tool-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tool-card h4 {
    margin-bottom: 0.25rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.tool-card p {
    color: var(--text-light);
    font-size: 0.75rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.tool-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--surface-color);
    border-radius: 1rem;
    color: var(--text-light);
}

.tool-free {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success-color);
}

/* About Section */
.about-section {
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature {
    text-align: center;
    padding: 0.75rem;
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.feature h4 {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.feature p {
    color: var(--text-light);
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .quick-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tools-section {
        padding: 3rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .quick-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}