/* AI Tools Hub - Extra Styles for Generated Pages */

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 20px auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 20px;
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #6366f1;
}

#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

#search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid #2a2a4a;
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #2a2a4a;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item .result-name {
    color: #e0e0e0;
    font-weight: 600;
}

.search-result-item .result-desc {
    color: #888;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    padding: 30px 20px;
    margin: 30px 0;
}

.stat-num {
    font-size: 2rem;
    font-weight: bold;
    color: #6366f1;
}

.stat-label {
    color: #888;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.category-card {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s, border-color 0.3s;
    display: block;
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #6366f1;
}

.cat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cat-name {
    color: #e0e0e0;
    font-weight: 600;
    font-size: 1rem;
}

.cat-count {
    color: #888;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Tool Grid */
.tool-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
}

.tool-card {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    padding: 20px;
    border-left: 4px solid #6366f1;
    transition: transform 0.3s, border-color 0.3s;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: #6366f1;
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.tool-card h3 a {
    color: #e0e0e0;
    text-decoration: none;
}

.tool-card h3 a:hover {
    color: #6366f1;
}

.tool-card p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.tool-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 12px;
}

.rating {
    color: #fbbf24;
}

.badge {
    display: inline-block;
    background: #6366f1;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-bottom: 10px;
}

.verified-badge {
    display: inline-block;
    background: #22c55e;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
}

.pricing-badge {
    display: inline-block;
    background: #2a2a4a;
    color: #e0e0e0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Tool Detail Page */
.tool-detail {
    max-width: 900px;
    margin: 0 auto;
}

.tool-header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid #2a2a4a;
    margin-bottom: 30px;
}

.tool-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.tool-header-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Trending Card */
.trending-card {
    border-left-color: #ef4444;
}

/* Pros/Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 0;
}

.pros, .cons {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    padding: 20px;
}

.pros {
    border-left: 4px solid #22c55e;
}

.cons {
    border-left: 4px solid #ef4444;
}

.pros h3, .cons h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.pros ul, .cons ul {
    margin-left: 20px;
    color: #888;
}

.pros li, .cons li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Content Box */
.content-box {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.content-box h2 {
    color: #e0e0e0;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.content-box p {
    color: #888;
    line-height: 1.7;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    margin: 20px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #2a2a4a;
}

.comparison-table th {
    background: #1a1a2e;
    color: #6366f1;
    font-weight: 600;
}

.comparison-table td {
    color: #888;
}

.comparison-table .highlight {
    color: #22c55e;
    font-weight: 600;
}

/* CTA Box */
.cta-box {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 6px;
    padding: 25px;
    text-align: center;
    border-left: 4px solid #22c55e;
    margin: 25px 0;
}

.cta-box h3 {
    color: #e0e0e0;
    margin-bottom: 10px;
}

/* Back Link */
.back-link {
    display: inline-block;
    color: #6366f1;
    text-decoration: none;
    margin: 20px 0;
    font-size: 0.9rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Breadcrumb */
nav[aria-label="breadcrumb"] {
    margin: 20px 0;
    font-size: 0.9rem;
    color: #888;
}

nav[aria-label="breadcrumb"] a {
    color: #6366f1;
    text-decoration: none;
}

nav[aria-label="breadcrumb"] span {
    margin: 0 8px;
}

/* Responsive */
@media (min-width: 768px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pros-cons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 767px) {
    .stats-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-num {
        font-size: 1.5rem;
    }
    
    .tool-header h1 {
        font-size: 1.6rem;
    }
    
    .tool-header-meta {
        flex-direction: column;
        gap: 8px;
    }
}
