/* Hero Section */
.hero {
    background: linear-gradient(180deg, #dbfeeb7a 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e5e5;
    padding: 80px 20px 60px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #171717;
}

.hero-tagline {
    font-size: 1.2rem;
    color: #737373;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.tool-search {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-search:focus {
    outline: none;
    border-color: #15803d;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tool-search::placeholder {
    color: #a3a3a3;
}

/* Premium section */
.premium-section {
    border-top: 1px solid #667eea20;
    border-bottom: 1px solid #667eea20;
    padding: 60px 20px;
}

.premium-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.premium-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin: 0;
}

.premium-badge-large {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.premium-description {
    text-align: center;
    font-size: 1.1rem;
    color: #525252;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* Premium Cards */
.premium-card {
    position: relative;
    border: 2px solid #667eea30;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: block;
}

.premium-card:hover {
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    background: #ffffff;
}

.premium-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.8px;
}

.premium-card h3 {
    color: #667eea;
    padding-right: 60px;
    font-size: 1.1rem;
    margin: 0 0 12px 0;
}

.premium-card p {
    color: #525252;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.pricing {
    display: block;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
}

/* Free Tools Section */
.tools-section {
    padding: 60px 20px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.free-tools-header {
    text-align: center;
    margin-bottom: 60px;
}

.free-tools-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #171717;
    margin-bottom: 12px;
}

.free-tools-header p {
    font-size: 1.1rem;
    color: #737373;
}

.tool-category {
    margin-bottom: 20px;
}

.category-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: #166534;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #15803d;
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0px 20px;
    align-items: stretch;
}

/* Tool Card */
.tool-card {
    display: block;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 140px;
}

.tool-card:hover {
    border-color: #15803d;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    background:#dbeafe7a;
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #171717;
    margin-bottom: 8px;
}

.tool-card p {
    font-size: 0.9rem;
    color: #737373;
    line-height: 1.5;
}

/* Hidden category when filtered */
.tool-category.hidden {
    display: none;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results.hidden {
    display: none;
}

.no-results p {
    font-size: 1.1rem;
    color: #737373;
    margin-bottom: 12px;
}

.no-results a {
    color: #15803d;
    text-decoration: underline;
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 40px 20px 20px 20px;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: #171717;
}

.about-content {
    max-width: 700px;
    margin: 0 auto 20px;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #525252;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 800px) {
    .premium-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .premium-section {
        padding: 40px 20px;
    }

    .premium-header h2 {
        font-size: 1.5rem;
    }

    .premium-description {
        font-size: 1rem;
    }

    .tools-section {
        padding: 8px 20px;
    }

    .free-tools-header {
        margin-bottom: 40px;
    }

    .free-tools-header h2 {
        font-size: 1.5rem;
    }

    .tool-category {
        margin-bottom: 20px;
    }

    .about-section {
        padding: 40px 20px 16px 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .premium-header {
        flex-direction: column;
        gap: 8px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tool-card {
        padding: 20px;
    }

    .premium-indicator {
        top: 12px;
        right: 12px;
        font-size: 0.6rem;
        padding: 3px 8px;
    }
}