/* ============================================================================
   BLOG PAGE STYLES - Clean and Modern Design
   ============================================================================ */

* {
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

html, body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #d0d0d0;
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
}

body {
    padding-top: 80px; /* Account for fixed header */
}

/* Adjust padding when flash sale banner is visible */
body:has(.flash-sale-banner[style*="display: block"]) {
    padding-top: 130px; /* Extra padding when banner is visible */
}

/* Blog Main Container - Dark Theme */
.blog-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: calc(100vh - 200px);
    padding: 60px 0; /* Additional padding since body already has padding-top */
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.blog-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(3, 122, 122, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(3, 122, 122, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.blog-header h1 {
    color: #ffffff;
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 20px;
}

.blog-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgb(3, 122, 122), transparent);
    border-radius: 2px;
}

.blog-subtitle {
    color: #b0b0b0;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Blog Card - Dark Theme */
.blog-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(42, 42, 42, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgb(3, 122, 122), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(3, 122, 122, 0.2),
                0 4px 20px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-color: rgba(3, 122, 122, 0.5);
}

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

.blog-card:active {
    transform: translateY(-4px) scale(0.98);
    box-shadow: 0 4px 15px rgba(3, 122, 122, 0.3),
                0 2px 10px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #b0b0b0;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-date i {
    color: rgb(3, 122, 122);
}

.blog-category {
    background: linear-gradient(135deg, rgb(3, 122, 122), #4dd0e1);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(3, 122, 122, 0.3);
}

.blog-card-title {
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
}

.blog-card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.blog-card-title a:hover {
    color: rgb(3, 122, 122);
}

.blog-card-excerpt {
    color: #d0d0d0;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgb(3, 122, 122);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.blog-read-more:hover {
    gap: 12px;
    color: rgb(2, 100, 100);
}

.blog-read-more i {
    font-size: 14px;
}

/* Blog Detail Page - Dark Theme */
.blog-detail-main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: calc(100vh - 200px);
    padding: 40px 0 60px; /* Reduced since body already has padding-top: 80px */
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* Adjust padding when flash sale banner is visible */
body:has(.flash-sale-banner[style*="display: block"]) .blog-detail-main {
    padding-top: 50px; /* Extra padding when banner is visible */
}

.blog-detail-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(3, 122, 122, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(3, 122, 122, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.blog-detail-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
}

/* Breadcrumb */
.blog-breadcrumb {
    margin-bottom: 30px;
    margin-top: 0;
    font-size: 14px;
    padding-top: 0;
}

.blog-breadcrumb a {
    color: rgb(3, 122, 122);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-breadcrumb a:hover {
    color: #4dd0e1;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #888;
}

.breadcrumb-current {
    color: #b0b0b0;
}

/* Blog Detail Article - Dark Theme */
.blog-detail-article {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(42, 42, 42, 0.8);
}

.blog-detail-header {
    padding: 40px 40px 30px;
    margin-bottom: 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(42, 42, 42, 0.5);
    padding-top: 60px;
}

.blog-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
    font-size: 14px;
    color: #b0b0b0;
    flex-wrap: wrap;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

.blog-detail-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b0b0b0;
}

.blog-detail-date i {
    color: rgb(3, 122, 122);
    font-size: 14px;
}

.blog-detail-date .date-text {
    color: #b0b0b0;
}

.blog-detail-category {
    background: linear-gradient(135deg, rgb(3, 122, 122), #4dd0e1);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(3, 122, 122, 0.3);
    display: inline-block;
}

.blog-detail-title {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    margin-top: 0;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
    word-spacing: 1px;
    padding-right: 0;
}

.blog-detail-banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

.blog-detail-content {
    padding: 40px 20px;
}

.blog-intro {
    font-size: 18px;
    color: #d0d0d0;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 500;
}

.blog-detail-content h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 35px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgb(3, 122, 122);
    position: relative;
}

.blog-detail-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, rgb(3, 122, 122), transparent);
}

.blog-detail-content p {
    color: #d0d0d0;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-detail-content ul {
    margin-left: 30px;
    margin-bottom: 25px;
}

.blog-detail-content li {
    color: #d0d0d0;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.blog-detail-content strong {
    color: rgb(3, 122, 122);
    font-weight: 600;
}

.blog-detail-footer {
    padding: 30px 20px 40px;
    border-top: 2px solid rgba(42, 42, 42, 0.8);
}

.blog-detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgb(3, 122, 122);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease, color 0.3s;
}

