/* MARKA Magazine Layout Extensions */
.mag-section { padding: 60px 0; border-top: 1px solid var(--line); }
.mag-section-title { font-size: 32px; font-weight: 800; margin-bottom: 40px; display: flex; align-items: center; gap: 15px; }
.mag-section-title::after { content: ""; flex: 1; height: 2px; background: var(--line); }

/* HERO GRID */
.mag-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; padding: 40px 0; }
.mag-hero-main { position: relative; border-radius: 8px; overflow: hidden; color: white; display: flex; flex-direction: column; justify-content: flex-end; min-height: 500px; padding: 40px; }
.mag-hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.5s; }
.mag-hero-main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); z-index: 2; }
.mag-hero-main:hover img { transform: scale(1.05); }
.mag-hero-content { position: relative; z-index: 3; }
.mag-cat-tag { display: inline-block; background: var(--red); color: white; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; }
.mag-hero-main h2 { font-size: 42px; line-height: 1.1; margin-bottom: 15px; letter-spacing: -1px; }
.mag-hero-main p { font-size: 18px; color: #e2e8f0; line-height: 1.6; max-width: 600px; }

.mag-hero-side { display: flex; flex-direction: column; gap: 20px; }
.mag-side-card { display: flex; gap: 20px; align-items: center; }
.mag-side-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 6px; }
.mag-side-info h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.mag-side-info p { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* GRID 3 COLS */
.mag-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.mag-card { display: flex; flex-direction: column; gap: 15px; }
.mag-card-img { position: relative; padding-top: 65%; border-radius: 6px; overflow: hidden; }
.mag-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.mag-card:hover .mag-card-img img { transform: scale(1.05); }
.mag-card h3 { font-size: 22px; font-weight: 700; line-height: 1.3; margin: 10px 0; }
.mag-card p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.mag-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 500; }
.mag-author-pic { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* CATEGORY UNIVERSE */
.mag-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mag-cat-card { position: relative; border-radius: 8px; overflow: hidden; color: white; padding-top: 100%; display: block; }
.mag-cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.5s; }
.mag-cat-card::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.4); z-index: 2; transition: background 0.3s; }
.mag-cat-card:hover::after { background: rgba(211,47,47,0.7); }
.mag-cat-card:hover img { transform: scale(1.1); }
.mag-cat-content { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.mag-cat-content h3 { font-family: Georgia, serif; font-size: 28px; font-style: italic; margin-bottom: 5px; }
.mag-cat-content p { font-size: 14px; opacity: 0.9; }

/* ARCHIVE & E-DERGI */
.mag-archive { background: var(--ink); color: white; padding: 80px 0; }
.mag-archive .mag-section-title { border-color: rgba(255,255,255,0.2); }
.mag-archive .mag-section-title::after { background: rgba(255,255,255,0.2); }
.mag-issue-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: center; }
.mag-issue-cover { position: relative; transform: rotate(-3deg); box-shadow: 20px 20px 40px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
.mag-issue-cover img { display: block; width: 100%; height: auto; }
.mag-issue-info h2 { font-size: 48px; font-weight: 700; margin-bottom: 20px; }
.mag-issue-info p { font-size: 18px; color: #94a3b8; line-height: 1.8; margin-bottom: 30px; }
.mag-issue-features { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.mag-issue-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; color: #cbd5e1; }
.mag-issue-features li::before { content: "✦"; color: var(--red); font-size: 14px; }
.mag-archive-past { margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; }
.mag-past-grid { display: flex; gap: 30px; overflow-x: auto; padding-bottom: 20px; }
.mag-past-item { flex: 0 0 150px; text-align: center; }
.mag-past-item img { width: 100%; height: auto; box-shadow: 5px 5px 15px rgba(0,0,0,0.3); margin-bottom: 15px; transition: transform 0.3s; }
.mag-past-item:hover img { transform: translateY(-5px); }
.mag-past-item span { font-size: 14px; font-weight: 700; color: #cbd5e1; }

/* AUTHORS */
.mag-authors { display: flex; gap: 30px; overflow-x: auto; padding: 20px 0; }
.mag-author { text-align: center; flex: 0 0 120px; }
.mag-author img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 3px solid transparent; transition: border-color 0.3s; }
.mag-author:hover img { border-color: var(--red); }
.mag-author h4 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.mag-author p { font-size: 12px; color: var(--muted); }

/* PUBLISHING CALENDAR */
.mag-calendar { background: #f8fafc; padding: 40px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); }
.mag-cal-item { text-align: center; flex: 1; border-right: 1px solid var(--line); }
.mag-cal-item:last-child { border: none; }
.mag-cal-item h3 { font-family: Georgia, serif; font-size: 32px; font-style: italic; color: var(--red); margin-bottom: 5px; }
.mag-cal-item span { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--ink); text-transform: uppercase; }

@media(max-width: 1000px) {
    .mag-hero { grid-template-columns: 1fr; }
    .mag-hero-main { min-height: 400px; }
    .mag-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .mag-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .mag-issue-grid { grid-template-columns: 1fr; }
    .mag-calendar { flex-direction: column; gap: 30px; }
    .mag-cal-item { border-right: none; border-bottom: 1px solid var(--line); width: 100%; padding-bottom: 20px; }
}
@media(max-width: 600px) {
    .mag-grid-3 { grid-template-columns: 1fr; }
    .mag-cat-grid { grid-template-columns: 1fr; }
    .mag-side-card { flex-direction: column; align-items: flex-start; }
    .mag-side-card img { width: 100%; height: 200px; }
}

/* NEW MAGAZINE HEADER */
.mag-main-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.mag-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}
.mag-header-logo {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}
.mag-header-logo img {
    height: 55px;
    width: auto;
}
.mag-header-left, .mag-header-right {
    flex: 1;
    display: flex;
}
.mag-header-left {
    justify-content: flex-start;
    align-items: center;
}
.mag-date {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.mag-header-right {
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}
.mag-header-bottom {
    border-top: 1px solid var(--line);
}
.mag-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0 auto;
    padding: 15px 0;
}
.mag-nav a {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink);
    transition: color 0.3s;
    white-space: nowrap;
}
.mag-nav a:hover, .mag-nav a.active {
    color: var(--red);
}
@media(max-width: 1000px) {
    .mag-nav {
        gap: 20px;
        font-size: 13px;
        flex-wrap: wrap;
    }
}
@media(max-width: 800px) {
    .mag-header-left { display: none; }
    .mag-header-top { padding: 16px 0; }
    .mag-header-bottom {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        border-top: 0;
        background: #fff;
        box-shadow: 0 14px 30px rgba(17, 24, 39, 0.14);
    }
    .mag-nav {
        display: none;
        width: 100%;
        padding: 18px 20px 22px;
        border-top: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .mag-nav.open { display: flex; }
    .mag-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
        font-size: 15px;
    }
    .mag-nav a:last-child { border-bottom: 0; }
    .mag-header-logo img { height: 40px; }
    .mag-header-right { gap: 8px; }
    .mag-header-right .nav-kit {
        width: auto;
        height: auto;
        display: inline-flex !important;
        padding: 7px 9px !important;
        justify-content: center;
        font-size: 10px !important;
        text-indent: 0 !important;
        line-height: 1;
        white-space: nowrap;
        gap: 3px;
    }
    .mag-header-right .nav-kit::before { content: none !important; }
    .mag-header-right .nav-kit span { font-size: 12px; }
}

@media(max-width: 480px) {
    .mag-header-right .nav-kit {
        padding: 6px 7px !important;
        font-size: 9px !important;
    }
    .mag-header-right .nav-kit span { font-size: 11px; }
}
