/* Blog System Styles */

/* ============================================
   BLOG LISTING PAGE (Homepage)
   ============================================ */

.blog-hero {
    min-height: 50vh;
    background: url('/images/pages/homepage/Paradise.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 3rem 1.5rem;
}

.blog-hero-content {
    text-align: center;
    color: #212529;
    z-index: 2;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
    line-height: 1.2;
}

.blog-hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* Blog Grid Layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

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

.blog-card-image {
    height: 200px;
    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: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.blog-card-category {
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-date,
.blog-card-read-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.3;
    font-weight: 600;
}

.blog-card .excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.read-more {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

.read-more i {
    font-size: 0.9rem;
}

/* ============================================
   INDIVIDUAL ARTICLE PAGE
   ============================================ */

.blog-article {
    background: white;
}

/* Article Header */
.article-header {
    background: #f8f9fa;
    padding: 4rem 0 2rem;
    text-align: center;
}

.article-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.95rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-meta i {
    color: #667eea;
}

.article-category-badge {
    background: #667eea;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Article Content */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.featured-image {
    margin: 0 0 3rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: #333;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #333;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-body blockquote {
    border-left: 4px solid #667eea;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-body a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: #5a6dc8;
}

/* Article CTA - Matches homepage .cta style */
.article-cta {
    background-color: #0c3257; /* var(--primary) - dark blue */
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin: 4rem 0 0;
}

.article-cta h3 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.article-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: white;
}

.article-cta .btn {
    /* Matches site's .btn-primary styles */
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #667eea;
    color: white;
    border: 2px solid #667eea;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.article-cta .btn:hover {
    color: white;
    transform: translateY(-2px);
    background: #5a6dc8;
    border-color: #5a6dc8;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Back to Blog Link */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: gap 0.3s ease;
}

.back-to-blog:hover {
    gap: 0.75rem;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .blog-hero {
        min-height: 40vh;
    }

    .blog-hero-content {
        padding: 2rem;
    }

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

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

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-meta {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.6rem;
    }

    .article-body h3 {
        font-size: 1.3rem;
    }

    .article-cta h3 {
        font-size: 1.6rem;
    }

    /* Contact drawer mobile styles */
    .contact-tab-button:before {
        top: 0;
        left: -100%;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 35%,
            rgba(255, 255, 255, 0.25) 50%,
            rgba(255, 255, 255, 0.1) 65%,
            transparent 100%
        );
        transform: translateX(var(--sheen-position-mobile, -100%));
    }

    .floating-contact-wrapper {
        left: 0 !important;
        right: 0;
        bottom: 0; /* Sit at bottom */
        top: auto;
        transform: translateY(calc(100% - 50px)); /* Show only the 50px button */
        width: 100%;
        flex-direction: column-reverse; /* Button on top */
        border-radius: 12px 12px 0 0;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -3px 20px rgba(0,0,0,0.2);
    }

    .floating-contact-wrapper.open {
        left: 0 !important;
        bottom: 0;
        transform: translateY(0); /* Show full panel */
    }

    .contact-slide-panel {
        width: 100%;
        max-width: none;
        padding: 20px;
    }

    .contact-tab-button {
        width: 100%;
        min-height: 50px;
        height: 50px;
        border-radius: 12px 12px 0 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-tab-button span {
        transform: none; /* Remove rotation on mobile */
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    /* Adjust panel items for mobile */
    .contact-panel-item {
        padding: 15px 20px;
        font-size: 1rem;
    }
}

/* ============================================
   CATEGORY FILTERS (Future Enhancement)
   ============================================ */

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: white;
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: #667eea;
    color: white;
}

/* ============================================
   NO ARTICLES STATE
   ============================================ */

.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-articles i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.no-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

/* ============================================
   CONTACT DRAWER (FLOATING PANEL)
   ============================================ */

.floating-contact-wrapper {
    position: fixed;
    left: -280px; /* Hidden off-screen initially */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    border-radius: 0 12px 12px 0;
    box-shadow: 3px 3px 20px rgba(0,0,0,0.2);
}

.floating-contact-wrapper.open {
    left: 0; /* Slide in from left */
}

/* Contact panel content */
.contact-slide-panel {
    padding: 20px 25px;
    width: 280px;
    display: flex;
    flex-direction: column;
}

/* Tab handle on the right side of drawer */
.contact-tab-button {
    background: #333;
    color: white;
    border: none;
    width: 50px;
    min-height: 160px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0 12px 12px 0;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-tab-button span {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: rotate(90deg);
    white-space: nowrap;
    display: block;
}

.contact-tab-button:hover {
    background: #555;
}

/* Sheen effect */
.contact-tab-button:before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 35%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.1) 65%,
        transparent 100%
    );
    transition: none;
    pointer-events: none;
    transform: translateY(var(--sheen-position, -100%));
}

/* Click overlay for closing drawer */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    /* Ensure overlay works on mobile */
    -webkit-tap-highlight-color: transparent;
}

.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.panel-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
}

.panel-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.panel-close:hover {
    background: #f0f0f0;
    color: #333;
}

.contact-panel-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.contact-panel-item:hover {
    background: #333;
    color: white;
    transform: translateX(3px);
}

.contact-panel-item i {
    font-size: 1.2rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.contact-panel-item span {
    font-size: 0.95rem;
    font-weight: 500;
}
