﻿:root {
    --primary-orange: #ff7849;
    --text-color: #2c3e50;
    --background-color: #ffffff;
    --border-color: #e2e8f0;
    --hover-bg: #f8fafc;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.language-selector {
    position: absolute;
    top: 5rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.lang-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.lang-link:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.lang-link.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

.tab-nav {
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    width: 100%;
}

.tab-nav-container {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
    margin: 0 auto;
    max-width: max-content;
}

.tab-nav-container::-webkit-scrollbar {
    display: none;
}

.tab-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-link.active {
    color: var(--primary-orange);
    border-bottom-color: var(--primary-orange);
}

.tab-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.outline-sidebar {
    position: sticky;
    top: 2rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.outline-sidebar h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.outline-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.outline-item {
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.outline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-orange);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.outline-item:hover::before {
    transform: scaleY(1);
}

.outline-item:hover {
    background-color: var(--hover-bg);
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.outline-content {
    flex: 1;
    min-width: 0;
}

.outline-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.outline-date {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.outline-date .icon {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

.main-content {
    min-width: 0;
}

.blog-article {
    display: flex;
    gap: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.blog-article:hover {
    box-shadow: var(--shadow-hover);
    transform: translate3d(0, -4px, 0);
}

.blog-article.highlighted {
    position: relative;
    overflow: hidden;
}

.blog-article.highlighted::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 120, 73, 0.3) 50%, transparent 100%);
    animation: slideHighlight 2s ease-out;
}

.blog-article.highlighted::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-orange);
    animation: barGlow 2s ease-out;
}

@keyframes slideHighlight {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes barGlow {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.article-image {
    flex-shrink: 0;
    width: 240px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

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

.blog-article:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.article-content.full-width {
    width: 100%;
}

.article-header {
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
    flex-wrap: wrap;
}

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

.icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    flex-shrink: 0;
}

.article-excerpt {
    flex: 1;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.full-article-btn {
    background-color: transparent;
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.full-article-btn:hover {
    background-color: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 1rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.pagination-btn {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 100px;
    text-align: center;
}

.pagination-btn:hover:not(.disabled) {
    background-color: #e66a3e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 120, 73, 0.3);
}

.pagination-btn.disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    padding: 0 1rem;
}

@media (min-width: 769px) {
    .tab-nav-container {
        justify-content: center;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 240px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .tab-nav {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
    }

    .tab-nav-container {
        scroll-behavior: smooth;
        scroll-padding: 0 1rem;
    }

    .tab-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-text {
        display: inline-block !important;
    }

    .container {
        padding: 1rem;
    }

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

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

    .outline-sidebar {
        position: static;
        order: 2;
    }

    .main-content {
        order: 1;
    }

    .blog-article {
        flex-direction: column;
        gap: 1rem;
    }

    .language-selector {
        top: 1rem;
        right: 1rem;
    }

    .lang-link {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .article-image {
        width: 100%;
        height: 200px;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .pagination {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pagination-btn {
        width: 100%;
        text-align: center;
    }

    .article-excerpt {
        line-clamp: 6;
        -webkit-line-clamp: 6;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.75rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-article {
        padding: 1rem;
    }

    .language-selector {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-bottom: 1rem;
    }

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

    .outline-item {
        padding: 0.5rem;
    }

    .outline-title {
        font-size: 0.85rem;
    }

    .tab-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .article-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .full-article-btn {
        width: 100%;
        text-align: center;
    }
}