/* ============================================
   PROFESSIONAL HOMEPAGE - Clean & Modern
   ============================================ */

/* Reset & Base */
* {
    box-sizing: border-box;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    padding: 5rem 0 4rem;
    border-bottom: 1px solid #e9ecef;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Search */
.hero-search {
    max-width: 700px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    background: white;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #3182ce;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: #718096;
    font-weight: 500;
}

/* Main Sections */
.main-sections {
    padding: 4rem 0;
}

.content-section {
    margin-bottom: 5rem;
}

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

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.section-count {
    font-size: 0.9375rem;
    color: #718096;
    margin-left: 1rem;
}

.section-cta {
    color: #4299e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.section-cta:hover {
    color: #3182ce;
}

.section-description {
    font-size: 1.125rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Section Divider */
.section-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 5rem 0;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.category-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: #edf2f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4299e1;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.category-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem;
}

.category-count {
    font-size: 0.875rem;
    color: #718096;
    margin: 0 0 1rem;
}

.category-examples {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-examples li {
    font-size: 0.875rem;
    color: #4a5568;
    padding: 0.375rem 0;
    border-top: 1px solid #f7fafc;
}

.category-examples li:first-child {
    border-top: none;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.skill-category {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.75rem;
}

.skill-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: #4299e1;
    font-size: 1.125rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #edf2f7;
    color: #4a5568;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Hooks Grid */
.hooks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hook-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.75rem;
    transition: all 0.2s;
}

.hook-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hook-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hook-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.hook-icon.security { background: #e53e3e; }
.hook-icon.testing { background: #48bb78; }
.hook-icon.format { background: #9f7aea; }
.hook-icon.setup { background: #4299e1; }
.hook-icon.breaking { background: #ed8936; }
.hook-icon.dependency { background: #38b2ac; }

.hook-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.25rem;
}

.hook-event {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hook-card p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0 0 1rem;
    font-size: 0.9375rem;
}

.hook-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: #718096;
}

/* Code Example */
.code-example {
    background: #2d3748;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2.5rem;
}

.code-example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.code-label {
    color: #a0aec0;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.code-example pre {
    margin: 0;
}

.code-example code {
    color: #48bb78;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Section Features */
.section-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #4a5568;
}

.feature-item i {
    color: #48bb78;
    font-size: 1.125rem;
}

/* Browse Section */
.browse-section {
    margin-top: 5rem;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-chip {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-chip:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.filter-chip.active {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
}

.filter-chip.more-btn {
    background: #edf2f7;
    border-color: #edf2f7;
    color: #718096;
}

.additional-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
}

/* Prompts Grid */
.prompts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.prompt-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.prompt-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.prompt-category {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.prompt-title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
}

.prompt-title a {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
}

.prompt-title a:hover {
    color: #4299e1;
}

.prompt-description {
    color: #4a5568;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex-grow: 1;
}

.prompt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f7fafc;
}

.prompt-link {
    color: #4299e1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.prompt-link:hover {
    color: #3182ce;
}

.copy-btn-small {
    background: #edf2f7;
    border: none;
    color: #4a5568;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.copy-btn-small:hover {
    background: #e2e8f0;
}

/* Copy Buttons */
.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.copy-btn.copied,
.copy-btn-small.copied {
    background: #48bb78;
    color: white;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #718096;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results p {
    font-size: 1.125rem;
    margin: 0;
}

/* Footer CTA */
.footer-cta {
    background: #2d3748;
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.footer-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.footer-cta p {
    font-size: 1.125rem;
    color: #a0aec0;
    margin: 0 0 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .prompts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 2rem;
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .categories-grid,
    .skills-grid,
    .hooks-grid,
    .prompts-grid {
        grid-template-columns: 1fr;
    }

    .section-features {
        flex-direction: column;
        gap: 0.75rem;
    }

    .filter-bar {
        gap: 0.5rem;
    }

    .filter-chip {
        font-size: 0.8125rem;
        padding: 0.5rem 0.875rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }
}

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

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

    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .footer-cta h2 {
        font-size: 1.75rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    .hero-search,
    .filter-bar,
    .footer-cta {
        display: none;
    }
}
