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

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #fafaf9 0%, #fef3e7 100%);
    color: #171717;
    line-height: 1.6;
}

.wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e7e5e4;
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 22px;
    font-weight: 700;
    color: #0a0a0a;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #57534e;
    text-decoration: none;
    transition: all 0.3s;
    padding: 10px 20px;
    border-radius: 8px;
    background: transparent;
}

.nav-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 32px 0;
    font-size: 14px;
    color: #78716c;
}

.breadcrumb a {
    color: #d97706;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #b45309;
}

/* Main Container */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 32px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 64px;
}

/* Article Styles */
.article {
    background: #ffffff;
    border-radius: 12px;
    padding: 56px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.article-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    padding: 6px 14px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.article-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    color: #0a0a0a;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.article-subtitle {
    font-size: 22px;
    line-height: 1.4;
    color: #57534e;
    margin-bottom: 28px;
    font-weight: 400;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 28px;
    margin-bottom: 36px;
    border-bottom: 2px solid #f5f5f4;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
}

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

.author-name {
    font-weight: 600;
    color: #0a0a0a;
    font-size: 15px;
}

.article-date {
    font-size: 14px;
    color: #78716c;
}

/* Feature Image */
.feature-image {
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 40%, #0ea5e9 100%);
    border-radius: 12px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Article Content */
.article-content {
    font-size: 19px;
    line-height: 1.8;
    color: #292524;
}

.article-content p {
    margin-bottom: 28px;
}

.article-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0a0a0a;
    margin-top: 48px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #171717;
    margin-top: 36px;
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    margin-left: 28px;
    margin-bottom: 28px;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content blockquote {
    border-left: 4px solid #f59e0b;
    padding-left: 28px;
    margin: 36px 0;
    font-size: 22px;
    font-style: italic;
    color: #57534e;
}

.article-content em {
    font-style: italic;
    color: #78716c;
}

.article-content strong {
    font-weight: 600;
    color: #171717;
}

.article-content code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background-color: #f5f5f5;
    padding: 0.125rem 0.25rem;
    border-radius: 2px;
}

/* Hero Image (for article template) */
.hero-image {
    width: 100%;
    margin-bottom: 2rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1200 / 630;
    border-radius: 12px;
}

/* Article Body (for article template) */
.article-body {
    font-size: 19px;
    line-height: 1.8;
    color: #292524;
}

.article-body p {
    margin-bottom: 28px;
}

.article-body h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0a0a0a;
    margin-top: 48px;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.article-body h3 {
    font-size: 24px;
    font-weight: 600;
    color: #171717;
    margin-top: 36px;
    margin-bottom: 16px;
}

.article-body ul,
.article-body ol {
    margin-left: 28px;
    margin-bottom: 28px;
}

.article-body li {
    margin-bottom: 12px;
}

.article-body blockquote {
    border-left: 4px solid #f59e0b;
    padding-left: 28px;
    margin: 36px 0;
    font-size: 22px;
    font-style: italic;
    color: #57534e;
}

.article-body code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background-color: #f5f5f5;
    padding: 0.125rem 0.25rem;
    border-radius: 2px;
}

.article-body strong {
    font-weight: 600;
}

/* Related References */
.related-references {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f5f5f4;
}

.related-references h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0a0a0a;
}

.related-references ul {
    list-style: none;
    padding-left: 0;
}

.related-references li {
    margin-bottom: 0.75rem;
}

.related-references a {
    color: #0066cc;
    text-decoration: none;
    font-size: 15px;
}

.related-references a:hover {
    color: #d97706;
    text-decoration: underline;
}

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

.sidebar-section {
    background: linear-gradient(135deg, #ffffff 0%, #fef3e7 100%);
    border: 2px solid #fbbf24;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
}

.sidebar-section:first-child {
    background: linear-gradient(135deg, #fef3e7 0%, #fed7aa 100%);
    border: 2px solid #d97706;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d97706;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #fbbf24;
}

.sidebar-list {
    list-style: none;
}

.sidebar-item {
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f4;
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #292524;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.sidebar-link {
    text-decoration: none;
    color: inherit;
}

.sidebar-link:hover .sidebar-item-title {
    color: #d97706;
}

.sidebar-item-date {
    font-size: 12px;
    color: #a8a29e;
}

/* Footer */
.site-footer {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding: 2rem 32px;
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    border-top: 1px solid #eee;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

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

    .sidebar {
        position: static;
    }

    .article {
        padding: 40px 32px;
    }

    .article-title {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .header-inner,
    .main-container,
    .breadcrumb,
    .site-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .article {
        padding: 32px 24px;
    }

    .article-title {
        font-size: 32px;
    }

    .article-subtitle {
        font-size: 18px;
    }

    .article-content,
    .article-body {
        font-size: 17px;
    }

    .article-content h2,
    .article-body h2 {
        font-size: 26px;
    }

    .feature-image {
        height: 320px;
    }
}
/* Hero Image Visuals (Container Ship Theme) */
.hero-image::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 78, 114, 0.6) 100%);
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 12%;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 2px;
    box-shadow: 0 -4px 0 rgba(0, 0, 0, 0.3);
}

