/* Tools Directory Page Styles */

.tools-directory-page {
    background: var(--color-white);
}

/* Hero Section */
.tools-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 6rem 0 4rem;
    color: white;
}

.tools-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tools-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.tools-hero .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    line-height: 1.6;
}

/* Search Form */
.search-form {
    margin-bottom: 3rem;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-icon {
    width: 24px;
    height: 24px;
    color: var(--color-gray-muted);
    margin-left: 1rem;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    padding: 1rem 0.5rem;
    font-size: 1rem;
    outline: none;
    color: var(--color-charcoal);
}

.search-input::placeholder {
    color: var(--color-gray-muted);
}

.search-btn {
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* Filter Section */
.filter-section {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-soft);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 700;
    color: var(--color-charcoal);
    font-size: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-gray-soft);
    border-radius: 8px;
    background: white;
    color: var(--color-charcoal);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.live {
    background: #10b981;
}

.status-dot.beta {
    background: #f59e0b;
}

.status-dot.coming-soon {
    background: #3b82f6;
}

/* Tools Grid */
.tools-grid-section {
    padding: 4rem 0;
    background: var(--color-gray-light);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Tool Image */
.tool-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.tool-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tool-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-placeholder svg {
    width: 80px;
    height: 80px;
    color: white;
    opacity: 0.8;
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.status-badge.status-live {
    background: #10b981;
    color: white;
}

.status-badge.status-beta {
    background: #f59e0b;
    color: white;
}

.status-badge.status-coming_soon {
    background: #3b82f6;
    color: white;
}

.status-badge.status-planned {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-charcoal);
}

/* Tool Card Content */
.tool-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.tool-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-charcoal);
    line-height: 1.3;
    margin: 0;
}

.featured-badge {
    width: 24px;
    height: 24px;
    color: #f59e0b;
    flex-shrink: 0;
}

.featured-badge svg {
    width: 100%;
    height: 100%;
}

.tool-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.tool-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray-muted);
    margin-bottom: 1rem;
}

/* Tool Tags */
.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tool-tag {
    padding: 0.375rem 0.75rem;
    background: var(--color-gray-light);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.tool-tag.more {
    background: var(--color-accent);
    color: white;
}

/* Features Preview */
.features-preview {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-gray-light);
    border-radius: 8px;
}

.features-label {
    font-weight: 700;
    color: var(--color-charcoal);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
}

.features-list li:last-child {
    margin-bottom: 0;
}

.features-list li svg {
    width: 16px;
    height: 16px;
    color: #10b981;
    flex-shrink: 0;
}

/* Tool Actions */
.tool-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-tool-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-tool-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-tool-primary svg {
    width: 18px;
    height: 18px;
}

.btn-tool-secondary {
    padding: 0.875rem 1.5rem;
    background: white;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-tool-secondary:hover {
    background: var(--color-accent);
    color: white;
}

/* No Tools */
.no-tools {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
}

.no-tools svg {
    width: 80px;
    height: 80px;
    color: var(--color-gray-muted);
    margin-bottom: 1.5rem;
}

.no-tools h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
}

.no-tools p {
    font-size: 1.125rem;
    color: var(--color-gray-muted);
    margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: var(--color-charcoal);
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.cta-content {
    flex: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-form {
    flex: 1;
    max-width: 500px;
}

.cta-input-group {
    display: flex;
    gap: 1rem;
}

.cta-input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.cta-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cta-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: var(--color-accent-hover);
}

.cta-btn svg {
    width: 20px;
    height: 20px;
}

/* Value Proposition Section */
.value-section {
    padding: 5rem 0;
    background: var(--color-gray-light);
}

.value-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-charcoal);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-charcoal);
}

.value-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .tools-hero {
        padding: 4rem 0 3rem;
    }

    .tools-hero .hero-title {
        font-size: 2rem;
    }

    .tools-hero .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }

    .search-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .search-input {
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .search-btn {
        width: 100%;
    }

    .stats-bar {
        gap: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-divider {
        height: 30px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-actions {
        flex-direction: column;
    }

    .btn-tool-secondary {
        text-align: center;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-input-group {
        flex-direction: column;
    }

    .cta-form {
        max-width: 100%;
    }

    .value-title {
        font-size: 2rem;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }
}
