/* Station 1905 - Tech Minimal Style */
/* Color Scheme: Slate #0f172a, Blue #3b82f6, White #ffffff */

:root {
    --primary-color: #0f172a;
    --accent-color: #3b82f6;
    --bg-color: #ffffff;
    --text-color: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --header-height: 70px;
    --header-height-mobile: 55px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.logo:hover {
    color: var(--accent-color);
}

.main-nav {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu li a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Breadcrumb */
.breadcrumb-wrapper {
    background: transparent;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin: 0 0.75rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.breadcrumb .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* Two Columns */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

/* Section */
.section {
    padding: 3rem 0;
}

.section-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.featured-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-card:first-child .featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-img {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.featured-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-content {
    padding: 1.5rem;
}

.featured-category {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.featured-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-title a {
    color: var(--primary-color);
    transition: color 0.2s;
}

.featured-title a:hover {
    color: var(--accent-color);
}

.featured-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.featured-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Articles Grid with Number */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.card-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 2;
}

.card-img {
    overflow: hidden;
}

.card-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 1.25rem;
}

.card-category {
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: var(--primary-color);
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--accent-color);
}

.card-excerpt {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Timeline List */
.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-item:hover {
    border-color: var(--accent-color);
    transform: translateX(8px);
}

.timeline-number {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
}

.timeline-content {
    display: flex;
    flex: 1;
}

.timeline-img {
    width: 200px;
    flex-shrink: 0;
}

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

.timeline-body {
    padding: 1.5rem;
    flex: 1;
}

/* Ad */
.ad-div {
    text-align: center;
}

.ad-wrapper,
.ad-wrapper-full {
    grid-column: 1 / -1;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.author-box {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--accent-color);
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.author-name a {
    color: var(--primary-color);
}

.author-name a:hover {
    color: var(--accent-color);
}

.author-bio {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-color);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.trending-number {
    width: 28px;
    height: 28px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.trending-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.trending-title a {
    color: var(--text-color);
    transition: color 0.2s;
}

.trending-title a:hover {
    color: var(--accent-color);
}

.sidebar-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.2s;
}

.sidebar-list a:hover {
    color: var(--accent-color);
}

.post-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Pagination */
.pagination-wrap {
    margin-top: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
}

.page-link.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.page-link:hover:not(.active) {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Article Detail */
.article-detail {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.author-mini img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.date.updated {
    color: var(--accent-color);
}

.views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-body {
    font-size: 0.985rem;
    letter-spacing: 0.2px;
    color: var(--text-color);
    line-height: 1.75;
}

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

.article-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.article-body h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--primary-color);
}

.article-body img {
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-body code {
    background: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.article-body pre {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
}

/* Author Bio Card */
.author-bio-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    border: 1px solid var(--border-color);
}

.author-bio-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.author-bio-info h4 a {
    color: var(--primary-color);
}

.author-bio-info h4 a:hover {
    color: var(--accent-color);
}

.author-bio-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Share */
.share-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

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

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.share-btn i {
    font-size: 1.1rem;
}

.share-twitter {
    color: #1da1f2;
}

.share-twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-facebook {
    color: #4267b2;
}

.share-facebook:hover {
    background: #4267b2;
    color: white;
}

.share-linkedin {
    color: #0077b5;
}

.share-linkedin:hover {
    background: #0077b5;
    color: white;
}

.share-pinterest {
    color: #e60023;
}

.share-pinterest:hover {
    background: #e60023;
    color: white;
}

/* Related */
.related-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.related-card {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.related-img {
    overflow: hidden;
}

.related-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.related-content {
    padding: 1rem;
}

.related-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.related-content .meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Author Page */
.author-profile {
    max-width: 900px;
    margin: 0 auto;
}

.author-header-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--accent-color);
}

.author-name-large {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.author-bio-short {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.author-content {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.articles-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.author-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.author-article-item {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.author-article-item:hover {
    border-color: var(--accent-color);
}

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

.article-title a {
    color: var(--primary-color);
}

.article-title a:hover {
    color: var(--accent-color);
}

/* All Articles */
.all-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.simple-article-item {
    padding: 1.25rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.simple-article-item:hover {
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.simple-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.simple-title a {
    color: var(--primary-color);
}

.simple-title a:hover {
    color: var(--accent-color);
}

.simple-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Footer */
.site-footer {
    background: var(--primary-color);
    padding: 2.5rem 0;
    margin-top: 4rem;
}

.site-footer p {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
}

.back-to-top i {
    font-size: 1.25rem;
}

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

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .author-box {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: relative;
    }

    .nav-container {
        height: var(--header-height-mobile);
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height-mobile);
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - var(--header-height-mobile));
        background: white;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
        padding: 2rem;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1.25rem;
    }

    .nav-menu li a {
        font-size: 1.1rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card:first-child {
        grid-column: span 1;
        flex-direction: column;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-number {
        width: 100%;
        padding: 1rem;
    }

    .timeline-content {
        flex-direction: column;
    }

    .timeline-img {
        width: 100%;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-meta-top {
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .author-box {
        grid-column: span 1;
    }

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

    .author-bio-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 2rem 0;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .article-detail {
        padding: 1.5rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .site-footer p {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Utility */
.none {
    display: none !important;
}

.pd-0 {
    padding: 0 !important;
}

.hidden {
    display: none !important;
}