.blog-back-link:hover {
    gap: 12px;
    color: rgb(2, 100, 100);
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-share span {
    color: #b0b0b0;
    font-weight: 600;
    font-size: 14px;
}

.blog-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    color: rgb(3, 122, 122);
    border: 2px solid rgba(42, 42, 42, 0.8);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.blog-share a:hover {
    background: linear-gradient(135deg, rgb(3, 122, 122), #4dd0e1);
    color: white;
    border-color: rgb(3, 122, 122);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(3, 122, 122, 0.4);
}

/* Product Links in Blog Content */
.blog-detail-content .product-link {
    color: rgb(3, 122, 122);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.blog-detail-content .product-link:hover {
    color: rgb(2, 100, 100);
    border-bottom-color: rgb(2, 100, 100);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet Portrait (768px - 1023px) */
@media(max-width: 1023px) {
    .blog-header h1 {
        font-size: 36px;
    }
    
    .blog-subtitle {
        font-size: 16px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .blog-detail-title {
        font-size: 32px;
        line-height: 1.4;
        letter-spacing: -0.4px;
    }
    
    .blog-detail-header {
        padding: 55px 30px 25px;
    }
    
    .blog-detail-meta {
        gap: 18px;
        margin-bottom: 0;
        top: 15px;
        right: 15px;
    }
    
    .blog-detail-content,
    .blog-detail-footer {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .blog-detail-banner {
        height: 350px;
    }
}

/* Mobile Landscape (600px - 767px) */
@media(max-width: 767px) {
    .blog-main {
        padding: 30px 20px 50px;
    }
    
    .blog-header {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .blog-header h1 {
        font-size: 28px;
    }
    
    .blog-subtitle {
        font-size: 15px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card-image {
        height: 200px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-title {
        font-size: 20px;
    }
    
    .blog-detail-main {
        padding: 110px 0 50px;
    }
    
  
    
    .blog-detail-title {
        font-size: 26px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        position: relative;
        z-index: 1;
        letter-spacing: -0.3px;
    }
    
    .blog-detail-meta {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        margin-bottom: 0;
        font-size: 13px;
        flex-wrap: wrap;
        top: 15px;
        right: 15px;
    }
    
    .blog-detail-header {
        padding: 50px 25px 25px;
        margin-bottom: 0;
        margin-top: 0;
        position: relative;
        z-index: 1;
    }
    
    .blog-detail-content,
    .blog-detail-footer {
        padding: 20px 0;
    }
    
    .blog-detail-banner {
        height: 250px;
    }
    
    .blog-detail-content h2 {
        font-size: 22px;
    }
    
    .blog-detail-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .blog-share {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Mobile Portrait (480px - 599px) */
@media(max-width: 599px) {
    .blog-header h1 {
        font-size: 24px;
    }
    
    .blog-card-title {
        font-size: 18px;
    }
    
    .blog-detail-main {
        padding: 100px 0 40px;
    }
    
 
    .blog-detail-title {
        font-size: 22px;
        line-height: 1.35;
        word-wrap: break-word;
        overflow-wrap: break-word;
        position: relative;
        z-index: 1;
        letter-spacing: -0.2px;
    }
    
    .blog-detail-meta {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
        font-size: 12px;
        flex-wrap: wrap;
        top: 12px;
        right: 12px;
    }
    
    .blog-detail-header {
        padding: 45px 20px 20px;
        margin-bottom: 0;
        margin-top: 0;
        position: relative;
        z-index: 1;
    }
    
    .blog-detail-category {
        padding: 5px 14px;
        font-size: 11px;
    }
    
    .blog-detail-content h2 {
        font-size: 18px;
    }
    
    .blog-detail-content {
        font-size: 14px;
        padding: 15px 0;
    }
    
    .blog-detail-content p,
    .blog-detail-content li {
        font-size: 14px;
    }
    
    .blog-detail-banner {
        height: 200px;
    }
}

