/* PAGE-SPECIFIC STYLES FOR TOOLS.HTML */

/* Override CTA button for this page to handle gradient text */
nav ul li a.cta-button {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.mobile-menu ul li a.cta-button {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

/* BLOG SECTION - AI Frontier News */
#blog-section {
    padding-top: 140px;
    padding-bottom: 100px;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Filter and Search Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

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

.search-bar {
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    width: 250px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: #fff;
    border-color: #4c67f6;
}

.filter-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card.hidden {
    display: none;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.post-image.full-image {
    object-fit: contain;
}

.post-content {
    padding: 1.5rem;
}

.post-tags {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tag {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
}

.post-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.post-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.read-more-btn {
    color: #00f2fe;
    font-weight: 600;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.5rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .search-bar {
        width: 100%;
        max-width: 400px;
    }
    
    .filter-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 6px 14px;
        white-space: nowrap;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
    }
    
    #blog-section {
        padding-top: 120px;
    }
}

@media (max-width: 480px) {
    .post-content {
        padding: 1rem;
    }
    
    .post-content h3 {
        font-size: 1.2rem;
    }
    
    .filter-buttons {
        gap: 0.4rem;
    }
}

/* TOOL DETAIL PAGES */
.tool-detail {
    padding-top: 140px;
    padding-bottom: 100px;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 2rem;
    display: block;
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tool-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tool-tag {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 12px;
}

.tool-content {
    max-width: 800px;
    margin: 0 auto;
}

.tool-description h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    margin-top: 2rem;
}

.tool-description h2:first-child {
    margin-top: 0;
}

.tool-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.tool-description ul {
    margin-bottom: 2rem;
}

.tool-description li {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.tool-description strong {
    color: var(--text-color);
}

.cta-section {
    background: linear-gradient(135deg, rgba(76, 103, 246, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.cta-section p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(76, 103, 246, 0.3);
}

/* Responsive styles for tool detail pages */
@media (max-width: 768px) {
    .tool-detail {
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .tool-hero-image {
        max-width: 100%;
        max-height: 300px;
    }
    
    .tool-header h1 {
        font-size: 2rem;
    }
    
    .tool-tags {
        justify-content: center;
    }
    
    .tool-description h2 {
        font-size: 1.5rem;
    }
    
    .cta-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tool-hero-image {
        max-height: 250px;
    }
    
    .tool-header h1 {
        font-size: 1.8rem;
    }
    
    .tool-description h2 {
        font-size: 1.3rem;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
} 