/* Import design tokens */
@import url('../../design-tokens.css');

/* Blog Main Container */
.blog-main {
    min-height: 100vh;
    background-color: white;
}

/* Container and common styles moved to common.css */

/* Blog Navigation */
.blog-nav {
    background: white;
    padding: 110px 0 40px 0; /* Top padding to account for fixed navbar (70px) + extra space */
    border-bottom: 1px solid #f0f0f0;
}

.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-label {
    font-weight: 600;
    color: var(--accent-charcoal-black);
    font-size: 16px;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e0e0e0;
    color: var(--accent-charcoal-black);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.search-box {
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 8px 16px;
    min-width: 300px;
}

.search-field {
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--accent-charcoal-black);
    flex: 1;
    outline: none;
}

.search-field::placeholder {
    color: #999;
}

.search-submit {
    background: none;
    border: none;
    color: var(--primary-orange);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Latest Post Section */
.latest-post {
    background: white;
    padding: 60px 0;
}

.latest-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    transition: transform 0.3s ease;
}

.latest-card:hover {
    transform: translateY(-5px);
}

.latest-card .card-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    width: 100%;
    height: 100%;
}

.latest-card .card-link:hover {
    text-decoration: none !important;
}

.latest-card a {
    text-decoration: none !important;
    color: inherit !important;
}

.latest-card a:hover {
    text-decoration: none !important;
}

.latest-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

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

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

.latest-content {
    padding: 30px;
}

.latest-content .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.post-category {
    background: var(--primary-orange);
    color: white;
    padding: 4px 12px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-date {
    color: #666;
    font-size: 14px;
}

.latest-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-charcoal-black);
    margin-bottom: 15px;
    line-height: 1.3;
    text-decoration: none !important;
}

.latest-title a {
    text-decoration: none !important;
    color: inherit !important;
}

.latest-card .latest-title {
    text-decoration: none !important;
}

.latest-excerpt {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Posts Grid Section */
.posts-grid-section {
    background: white;
    padding: 40px 0 80px;
}

/* Category Description */
.category-description {
    max-width: 800px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results .section-title {
    margin-bottom: 20px;
}

.no-results p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.no-results a {
    color: var(--primary-orange);
    text-decoration: underline;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 0;
}

/* Post Cards */
.post-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-3px);
}

.post-card .card-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    width: 100%;
    height: 100%;
}

.post-card .card-link:hover {
    text-decoration: none !important;
}

.post-card a {
    text-decoration: none !important;
    color: inherit !important;
}

.post-card a:hover {
    text-decoration: none !important;
}

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

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

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

.post-content {
    padding: 20px;
}

.post-content .post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-charcoal-black);
    margin-bottom: 10px;
    line-height: 1.4;
    text-decoration: none !important;
}

.post-title a {
    text-decoration: none !important;
    color: inherit !important;
}

.post-card .post-title {
    text-decoration: none !important;
}

