/* Blog Page Styles */

/* Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/generation-sports-hero.JPG') center/cover;
    opacity: 0.3;
    z-index: 1;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.blog-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Content */
.blog-content {
    padding: 80px 0;
    background: #f8f9fa;
}

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

.filter-btn {
    background: #333;
    border: 2px solid #333;
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F4C430 0%, #e6b129 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before {
    left: 0;
}

.filter-btn:hover {
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(244, 196, 48, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #F4C430 0%, #e6b129 100%);
    border-color: #F4C430;
    color: #333;
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.4);
}

.filter-btn.active::before {
    display: none;
}

/* Search Bar */
.blog-search {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.search-container {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-container input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #333;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: white;
    color: #333;
}

.search-container input:focus {
    outline: none;
    border-color: #F4C430;
    box-shadow: 0 0 0 4px rgba(244, 196, 48, 0.2);
    transform: translateY(-2px);
}

.search-container input::placeholder {
    color: rgba(51, 51, 51, 0.6);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #F4C430;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-container:hover .search-icon {
    color: #e6b129;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: #333;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #F4C430 0%, #e6b129 50%, #F4C430 100%);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(244, 196, 48, 0.3);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 196, 48, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.blog-card-content {
    padding: 2rem 1.75rem 1.75rem;
    color: white;
    position: relative;
}

.blog-card-sport {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 2;
}

.blog-card-sport.dodgeball {
    background: linear-gradient(135deg, #F4C430 0%, #e6b129 100%);
    color: #333;
    box-shadow: 0 4px 12px rgba(244, 196, 48, 0.3);
}

.blog-card-sport.pickleball {
    background: linear-gradient(135deg, #20B2AA 0%, #1a9a93 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(32, 178, 170, 0.3);
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: white;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 1rem;
    border-top: 1px solid rgba(244, 196, 48, 0.2);
}

.blog-card-date {
    font-weight: 600;
    color: #F4C430;
}

.blog-card-author {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
}

.pagination button {
    background: #333;
    border: 2px solid #333;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    min-width: 45px;
    position: relative;
    overflow: hidden;
}

.pagination button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F4C430 0%, #e6b129 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.pagination button:hover:not(:disabled)::before {
    left: 0;
}

.pagination button:hover:not(:disabled) {
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.3);
}

.pagination button.active {
    background: linear-gradient(135deg, #F4C430 0%, #e6b129 100%);
    border-color: #F4C430;
    color: #333;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.4);
}

.pagination button.active::before {
    display: none;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #555;
    border-color: #555;
}

.pagination button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 0;
    color: #6c757d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Blog Post Page */
.blog-post-content {
    padding: 120px 0 80px;
    background: white;
}

.back-button {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #b02a37;
    transform: translateX(-5px);
}

.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-featured-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
}

.post-featured-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    border-radius: 12px;
}

.post-header {
    margin-bottom: 2rem;
}

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

.post-sport {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-sport.dodgeball {
    background: #dc3545;
    color: white;
}

.post-sport.pickleball {
    background: #28a745;
    color: white;
}

.post-date {
    color: #6c757d;
    font-weight: 500;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.post-author {
    color: #6c757d;
    font-size: 1.1rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 2rem 0 1rem;
    color: #2c3e50;
}

.post-content h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

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

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

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid #dc3545;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6c757d;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.post-tags {
    margin-bottom: 2rem;
}

.post-tags h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #dc3545;
    color: white;
}

.post-share {
    border-top: 2px solid #e9ecef;
    padding-top: 2rem;
    margin-bottom: 3rem;
}

.post-share h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #3b5998;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.copy {
    background: #6c757d;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.related-posts h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.related-card-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
}

.related-card-content {
    padding: 1rem;
}

.related-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-card-date {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero p {
        font-size: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-card-image {
        height: 200px;
    }

    .blog-card-content {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    
    .blog-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-featured-image {
        height: 250px;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 100px 0 60px;
    }
    
    .blog-content {
        padding: 60px 0;
    }
    
    .blog-post-content {
        padding: 100px 0 60px;
    }
    
    .post-title {
        font-size: 1.8rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
