/* ============================================================
   LogisticsNews Hub - Maritime Editorial Theme
   Deep navy + amber accent + DM Serif Display typography
   ============================================================ */

:root {
    --navy:       #0a1628;
    --navy-mid:   #112240;
    --navy-light: #1a3058;
    --amber:      #f0a500;
    --amber-light:#ffc53d;
    --white:      #ffffff;
    --off-white:  #f4f6f9;
    --gray-100:   #e8ecf0;
    --gray-300:   #b0bcc8;
    --gray-500:   #6b7f93;
    --gray-700:   #3d4f61;
    --text:       #1e2d3d;
    --text-light: #4a5f72;
    --radius:     8px;
    --radius-lg:  16px;
    --shadow:     0 4px 24px rgba(10,22,40,0.12);
    --shadow-lg:  0 12px 48px rgba(10,22,40,0.22);
    --transition: 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--off-white);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
}

/* ---- Typography ---- */
h1, h2, h3 { font-family: 'DM Serif Display', serif; font-weight: 400; line-height: 1.25; }

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.header-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.logo-icon { font-size: 1.6rem; }
.logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--amber);
    letter-spacing: -0.01em;
}

/* Lang Switcher */
.lang-switcher { position: relative; }

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--navy-light);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    padding: 7px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    transition: background var(--transition);
}

.lang-btn:hover { background: var(--navy-mid); }
.lang-flag { font-weight: 600; color: var(--amber); }

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--navy-mid);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 200;
}

.lang-dropdown.open { display: block; }

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--gray-300);
    font-size: 0.88rem;
    transition: background var(--transition), color var(--transition);
}

.lang-option:hover { background: var(--navy-light); color: var(--white); }
.lang-option.active { color: var(--amber); background: rgba(240,165,0,0.1); }
.lang-code { font-weight: 600; font-size: 0.78rem; min-width: 28px; }

/* Nav */
.site-nav {
    background: var(--navy-mid);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
    display: flex;
    gap: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all var(--transition);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--amber); background: rgba(240,165,0,0.12); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
    background: var(--navy);
    padding: 32px 0;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    background: var(--navy-mid);
}

.hero-image {
    position: absolute;
    inset: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.97) 0%, rgba(10,22,40,0.6) 50%, rgba(10,22,40,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 820px;
}

.news-source {
    display: inline-block;
    background: var(--amber);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.2;
}

.hero-title a { color: inherit; text-decoration: none; }
.hero-title a:hover { color: var(--amber-light); }

.hero-excerpt { color: var(--gray-300); font-size: 1.05rem; margin-bottom: 20px; }

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--gray-500);
    font-size: 0.88rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    background: var(--amber);
    color: var(--navy);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background var(--transition);
}

.read-more-btn:hover { background: var(--amber-light); }

/* ============================================================
   MAIN GRID
   ============================================================ */
.main-content { padding: 40px 0 60px; }

.main-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 36px;
    align-items: start;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--amber);
    padding-bottom: 12px;
}

.section-title { font-size: 1.5rem; color: var(--navy); }
.news-count { font-size: 0.82rem; color: var(--gray-500); }

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image-link { display: block; overflow: hidden; }
.card-image { height: 180px; overflow: hidden; }
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.news-card:hover .card-image img { transform: scale(1.06); }

.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.source-tag {
    background: var(--navy);
    color: var(--amber);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 4px;
}

.card-date { font-size: 0.78rem; color: var(--gray-500); }

.card-title {
    font-size: 1.0rem;
    margin-bottom: 10px;
    line-height: 1.35;
    flex: 1;
}

.card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}

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

.card-excerpt {
    font-size: 0.84rem;
    color: var(--text-light);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all var(--transition);
}

.page-btn:hover { background: var(--navy); color: var(--white); }
.page-btn.active { background: var(--amber); color: var(--navy); font-weight: 700; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { position: sticky; top: 80px; }

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 1.0rem;
    color: var(--navy);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--amber);
    margin-bottom: 16px;
}

.latest-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    transition: opacity var(--transition);
}

.latest-item:hover { opacity: 0.75; }
.latest-item:last-child { border-bottom: none; }

.latest-img {
    width: 64px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.latest-info { flex: 1; }
.latest-title { display: block; font-size: 0.82rem; color: var(--text); line-height: 1.4; margin-bottom: 4px; }
.latest-date { font-size: 0.72rem; color: var(--gray-500); }

.source-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--gray-100);
}

.source-item:last-child { border-bottom: none; }
.source-name { font-size: 0.83rem; color: var(--text); }
.source-count {
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Lang Grid */
.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.lang-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 6px;
    background: var(--off-white);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.lang-tile:hover { background: var(--navy); }
.lang-tile:hover .tile-code, .lang-tile:hover .tile-name { color: var(--white); }
.lang-tile.active { border-color: var(--amber); background: rgba(240,165,0,0.08); }
.lang-tile.active .tile-code { color: var(--amber); }

.tile-code { font-size: 0.7rem; font-weight: 700; color: var(--navy); letter-spacing: 0.05em; }
.tile-name { font-size: 0.65rem; color: var(--gray-500); margin-top: 2px; }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-main { padding: 32px 0 60px; }

.article-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber); }

.article-header { margin-bottom: 28px; }

