/* Blog Styles */

/* Blog Header */
.blog-header {
    padding: 120px 20px 80px;
    background: linear-gradient(to bottom, var(--cyan-950) 0%, var(--cyan-950) 85%, #0a2832 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Add subtle gradient overlay */
.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.blog-header .container {
    position: relative;
    z-index: 1;
}

.blog-title {
    font-family: 'Adieu', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out;
}

.blog-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
    font-weight: 300;
}

/* Blog Search */
.blog-search-container {
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.blog-search-wrapper {
    position: relative;
    width: 100%;
}

.blog-search-input {
    width: 100%;
    padding: 1.25rem 3.5rem;
    border: 2px solid rgba(249, 115, 22, 0.3);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    font-size: 1.125rem;
    color: white;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    box-sizing: border-box;
}

.blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.blog-search-input:focus {
    outline: none;
    border-color: var(--orange-400);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
}

.blog-search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange-400);
    pointer-events: none;
    opacity: 0.7;
}

.clear-search-btn {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--orange-400);
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-search-btn:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: var(--orange-400);
    transform: scale(1.1);
}

.clear-search-btn svg {
    width: 12px;
    height: 12px;
}

.search-results-info {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Highlighted search terms in results */
.search-highlight {
    background: rgba(249, 115, 22, 0.3);
    color: white;
    padding: 0 2px;
    border-radius: 2px;
}

/* No articles message */
.no-articles {
    text-align: center;
    color: #6b7280;
    font-size: 1.125rem;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
    font-weight: 300;
}

/* Search input animations */
.blog-search-input:focus ~ .blog-search-icon {
    color: var(--orange-500);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Responsive search */
@media (max-width: 768px) {
    .blog-search-input {
        padding: 1rem 3rem;
        font-size: 1rem;
    }
    
    .blog-search-icon {
        left: 1.25rem;
    }
    
    .clear-search-btn {
        right: 1.25rem;
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .search-results-info {
        font-size: 0.875rem;
    }
}

/* Blog Articles Section */
.blog-articles {
    padding: 80px 20px;
    background: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Article Card */
.article-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Article images removed */

.article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-header {
    flex: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.article-category {
    background: var(--orange-400);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.article-title {
    font-family: 'Adieu', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-link {
    color: var(--cyan-950);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: var(--orange-500);
}

.article-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
}

.article-read-time {
    font-size: 0.875rem;
    color: #6b7280;
}

.read-more-link {
    color: var(--orange-500);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
    display: inline-block;
}

.read-more-link:hover {
    transform: translateX(5px);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    grid-column: 1 / -1;
}

/* Load More Button */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    padding: 0.75rem 2rem;
    background: var(--orange-500);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--orange-400);
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 20px;
    background: white;
}

.newsletter-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-box h2 {
    font-family: 'Adieu', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--cyan-950);
}

.newsletter-box p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--orange-500);
}

/* Individual Article Page Styles */
.article-hero {
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--cyan-950) 0%, var(--cyan-900) 100%);
    color: white;
}

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

.article-hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.article-hero-title {
    font-family: 'Adieu', sans-serif;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-body {
    padding: 60px 20px;
    background: white;
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
}

.article-text h2 {
    font-family: 'Adieu', sans-serif;
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--cyan-950);
}

.article-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--cyan-950);
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-text ul,
.article-text ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-text li {
    margin-bottom: 0.5rem;
}

.article-text blockquote {
    border-left: 4px solid var(--orange-500);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
}

.article-text code {
    background: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875em;
}

.article-text pre {
    background: #1f2937;
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Related Articles */
.related-articles {
    padding: 60px 20px;
    background: #f8fafc;
}

.related-articles h2 {
    font-family: 'Adieu', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--cyan-950);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .category-filter {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-hero-title {
        font-size: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 100px 20px 40px;
    }
    
    .blog-articles {
        padding: 40px 20px;
    }
    
    .article-card {
        margin: 0 -10px;
    }
}