/* ============================================
   ShoreTimer Blog - Post Page Styles
   ============================================ */

/* Main Content Container */
.blog-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

/* Back Link */
.blog-back {
    margin-bottom: 2rem;
}

.blog-back .nav-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-back .nav-back:hover {
    color: var(--coral);
}

.blog-back .nav-back svg {
    width: 18px;
    height: 18px;
}

/* Category Badge */
.blog-category-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: opacity 0.2s ease;
}

.blog-category-badge:hover {
    opacity: 0.8;
    color: inherit;
}

.blog-category-badge.tips {
    background: #FEF3C7;
    color: #92400E;
}

.blog-category-badge.destinations {
    background: #DBEAFE;
    color: #1E40AF;
}

.blog-category-badge.guides {
    background: #D1FAE5;
    color: #065F46;
}

.blog-category-badge.news {
    background: #EDE9FE;
    color: #5B21B6;
}

/* Post Header */
.blog-post-header {
    margin-bottom: 2rem;
}

.blog-post-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 1.25rem;
}

/* Post Meta */
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-meta svg {
    width: 16px;
    height: 16px;
    color: var(--teal);
}

/* Hero Image */
.blog-post-hero-image {
    margin-bottom: 2.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.blog-post-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article Body - Typography */
.blog-post-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--navy);
}

.blog-post-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.blog-post-body h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.blog-post-body h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

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

.blog-post-body a {
    color: var(--teal);
    text-decoration: underline;
    text-decoration-color: rgba(38, 166, 154, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.blog-post-body a:hover {
    color: var(--coral);
    text-decoration-color: var(--coral);
}

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

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

.blog-post-body ul li {
    list-style-type: disc;
}

.blog-post-body ol li {
    list-style-type: decimal;
}

.blog-post-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--gray-100);
    border-left: 4px solid var(--teal);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--navy-light);
}

.blog-post-body blockquote p:last-child {
    margin-bottom: 0;
}

.blog-post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-post-body code {
    background: var(--gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9em;
}

.blog-post-body pre {
    background: var(--navy);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
}

.blog-post-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.blog-post-body hr {
    border: none;
    height: 2px;
    background: var(--gray-200);
    margin: 3rem 0;
}

.blog-post-body strong {
    font-weight: 700;
    color: var(--navy);
}

/* Tip/Info Boxes */
.blog-post-body .tip,
.blog-post-body .info,
.blog-post-body .warning {
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.blog-post-body .tip {
    background: #D1FAE5;
    border-left: 4px solid #10B981;
}

.blog-post-body .info {
    background: #DBEAFE;
    border-left: 4px solid #3B82F6;
}

.blog-post-body .warning {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
}

/* Tags */
.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.tags-label {
    font-weight: 600;
    color: var(--navy);
    margin-right: 0.5rem;
}

.blog-tag {
    padding: 0.375rem 0.875rem;
    background: var(--gray-100);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Share Section */
.blog-post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: 12px;
}

.share-label {
    font-weight: 600;
    color: var(--navy);
}

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

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    color: var(--navy);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.share-btn.twitter:hover {
    background: #1DA1F2;
    color: var(--white);
}

.share-btn.facebook:hover {
    background: #4267B2;
    color: var(--white);
}

.share-btn.linkedin:hover {
    background: #0077B5;
    color: var(--white);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* Related Posts */
.blog-related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-200);
}

.blog-related h2 {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

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

.blog-related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
}

.blog-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-related-image {
    height: 120px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--teal-light) 0%, var(--gray-100) 100%);
}

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

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

.blog-related-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.blog-related-date {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* CTA Section */
.blog-cta {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--teal) 0%, #1a7a70 100%);
    border-radius: 16px;
    text-align: center;
    color: var(--white);
}

.blog-cta h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.blog-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.blog-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.blog-cta .btn-store {
    background: var(--white);
    color: var(--navy);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-cta .btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: var(--navy);
}

.blog-cta .btn-store svg {
    width: 28px;
    height: 28px;
}

.blog-cta .store-text {
    text-align: left;
    line-height: 1.2;
}

.blog-cta .store-text span {
    font-size: 0.7rem;
    display: block;
}

.blog-cta .store-text strong {
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-post-content {
        padding: 5rem 1.5rem 3rem;
    }

    .blog-post-meta {
        gap: 1rem;
    }

    .blog-post-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-cta {
        padding: 2rem 1.5rem;
    }
}
