/* LuvLnk Blog System Stylesheet - Light Theme (matches about_us.html main layout) */

/* Blog Layout Containers */
.blog-section {
    background-color: #f5f6f8;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    color: #4a5568;
    padding: 6rem 0 4rem;
    min-height: calc(100vh - 200px);
}

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

/* Header & Search */
.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #e84393 0%, #0984e3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}

.blog-subtitle {
    color: #4a5568;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Blog Cards */
.blog-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.blog-card:hover {
    transform: translateY(-12px) scale(1.02) rotateX(2deg) rotateY(-1deg);
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(232, 67, 147, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08), 0 0 30px rgba(232, 67, 147, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.blog-card-image-link {
    display: block;
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.02);
    transform: translateZ(10px);
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image-link {
    transform: translateZ(30px) scale(1.02);
}

.blog-card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.blog-card-image-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    transform: translateZ(20px);
    transition: transform 0.4s ease;
    box-sizing: border-box;
}

.blog-card:hover .blog-card-image-text {
    transform: translateZ(40px);
}

.blog-card-title-overlay {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0.5rem 0 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-date {
    font-weight: 500;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transform: translateZ(15px);
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-content {
    transform: translateZ(35px);
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-card-category {
    background: rgba(9, 132, 227, 0.1);
    color: #0984e3;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.blog-card-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s;
}

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

.blog-card-excerpt {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e84393;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.2s;
    align-self: flex-start;
}

.blog-card-readmore:hover {
    color: #0984e3;
    transform: translateX(4px);
}

/* Loading & Empty State */
.blog-empty-state {
    text-align: center;
    padding: 5rem 0;
    color: #718096;
}

.blog-empty-state i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #e84393, #0984e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Blog Detail Page */
.blog-detail-section {
    background-color: #f5f6f8;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    color: #4a5568;
    padding: 6rem 0 6rem;
}

.blog-detail-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.blog-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    transition: color 0.2s;
}

.blog-detail-back:hover {
    color: #e84393;
}

.blog-detail-header {
    margin-bottom: 2.5rem;
}

.blog-detail-category {
    display: inline-block;
    background: rgba(9, 132, 227, 0.1);
    color: #0984e3;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}

.blog-detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: #1a202c;
    letter-spacing: -0.02em;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9rem;
    color: #718096;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.2rem 0;
}

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

.blog-detail-image-wrapper {
    width: 100%;
    height: 480px;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 3.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.blog-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rich Text Content Styling */
.blog-content-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2d3748;
}

.blog-content-body p {
    margin-bottom: 1.8rem;
}

.blog-content-body h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a202c;
    margin: 3rem 0 1.2rem;
    letter-spacing: -0.01em;
}

.blog-content-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a202c;
    margin: 2.5rem 0 1rem;
}

.blog-content-body ul, .blog-content-body ol {
    margin-bottom: 1.8rem;
    padding-left: 24px;
}

.blog-content-body li {
    margin-bottom: 0.6rem;
}

.blog-content-body a {
    color: #e84393;
    text-decoration: underline;
    transition: color 0.2s;
}

.blog-content-body a:hover {
    color: #0984e3;
}

.blog-content-body blockquote {
    border-left: 4px solid #e84393;
    background: #f7fafc;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 18px 18px 0;
    font-style: italic;
    color: #1a202c;
    font-size: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    border-right: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.blog-content-body blockquote p {
    margin-bottom: 0;
}

.blog-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 2.5rem 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-content-body hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 3rem 0;
}

/* Related Posts Section */
.related-posts-section {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 5rem;
    margin-top: 5rem;
}

.related-posts-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    color: #1a202c;
    text-align: left;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Footer tags */
.blog-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-tag-pill {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #718096;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.blog-tag-pill:hover {
    color: #1a202c;
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-detail-image-wrapper {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .search-input-field {
        width: 100% !important;
        max-width: 100% !important;
    }
    .blog-detail-image-wrapper {
        height: 260px;
        border-radius: 18px;
    }
    .blog-detail-title {
        font-size: 2.2rem;
    }
}

/* Premium Glassmorphic Search Box */
.premium-search-box {
    max-width: 500px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.search-input-field {
    width: 100%;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    color: #1a202c;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input-field:focus {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(9, 132, 227, 0.4);
    box-shadow: 0 0 20px rgba(9, 132, 227, 0.15), 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-input-field::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

/* Recent Posts Details */
.recent-posts-container {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.recent-posts-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #1a202c;
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.recent-post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.recent-post-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(232, 67, 147, 0.2);
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.recent-post-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.recent-post-headline {
    color: #2d3748;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.recent-post-item:hover .recent-post-headline {
    color: #e84393;
}

.recent-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #718096;
}

.recent-post-category {
    background: rgba(9, 132, 227, 0.1);
    color: #0984e3;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.recent-post-arrow {
    color: rgba(0, 0, 0, 0.25);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.recent-post-item:hover .recent-post-arrow {
    color: #e84393;
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .recent-post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .recent-post-arrow {
        display: none;
    }
}


/* Blog Post Details Glassmorphic Card Wrapper */
.blog-detail-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 3.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
    margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
    .blog-detail-card {
        padding: 2rem 1.25rem;
        border-radius: 20px;
    }
}


/* Blog Card Footer Wrapper */
.blog-card-footer {
    padding: 1.25rem 1.8rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: transparent;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}


/* Sticky/Fixed Navbar for Blog in Desktop Mode */
@media (min-width: 769px) {
    nav.container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        z-index: 11000 !important;
        background: rgba(10, 14, 23, 0.95) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .blog-section {
        padding-top: 8rem !important;
    }
    
    .blog-detail-section {
        padding-top: 8rem !important;
    }
}
