/* ============================================
   BLOG STYLES - Following Main Website Design
   ============================================ */

/* Navigation Active State */
.nav-link.blog-active {
    color: var(--color-red) !important;
}

/* Breadcrumb styling */
.breadcrumb {
    padding: 100px 64px 20px;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.breadcrumb a {
    color: var(--color-gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--color-red);
}

.breadcrumb span {
    color: var(--color-gray-light);
    margin: 0 10px;
}

/* Blog Hero - Following Drooky brand */
.blog-hero {
    padding: 150px 64px 60px;
    background: var(--color-dark);
    text-align: center;
}

.blog-hero .container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
}

.blog-hero h1 {
    font-weight: 700;
    font-size: 64px;
    line-height: 1.21;
    letter-spacing: -0.04em;
    color: var(--color-white);
    margin: 0 0 16px 0;
}

.blog-hero p {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-gray-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Categories Section */
.blog-categories {
    padding: 50px 64px;
    background: var(--color-dark-secondary);
    border-bottom: none;
}

.categories-container,
.category-filters {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.category-btn {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: var(--border-radius-button);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0.98);
}

.category-btn.active {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
}

/* Blog Sidebar Actions */
.blog-sidebar-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.sidebar-btn {
    background: transparent;
    color: var(--color-red);
    border: 1px solid var(--color-red);
    padding: 12px 24px;
    border-radius: var(--border-radius-button);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-btn:hover {
    background: var(--color-red);
    color: var(--color-white);
    transform: scale(0.98);
}

/* Blog Content Section */
.blog-content {
    padding: 100px 64px;
    background: var(--color-dark);
    min-height: 600px;
}

.blog-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

/* Blog Card - Drooky brand design */
.blog-card {
    background: var(--color-dark-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(242, 61, 61, 0.15);
    border-color: var(--color-red);
}

.blog-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--color-dark);
}

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

.blog-card-category {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(242, 61, 61, 0.1);
    color: var(--color-red);
    border-radius: var(--border-radius-button);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Featured Badge */
.blog-card-featured {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-red);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: var(--border-radius-button);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(242, 61, 61, 0.3);
}

.blog-card h3 {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: 12px;
}

.blog-card p {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-light);
    margin-bottom: 24px;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: 500;
    font-size: 14px;
    color: var(--color-white);
}

.blog-card-date {
    font-size: 14px;
    color: var(--color-gray-light);
    opacity: 0.7;
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination-btn {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: var(--border-radius-small);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 40px;
    text-align: center;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: var(--color-red);
    border-color: var(--color-red);
}

/* Blog Newsletter - Following CTA patterns */
.blog-newsletter {
    padding: 100px 64px;
    background: var(--color-dark-secondary);
}

.newsletter-container,
.newsletter-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-card h3 {
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: 16px;
}

.newsletter-container h2 {
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: 16px;
}

.newsletter-container p,
.newsletter-card p {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-gray-light);
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    gap: 16px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    background: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-button);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 16px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    background: var(--color-red);
    color: var(--color-white);
    border: none;
    padding: 16px 32px;
    border-radius: var(--border-radius-button);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #c02a2a;
    transform: scale(0.98);
}

.newsletter-form button:active {
    background: #a02222;
    transform: scale(0.96);
}

/* Blog Modals - Following modal patterns */
.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.blog-modal.active {
    display: flex;
}

.blog-modal-content {
    background: var(--color-dark-secondary);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-modal-header h3 {
    font-weight: 600;
    font-size: 24px;
    color: var(--color-white);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.blog-modal-body {
    padding: 32px;
    overflow-y: auto;
}

.blog-search-input {
    width: 100%;
    padding: 16px 24px;
    background: var(--color-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-button);
    color: var(--color-white);
    font-family: var(--font-family);
    font-size: 16px;
}

.blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-results {
    margin-top: 24px;
}

.search-result-item {
    padding: 16px;
    background: var(--color-dark);
    border-radius: var(--border-radius-small);
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-item h4 {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-white);
    margin-bottom: 4px;
}

.search-result-item p {
    font-size: 14px;
    color: var(--color-gray-light);
    opacity: 0.8;
}

/* Archive Content */
.archive-content {
    max-height: 400px;
    overflow-y: auto;
}

.archive-year {
    margin-bottom: 24px;
}

.archive-year h4 {
    font-weight: 600;
    font-size: 18px;
    color: var(--color-red);
    margin-bottom: 12px;
}

.archive-year ul {
    list-style: none;
}

.archive-year li {
    margin-bottom: 8px;
}

.archive-year a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}

.archive-year a:hover {
    color: var(--color-red);
}

/* Article Page Styles - Drooky brand */
.article-header {
    padding: 180px 64px 60px;
    background: var(--color-dark-secondary);
    border-bottom: none;
}

.article-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.article-header h1 {
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-white);
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    color: var(--color-gray-light);
    font-size: 16px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.article-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-details {
    display: flex;
    flex-direction: column;
}

.article-author-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.article-author-title {
    font-size: 14px;
    color: #666;
}

.article-content {
    padding: 60px 0 100px;
    background: var(--color-dark);
}

.article-content .article-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.article-content h2 {
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    color: var(--color-white);
    margin: 40px 0 20px;
}

.article-content h3 {
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
    color: var(--color-white);
    margin: 32px 0 16px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-gray-light);
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.article-content li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-gray-light);
    margin-bottom: 10px;
}

.article-content blockquote {
    border-left: 3px solid #666;
    padding-left: 20px;
    margin: 32px 0;
    font-style: italic;
    color: #666;
}

.article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 15px;
    color: #d14;
}

.article-content pre {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 32px 0;
    border: 1px solid #e0e0e0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* Article sidebar */
.article-sidebar {
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    background: #f8f8f8;
}

.article-sidebar .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 64px;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.related-articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-article {
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-article:hover {
    transform: scale(0.98);
}

.related-article img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.related-article h4 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

/* Load More Button */
.blog-load-more {
    text-align: center;
    margin-top: 50px;
}

.blog-load-more .btn-primary {
    background: var(--color-red);
    color: var(--color-white);
    padding: 14px 32px;
    border-radius: var(--border-radius-button);
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.blog-load-more .btn-primary:hover {
    background: #e13535;
    transform: scale(0.98);
}

/* Blog Mobile Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 150px 32px 60px;
    }
    
    .blog-hero h1 {
        font-size: 40px;
    }
    
    .blog-categories {
        padding: 40px 32px;
    }
    
    .blog-content {
        padding: 60px 32px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .blog-card-content {
        padding: 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .blog-newsletter {
        padding: 60px 32px;
    }
    
    .newsletter-container h2 {
        font-size: 32px;
    }
    
    .article-header {
        padding: 150px 32px 60px;
    }
    
    .article-header h1 {
        font-size: 36px;
    }
    
    .article-content {
        padding: 60px 32px;
    }
    
    .categories-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .blog-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .blog-modal-header,
    .blog-modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: 32px;
    }
    
    .blog-hero p {
        font-size: 16px;
    }
    
    .blog-card h3 {
        font-size: 20px;
    }
    
    .newsletter-container h2 {
        font-size: 28px;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
}