.article-meta-top {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.source-badge {
    background: var(--navy);
    color: var(--amber);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 4px;
}

.category-badge {
    background: var(--amber);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 4px;
}

.article-title {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

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

.view-count { display: flex; align-items: center; gap: 4px; }

.source-link {
    color: var(--amber);
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--transition);
}

.source-link:hover { opacity: 0.8; }

.article-image {
    margin: 24px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.image-credit {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-top-left-radius: 6px;
}

/* Lang Tabs */
.lang-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.lang-tabs-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }
.lang-tabs-list { display: flex; gap: 6px; flex-wrap: wrap; }

.lang-tab {
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-100);
    transition: all var(--transition);
}

.lang-tab:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.lang-tab.active { background: var(--amber); color: var(--navy); border-color: var(--amber); font-weight: 700; }

/* Article Body */
.article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.article-body p { margin-bottom: 1.4em; }
.article-body h2 { font-size: 1.5rem; color: var(--navy); margin: 1.8em 0 0.8em; }
.article-body h3 { font-size: 1.2rem; color: var(--navy); margin: 1.4em 0 0.6em; }
.article-body strong { color: var(--navy); }
.article-body ul, .article-body ol { padding-left: 1.6em; margin-bottom: 1.4em; }
.article-body li { margin-bottom: 0.5em; }

/* Share */
.share-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.share-label { font-size: 0.88rem; color: var(--gray-500); font-weight: 500; }

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: opacity var(--transition);
}

.share-btn:hover { opacity: 0.85; }
.share-btn.twitter { background: #000; color: #fff; }
.share-btn.linkedin { background: #0077b5; color: #fff; }
.share-btn.whatsapp { background: #25d366; color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy);
    padding: 28px 0;
    margin-top: 20px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-family: 'DM Serif Display', serif;
}

.footer-brand p { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; color: var(--gray-500); margin-left: 8px; }
.footer-links { display: flex; gap: 10px; font-size: 0.8rem; color: var(--gray-500); }

/* ============================================================
   RTL Support
   ============================================================ */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .lang-dropdown { right: auto; left: 0; }
.rtl .article-meta { flex-direction: row-reverse; }
.rtl .card-meta { flex-direction: row-reverse; }
.rtl .breadcrumb { flex-direction: row-reverse; }
.rtl .article-body { text-align: right; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .main-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .article-grid { grid-template-columns: 1fr; }
    .article-sidebar { display: none; }
}

@media (max-width: 768px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content { padding: 24px; }
    .sidebar { grid-template-columns: 1fr; }
    .lang-grid { grid-template-columns: repeat(5, 1fr); }
    .article-body { padding: 22px; }
}

@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; }
    .hero-card { min-height: 320px; }
    .logo-text { font-size: 1.1rem; }
    .lang-name { display: none; }
}

/* ============================================================
   SLIDER
   ============================================================ */
.slider-section {
    position: relative;
    background: var(--navy);
    overflow: hidden;
    height: 520px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-image {
    position: absolute;
    inset: 0;
}

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

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,22,40,0.96) 0%, rgba(10,22,40,0.55) 55%, rgba(10,22,40,0.15) 100%);
}

.slide-content {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    padding: 0 24px;
    z-index: 2;
}

.slide-category {
    display: inline-block;
    background: var(--amber);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
    text-decoration: none;
    transition: background var(--transition);
}

.slide-category:hover { background: var(--amber-light); }

.slide-title {
    font-size: clamp(1.5rem, 3.5vw, 2.6rem);
    color: var(--white);
    margin-bottom: 12px;
    line-height: 1.2;
}

.slide-title a { color: inherit; text-decoration: none; }
.slide-title a:hover { color: var(--amber-light); }

.slide-meta-desc {
    color: var(--gray-300);
    font-size: 1rem;
    margin-bottom: 16px;
    max-width: 700px;
}

.slide-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--gray-500);
    font-size: 0.88rem;
}

.slide-readmore {
    display: inline-flex;
    align-items: center;
    background: var(--amber);
    color: var(--navy);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.88rem;
    transition: background var(--transition);
}

.slide-readmore:hover { background: var(--amber-light); }

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.slider-btn:hover { background: rgba(240,165,0,0.6); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.dot.active {
    background: var(--amber);
    width: 24px;
    border-radius: 4px;
}

/* ============================================================
   KATEGORİ ROZETLERI
   ============================================================ */
.card-image { position: relative; }

.card-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--amber);
    color: var(--navy);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
    text-decoration: none;
    z-index: 2;
    transition: background var(--transition);
}

.card-cat-badge:hover { background: var(--amber-light); }

.card-cat-text {
    background: rgba(240,165,0,0.12);
    color: var(--amber);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 4px;
    text-decoration: none;
}

/* Nav count badge */
.nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(240,165,0,0.2);
    color: var(--amber);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 4px;
}

/* ============================================================
   SİDEBAR KATEGORİ LİSTESİ
   ============================================================ */
.cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    font-size: 0.88rem;
    transition: all var(--transition);
    border-left: 3px solid transparent;
    margin-bottom: 2px;
}

.cat-item:hover { background: var(--off-white); border-left-color: var(--amber); }
.cat-item.active { background: rgba(240,165,0,0.1); border-left-color: var(--amber); color: var(--amber); font-weight: 600; }

.cat-count {
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

/* ============================================================
   RESPONSIVE SLIDER
   ============================================================ */
@media (max-width: 768px) {
    .slider-section { height: 380px; }
    .slide-content { bottom: 60px; }
    .slide-title { font-size: 1.4rem; }
    .slide-meta-desc { display: none; }
    .slider-btn { width: 36px; height: 36px; font-size: 1rem; }
}

@media (max-width: 480px) {
    .slider-section { height: 320px; }
    .slide-content { bottom: 50px; }
}
