/* Blog SEO-Optimized Styles for Korallgarázs */

/* Blog Header */
.blog-header {
    text-align: center;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.5) 0%, rgba(0, 102, 204, 0.5) 100%);
}

.blog-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.blog-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Blog Post Card */
.blog-post-card {
    background: linear-gradient(145deg, rgba(0, 51, 102, 0.2) 0%, rgba(0, 102, 204, 0.15) 100%);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 150, 255, 0.2);
    position: relative;
}

.blog-post-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 150, 255, 0.4);
    border-color: rgba(0, 150, 255, 0.6);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b00 0%, #ff0000 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Blog Post Image */
.blog-post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-image-container {
    overflow: hidden;
    position: relative;
}

.blog-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 102, 204, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-card:hover .blog-image-overlay {
    opacity: 1;
}

/* Blog Post Content */
.blog-post-content {
    padding: 25px;
}

.blog-post-date {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    color: #0096FF;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-post-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
    letter-spacing: 2px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-post-card:hover .blog-post-title {
    color: #0096FF;
}

.blog-post-excerpt {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: #0096FF;
    text-decoration: none;
    padding: 12px 30px;
    background: linear-gradient(145deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 51, 102, 0.3) 100%);
    border: 2px solid rgba(0, 150, 255, 0.5);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.blog-read-more:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0096FF 100%);
    border-color: #0096FF;
    color: white;
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 150, 255, 0.4);
}

/* Blog Post Tags */
.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.blog-tag {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    padding: 5px 15px;
    background: rgba(0, 102, 204, 0.3);
    border: 1px solid rgba(0, 150, 255, 0.4);
    border-radius: 20px;
    color: #0096FF;
    letter-spacing: 1px;
}

/* Single Blog Post Page */
.single-blog-header {
    text-align: center;
    padding: 100px 20px 40px;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.6) 0%, rgba(0, 102, 204, 0.6) 100%);
}

.single-blog-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 3px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.single-blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

.single-blog-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Single Blog Content */
.single-blog-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.single-blog-featured-image {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 150, 255, 0.3);
}

.single-blog-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.single-blog-text p {
    margin-bottom: 20px;
}

.single-blog-text h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: white;
    margin: 40px 0 20px;
    letter-spacing: 2px;
}

.single-blog-text h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    color: #0096FF;
    margin: 30px 0 15px;
    letter-spacing: 1.5px;
}

/* Social Share Buttons */
.social-share-section {
    background: linear-gradient(145deg, rgba(0, 102, 204, 0.15) 0%, rgba(0, 51, 102, 0.2) 100%);
    border: 2px solid rgba(0, 150, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 50px 0;
    text-align: center;
}

.social-share-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbd 100%);
    border-color: #1877f2;
}

.social-share-btn.facebook:hover {
    background: #1877f2;
}

.social-share-btn.instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
    border-color: #E4405F;
}

.social-share-btn.instagram:hover {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 100%);
}

.social-share-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-color: #25D366;
}

.social-share-btn.whatsapp:hover {
    background: #25D366;
}

.social-share-btn.email {
    background: linear-gradient(135deg, #0066cc 0%, #003d7a 100%);
    border-color: #0066cc;
}

.social-share-btn.email:hover {
    background: #0066cc;
}

/* Back to Blog Button */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #0096FF;
    text-decoration: none;
    padding: 15px 35px;
    background: linear-gradient(145deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 51, 102, 0.3) 100%);
    border: 2px solid rgba(0, 150, 255, 0.5);
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 30px 0;
}

.back-to-blog:hover {
    background: linear-gradient(135deg, #0066cc 0%, #0096FF 100%);
    border-color: #0096FF;
    color: white;
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 150, 255, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 40px 15px;
    }

    .blog-header h1 {
        font-size: 2.5rem;
    }

    .blog-header p {
        font-size: 1.1rem;
    }

    .single-blog-title {
        font-size: 2rem;
    }

    .single-blog-meta {
        font-size: 0.95rem;
        gap: 15px;
    }

    .blog-post-image {
        height: 220px;
    }

    .social-share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .social-share-btn {
        justify-content: center;
    }
}

/* Loading Animation for Blog Posts */
.blog-post-card.loading {
    background: linear-gradient(
        90deg,
        rgba(0, 51, 102, 0.3) 0%,
        rgba(0, 102, 204, 0.5) 50%,
        rgba(0, 51, 102, 0.3) 100%
    );
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* SEO-Friendly Video Embed */
.blog-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 150, 255, 0.3);
}

.blog-video-container video,
.blog-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
