/* Blog Styles */

/* Navigation adjustments for blog pages */
.navbar .nav-brand {
    pointer-events: none;
}

.navbar a[href*="index.html"] {
    pointer-events: auto;
}

.navbar a[href*="index.html"]:hover .nav-brand-name {
    opacity: 0.8;
}

.blog-section {
    padding: clamp(100px, 10vw, 140px) 0 clamp(60px, 8vw, 80px);
    background: var(--gray-50);
    min-height: 100vh;
}

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

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

.blog-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Filters */
.blog-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.blog-filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-200);
    background: var(--white);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.blog-filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1400px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 191, 166, 0.15);
    border-color: var(--primary-color);
}

.blog-card-image {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #00BFA6 0%, #0F3D2E 100%);
    position: relative;
    overflow: hidden;
}

.blog-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-category {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.blog-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.blog-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.blog-card-date svg {
    opacity: 0.7;
}

.blog-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1.25rem;
    margin-top: auto;
    border-top: 1px solid var(--gray-200);
}

.blog-card-link {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.blog-card-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

.blog-card-link svg {
    transition: transform 0.3s ease;
}

.blog-card-link:hover svg {
    transform: translateX(4px);
}

/* Podcast Section */
.podcast-section {
    background: var(--white);
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

.podcast-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.podcast-text {
    text-align: left;
}

.podcast-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 191, 166, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.podcast-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.podcast-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.podcast-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.podcast-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.podcast-link-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    gap: 1rem;
}

.podcast-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.podcast-visual-link {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.podcast-visual-link:hover {
    transform: scale(1.05);
}

.podcast-visual-link:hover .podcast-icon-circle {
    transform: scale(1.15);
    box-shadow: 0 25px 50px -12px rgba(0, 191, 166, 0.5);
}

.podcast-visual-link:hover .wave {
    opacity: 0.3;
}

.podcast-play-hint {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.podcast-visual-link:hover .podcast-play-hint {
    opacity: 1;
}

.podcast-waves {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    opacity: 0.2;
    animation: wave-pulse 3s ease-in-out infinite;
}

.wave-1 {
    width: 200px;
    height: 200px;
    animation-delay: 0s;
}

.wave-2 {
    width: 260px;
    height: 260px;
    animation-delay: 1s;
}

.wave-3 {
    width: 320px;
    height: 320px;
    animation-delay: 2s;
}

.podcast-icon-circle {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

@keyframes wave-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

/* Article Page Styles */
.article-page {
    padding: 140px 0 80px;
    background: var(--white);
}

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

.article-header {
    margin-bottom: 3rem;
}

.article-category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 191, 166, 0.1);
    color: var(--primary-color);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.article-author,
.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-featured-image {
    width: 100%;
    height: 400px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    margin-bottom: 3rem;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

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

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

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: var(--primary-dark);
}

/* Media Embeds */
.article-media {
    margin: 3rem 0;
}

.article-media-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.article-media-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.spotify-embed {
    width: 100%;
    height: 352px;
    border-radius: var(--border-radius);
    border: none;
}

.youtube-embed {
    width: 100%;
    min-height: 400px;
    border-radius: var(--border-radius);
}

/* CTA Section in Article */
.article-cta {
    background: var(--gradient-primary);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    margin: 4rem 0;
    color: var(--white);
}

.article-cta h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.article-cta .cta-button {
    background: var(--white);
    color: var(--primary-color);
}

.article-cta .cta-button:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin: 3rem 0;
}

.article-share-label {
    font-weight: 600;
    color: var(--text-primary);
}

.article-share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-button:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--gray-200);
}

.related-articles h2 {
    margin-bottom: 2rem;
    text-align: center;
}

/* Recent Articles Section on Homepage */
.recent-articles-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.recent-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Articles Carousel */
.recent-articles-section {
    margin: 5rem 0;
    padding: 4rem 0;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    padding: 4rem 2rem;
}

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

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.articles-carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4rem;
}

.articles-carousel {
    overflow: hidden;
    position: relative;
}

.articles-carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 0;
    align-items: center;
}

.carousel-card {
    min-width: 100%;
    flex-shrink: 0;
    opacity: 0.6;
    transform: scale(0.92);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(2px);
    pointer-events: none;
}

.carousel-card.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
    pointer-events: auto;
    z-index: 2;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 24px rgba(0, 191, 166, 0.3);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator.active {
    background: var(--primary-color);
    width: 32px;
    border-radius: 6px;
}

.carousel-indicator:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-card:hover {
        transform: translateY(-4px);
    }
    
    .article-featured-image {
        height: 250px;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .blog-filter-btn {
        white-space: nowrap;
    }
    
    .podcast-content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .podcast-text {
        text-align: center;
    }
    
    .podcast-visual {
        min-height: 250px;
    }
    
    .podcast-text h2 {
        font-size: 2rem;
    }
    
    .wave-1 {
        width: 150px;
        height: 150px;
    }
    
    .wave-2 {
        width: 200px;
        height: 200px;
    }
    
    .wave-3 {
        width: 250px;
        height: 250px;
    }
    
    .podcast-icon-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Carousel responsive */
    .articles-carousel-wrapper {
        padding: 0 0.5rem;
    }
    
    .carousel-btn {
        width: 44px;
        height: 44px;
    }
    
    .carousel-btn-prev {
        left: -0.25rem;
    }
    
    .carousel-btn-next {
        right: -0.25rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .carousel-card {
        min-width: 100%;
        opacity: 1 !important;
        transform: scale(1) !important;
        filter: none !important;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }
}