.post-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-nav {
        padding: 100px 0 30px 0; /* Mobile navbar is 60px + extra space */
    }
    
    .blog-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .category-filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filter-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .search-form {
        min-width: auto;
        width: 100%;
    }
    
    .latest-title {
        font-size: 24px;
    }
    
    .latest-content {
        padding: 20px;
    }
    
    .latest-image {
        height: 250px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-image {
        height: 180px;
    }
    
    .post-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .blog-nav {
        padding: 100px 0 20px 0;
    }
    
    .latest-title {
        font-size: 20px;
    }
    
    .latest-content {
        padding: 15px;
    }
    
    .latest-image {
        height: 200px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .post-image {
        height: 160px;
    }
    
    .post-content {
        padding: 12px;
    }
    
    .post-title {
        font-size: 16px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
    padding: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: white;
    color: var(--accent-charcoal-black);
    text-decoration: none;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.pagination .current {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

/* Post Placeholder (for posts without images) */
.post-placeholder,
.featured-placeholder,
.latest-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

/* Single Post Styles - Amadeus Design */
.single-post-main {
    background: white;
}

/* Breadcrumb Navigation */
.breadcrumb-section {
    background: white;
    padding: 120px 0 0 0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--primary-orange);
}

.breadcrumb-separator {
    color: #ccc;
}

.breadcrumb-current {
    color: var(--accent-charcoal-black);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.post-hero {
    background: white;
    padding: 30px 0 40px;
    border-bottom: 1px solid #f0f0f0;
}

.post-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.post-hero-content .post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.post-hero-content .post-category {
    background: var(--primary-orange);
    color: white;
    padding: 6px 14px;
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-hero-content .post-date {
    color: #666;
    font-size: 14px;
}

.post-hero-content .post-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-charcoal-black);
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.post-hero-content .post-excerpt {
    font-size: 20px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.post-hero-content .post-author {
    color: #999;
    font-size: 14px;
}

/* Featured Image */
.post-featured-image {
    padding: 0;
    margin-bottom: 50px;
}

.featured-image-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-featured-img {
    width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
}

/* Post Content */
.post-content-section {
    padding: 50px 0 80px;
    background: white;
}

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

.post-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.post-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-charcoal-black);
    margin-top: 50px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-charcoal-black);
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.post-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-charcoal-black);
    margin-top: 30px;
    margin-bottom: 12px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    display: block;
}

.post-content a {
    color: var(--primary-orange);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-content a:hover {
    color: var(--secondary-red);
}

.post-content ul,
.post-content ol {
    margin: 24px 0;
    padding-left: 40px;
}

.post-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.post-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid var(--primary-orange);
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

.post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.post-content pre {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

/* Post Tags */
.post-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.post-tags h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-charcoal-black);
    margin-bottom: 15px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-list .tag {
    padding: 6px 14px;
    background: #f0f0f0;
    color: var(--accent-charcoal-black);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tags-list .tag:hover {
    background: var(--primary-orange);
    color: white;
}

/* Author Bio */
.author-bio {
    margin-top: 50px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
}

.author-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-details h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-charcoal-black);
    margin-bottom: 8px;
}

.author-details p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
}

.nav-direction {
    font-size: 13px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover .nav-direction {
    color: white;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-charcoal-black);
    line-height: 1.4;
}

.nav-link:hover .nav-title {
    color: white;
}

/* Related Posts */
.related-posts {
    padding: 80px 0;
    background: #f9f9f9;
}

.related-posts .section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-charcoal-black);
    margin-bottom: 40px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
}

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

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

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

.related-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.related-content {
    padding: 20px;
}

.related-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.related-category {
    background: var(--primary-orange);
    color: white;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.related-date {
    color: #666;
    font-size: 13px;
}

.related-title {
    margin-bottom: 10px;
}

.related-title a {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-charcoal-black);
    text-decoration: none;
    line-height: 1.4;
}

.related-title a:hover {
    color: var(--primary-orange);
}

.related-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(233, 84, 32, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--secondary-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(233, 84, 32, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Single Post Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
    .breadcrumb-section {
        padding: 100px 0 0 0;
    }
    
    .breadcrumb-nav {
        font-size: 13px;
        gap: 6px;
    }
    
    .breadcrumb-current {
        max-width: 150px;
    }
    
    .post-hero {
        padding: 20px 0 25px;
    }
    
    .post-hero-content .post-title {
        font-size: 32px;
    }
    
    .post-hero-content .post-excerpt {
        font-size: 16px;
    }
    
    .post-content {
        font-size: 16px;
    }
    
    .post-content h2 {
        font-size: 26px;
    }
    
    .post-content h3 {
        font-size: 20px;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .author-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--accent-charcoal-black);
    color: var(--page-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-title {
    color: var(--page-white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-section .social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-section .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    transition: all 0.3s ease;
}

.footer-section .social-link:hover {
    background-color: var(--primary-orange);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section {
        align-items: center;
    }
}