.container-stack {
    position: absolute;
    bottom: 47%;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(10, 36px);
    grid-template-rows: repeat(3, 32px);
    gap: 3px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.container-box {
    width: 36px;
    height: 32px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.container-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 2px;
    background: rgba(0, 0, 0, 0.15);
}

.container-box:nth-child(1), .container-box:nth-child(11), .container-box:nth-child(21) { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.container-box:nth-child(2), .container-box:nth-child(12), .container-box:nth-child(22) { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.container-box:nth-child(3), .container-box:nth-child(13), .container-box:nth-child(23) { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.container-box:nth-child(4), .container-box:nth-child(14), .container-box:nth-child(24) { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.container-box:nth-child(5), .container-box:nth-child(15), .container-box:nth-child(25) { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }
.container-box:nth-child(6), .container-box:nth-child(16), .container-box:nth-child(26) { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
.container-box:nth-child(7), .container-box:nth-child(17), .container-box:nth-child(27) { background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%); }
.container-box:nth-child(8), .container-box:nth-child(18), .container-box:nth-child(28) { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.container-box:nth-child(9), .container-box:nth-child(19), .container-box:nth-child(29) { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
.container-box:nth-child(10), .container-box:nth-child(20), .container-box:nth-child(30) { background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%); }

/* Article Card Unique Visuals */
.article-card:nth-child(1) .article-image {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.article-card:nth-child(1) .article-image::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 15%;
    right: 15%;
    height: 40%;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.25) 0px, rgba(255,255,255,0.25) 20px, transparent 20px, transparent 25px);
}

.article-card:nth-child(2) .article-image {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.article-card:nth-child(2) .article-image::after {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: rgba(255,255,255,0.5);
    box-shadow: 0 15px 0 rgba(255,255,255,0.5), 0 30px 0 rgba(255,255,255,0.5), 0 45px 0 rgba(255,255,255,0.5);
}

.article-card:nth-child(3) .article-image {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.article-card:nth-child(3) .article-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 6px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.article-card:nth-child(4) .article-image {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.article-card:nth-child(4) .article-image::after {
    content: '';
    position: absolute;
    bottom: 25%;
    left: 20%;
    right: 20%;
    height: 50%;
    background: linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.3) 48%, rgba(255,255,255,0.3) 52%, transparent 52%),
                linear-gradient(0deg, transparent 48%, rgba(255,255,255,0.3) 48%, rgba(255,255,255,0.3) 52%, transparent 52%);
}

.article-card:nth-child(5) .article-image {
    background: linear-gradient(135deg, #ca8a04 0%, #eab308 100%);
}

.article-card:nth-child(5) .article-image::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 15%;
    width: 70%;
    height: 50%;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.3) 0px, rgba(255,255,255,0.3) 30px, transparent 30px, transparent 35px);
}

.article-card:nth-child(6) .article-image {
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
}

.article-card:nth-child(6) .article-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.2) 0px, rgba(255,255,255,0.2) 10px, transparent 10px, transparent 14px);
}

.article-card:nth-child(7) .article-image {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}  /* Ekstra nth-child'ler için devam edebilirsin, ama $articles 9 tane, grid 2 sütunlu */

.article-card:nth-child(8) .article-image {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

/* Sidebar Featured (index.html'de sidebar-featured var, ekleyelim) */
.sidebar-featured {
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f4;
}

.sidebar-featured-link {
    text-decoration: none;
    color: inherit;
}

.sidebar-featured-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #292524;
    margin-bottom: 6px;
    transition: color 0.2s;
}

.sidebar-featured-link:hover .sidebar-featured-title {
    color: #d97706;
}
