/* Tapped In Blog Styles */

/* Hero Section */
.tapped-in-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0 60px;
    text-align: center;
}

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

.tapped-in-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    position: relative;
    display: inline-block;
}

.tapped-in-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #22c55e;
    border-radius: 2px;
}

.tapped-in-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Section */
.tapped-in-filters {
    background: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px;
    border-radius: 50px;
    border: 2px solid #22c55e;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    background: transparent;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.filter-tab:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.filter-tab.active {
    background: #22c55e;
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

/* Posts Grid */
.tapped-in-posts {
    padding: 80px 0;
    background: #fafafa;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

/* Blog Cards */
.blog-card {
    background: #ffffff;
    border: 2px solid #22c55e;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: fit-content;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.15);
    border-color: #16a34a;
}

.blog-card-inner {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

/* Category Badge */
.blog-card-category {
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    background: #22c55e;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Card Title */
.blog-card-title {
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.blog-card-title a {
    color: #1e293b;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #22c55e;
}

/* Card Excerpt */
.blog-card-excerpt {
    margin-bottom: 24px;
    flex-grow: 1;
}

.blog-card-excerpt p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Card Meta */
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.post-date {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

.read-more-link {
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: #16a34a;
    transform: translateX(4px);
}

.read-more-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

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

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

.load-more-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

.load-more-btn svg {
    transition: transform 0.3s ease;
}

.load-more-btn:hover svg {
    transform: translateY(2px);
}

/* Filtering Animation */
.blog-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.4s ease;
}

.blog-card.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    transition: all 0.4s ease;
}

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

/* Responsive Design */

/* Large Tablets */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    
    .tapped-in-title {
        font-size: 3rem;
    }
    
    .filter-tabs {
        padding: 6px;
    }
    
    .filter-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .tapped-in-hero {
        padding: 60px 0 40px;
    }
    
    .tapped-in-title {
        font-size: 2.5rem;
    }
    
    .tapped-in-subtitle {
        font-size: 1.1rem;
    }
    
    .tapped-in-filters {
        padding: 30px 0;
    }
    
    .tapped-in-posts {
        padding: 60px 0;
    }
    
    .blog-card-inner {
        padding: 24px 20px;
        min-height: 280px;
    }
    
    .blog-card-title a {
        font-size: 1.2rem;
    }
    
    .filter-tabs {
        justify-content: flex-start;
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tapped-in-hero {
        padding: 40px 0 30px;
    }
    
    .tapped-in-title {
        font-size: 2rem;
    }
    
    .tapped-in-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .tapped-in-filters {
        padding: 20px 0;
    }
    
    .tapped-in-posts {
        padding: 40px 0;
    }
    
    .blog-card-inner {
        padding: 20px 16px;
        min-height: 240px;
    }
    
    .blog-card-title a {
        font-size: 1.1rem;
    }
    
    .blog-card-excerpt p {
        font-size: 0.9rem;
    }
    
    .filter-tab {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .read-more-link {
        align-self: flex-end;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .tapped-in-title {
        font-size: 1.75rem;
    }
    
    .filter-tabs {
        gap: 4px;
        padding: 4px;
    }
    
    .filter-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .blog-card-inner {
        padding: 16px 12px;
    }
    
    .container {
        padding: 0 12px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card {
    animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.3s; }
.blog-card:nth-child(4) { animation-delay: 0.4s; }
.blog-card:nth-child(5) { animation-delay: 0.5s; }
.blog-card:nth-child(6) { animation-delay: 0.6s; }
.blog-card:nth-child(7) { animation-delay: 0.7s; }
.blog-card:nth-child(8) { animation-delay: 0.8s; }

/* Focus states for accessibility */
.filter-tab:focus,
.read-more-link:focus,
.load-more-btn:focus {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .blog-card {
        border-width: 3px;
    }
    
    .category-badge {
        border: 2px solid #ffffff;
    }
    
    .filter-tab.active {
        border: 2px solid #ffffff;
    }
}

