/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    background: #f8f9fa;
}

/* Navigation */
.blog-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 60px;
}

.nav-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.back-button {
    background: linear-gradient(135deg, #00a86b 0%, #008c59 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 168, 107, 0.3);
}

/* Breadcrumb */
.breadcrumb-wrapper {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    margin-top: 80px;
    position: sticky;
    top: 80px;
    z-index: 999;
}

.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #00a86b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #008c59;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #666;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

/* Main Content */
.article-wrapper {
    min-height: 100vh;
}

.article-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* Aside - Related Articles */
.aside-related {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.aside-title {
    font-size: 1.5rem;
    color: #1a2740;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #00a86b;
}

.related-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-item h3 {
    font-size: 0.95rem;
    color: #1a2740;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-item .date {
    font-size: 0.8rem;
    color: #999;
}

/* Main Article */
.article-main {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-header {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.article-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-meta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: white;
}

.article-category {
    display: inline-block;
    background: #00a86b;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
}

.article-body {
    padding: 3rem;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 3rem;
}

.article-content h2 {
    font-size: 1.8rem;
    color: #1a2740;
    margin: 2rem 0 1rem;
}

.article-content h3 {
    font-size: 1.4rem;
    color: #1a2740;
    margin: 1.5rem 0 0.75rem;
}

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

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Share Buttons */
.share-section {
    padding: 2rem 3rem 3rem;
    border-top: 2px solid #f0f0f0;
}

.share-title {
    font-size: 1.2rem;
    color: #1a2740;
    margin-bottom: 1rem;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

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

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

.share-btn.linkedin {
    background: #0077B5;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.email {
    background: #666;
}

.share-btn.copy {
    background: #00a86b;
}

/* Related Cards Section */
.related-cards-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.related-cards-title {
    font-size: 2rem;
    color: #1a2740;
    margin-bottom: 2rem;
    text-align: center;
}

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

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.related-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.related-card-content {
    padding: 1.5rem;
}

.related-card-category {
    display: inline-block;
    background: #00a86b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.related-card-title {
    font-size: 1.25rem;
    color: #1a2740;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.related-card-date {
    font-size: 0.85rem;
    color: #999;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.2rem;
    color: #666;
    margin-top: 80px;
}

/* Error State */
.error {
    text-align: center;
    padding: 4rem 2rem;
    color: #e74c3c;
    margin-top: 80px;
}

.error h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.icon-share {
    width: 22px;
    height: 22px;
    color: white;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .article-container {
        grid-template-columns: 1fr;
    }

    .aside-related {
        position: static;
        order: 2;
    }

    .article-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .breadcrumb {
        padding: 0 1rem;
        font-size: 0.85rem;
    }

    .breadcrumb-current {
        max-width: 250px;
    }

    .article-header {
        height: 300px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-body {
        padding: 2rem 1.5rem;
    }

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

    .share-section {
        padding: 1.5rem;
    }

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

@media (max-width: 480px) {
    .breadcrumb {
        padding: 0 0.75rem;
        font-size: 0.8rem;
    }

    .breadcrumb-current {
        max-width: 150px;
    }

    .article-container {
        padding: 2rem 1rem;
    }

    .article-header {
        height: 250px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    .article-meta-overlay {
        padding: 1.5rem;
    }

    .article-body {
        padding: 1.5rem 1rem;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .article-category {
        display: none;
    }

    .article-meta {
        display: none;
    }
}

@media (max-width: 425px) {
    .article-title {
        font-size: 1.3rem;
    }
}