/* ==========================================================================
   ZEHRA NUR KAYA - EDITORIAL PROJECTS PAGE (2026 SAGE IDENTITY)
   Unified Editorial Design System: Large Cards + Cover + Typography
   ========================================================================== */

:root {
    --bg: #F7F8F4;
    --navbar-bg: #F1F5EE;
    --surface: #EEF3EA;
    --surface-hover: #E7EFE3;
    --green: #4F6F52;
    --green-dark: #344E41;
    --green-soft: #DDE8DA;
    --text: #171A17;
    --text-muted: #626A63;
    --border: #D7DDD4;
    --border-accent: rgba(79, 111, 82, 0.18);
    --shadow-subtle: 0 4px 18px rgba(52, 78, 65, 0.04);
}

/* 1. MAIN CONTAINER (MATCHES HAKKIMDA & DENEYİM) */
.projects-page #main-content {
    padding: 0;
    max-width: 100%;
}

.projects-editorial-container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 24px;
    width: 100%;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .projects-editorial-container {
        padding-inline: 16px;
    }
}

/* 2. EDITORIAL PAGE HEADER */
.projects-page-header {
    padding-top: 36px;
    margin-bottom: clamp(36px, 5vh, 48px);
}

.projects-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 5.5vw, 80px);
    align-items: start;
}

.projects-header-left {
    display: flex;
    flex-direction: column;
}

.projects-page-title {
    font-size: clamp(32px, 3.4vw, 50px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0;
}

.projects-header-right {
    display: flex;
    flex-direction: column;
    padding-top: 4px;
}

.projects-page-intro {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    max-width: 720px;
    font-weight: 400;
    margin: 0 0 6px 0;
}

.projects-count-subtle {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.projects-header-divider {
    border-bottom: 1px solid var(--border);
    margin-top: clamp(28px, 4vh, 40px);
}

/* 3. ADMIN ACTION BAR */
.projects-admin-action-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    margin-bottom: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.projects-admin-action-bar .admin-exp-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: var(--admin-primary, var(--green));
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px var(--admin-primary-glow, rgba(79, 111, 82, 0.25));
    transition: all 180ms ease;
}

.projects-admin-action-bar .admin-exp-add-btn:hover {
    background: var(--admin-primary-hover, var(--green-dark));
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--admin-primary-glow, rgba(79, 111, 82, 0.35));
}

.admin-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-dark);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 180ms ease;
    text-decoration: none;
}

.admin-btn-action:hover {
    background: var(--admin-primary, var(--green));
    color: #ffffff;
    border-color: var(--admin-primary, var(--green));
}

/* 4. RESPONSIVE PROJECTS GRID */
.projects-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 36px);
    margin-bottom: clamp(48px, 6vh, 64px);
    align-items: stretch;
}

@media (max-width: 1100px) {
    .projects-editorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .projects-editorial-grid {
        grid-template-columns: 1fr;
    }
}

/* 5. PROJECT EDITORIAL CARD */
.project-editorial-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    box-shadow: 0 4px 16px rgba(52, 78, 65, 0.04);
}

.project-editorial-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 111, 82, 0.35);
    box-shadow: 0 10px 28px rgba(52, 78, 65, 0.07);
}

/* 6. COVER AREA */
.project-cover-area {
    height: 145px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 18px;
    transition: background 220ms ease;
    text-decoration: none;
}

.project-editorial-card:hover .project-cover-area {
    background: var(--surface-hover);
}

.project-cover-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.project-cover-num {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--green);
    font-feature-settings: "tnum";
}

.project-cover-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--green-dark);
    opacity: 0.85;
}

.project-cover-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    z-index: 1;
    pointer-events: none;
    text-align: center;
}

.project-cover-watermark-text {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-dark);
    opacity: 0.15;
    line-height: 1.25;
    max-width: 90%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.project-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 300ms ease;
}

.project-editorial-card:hover .project-cover-img {
    transform: scale(1.03);
}

/* 7. CARD BODY & TYPOGRAPHY */
.project-editorial-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 24px 20px 24px;
}

.project-editorial-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
}

.project-editorial-year {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: none;
}

.project-editorial-title {
    font-size: 21px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 12px 0;
}

.project-editorial-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 180ms ease;
}

.project-editorial-title a:hover {
    color: var(--green);
}

.project-editorial-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-editorial-techs {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--green);
    font-weight: 500;
    margin: 0 0 20px 0;
}

.project-editorial-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(215, 221, 212, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-editorial-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 180ms ease;
}

.project-editorial-link:hover {
    color: var(--green-dark);
}

.project-editorial-link .link-arrow {
    transition: transform 180ms ease;
    display: inline-block;
}

.project-editorial-link:hover .link-arrow {
    transform: translateX(3px);
}

.project-external-link {
    color: var(--text-muted);
    font-size: 16px;
    text-decoration: none;
    transition: color 180ms ease;
    padding: 4px;
    display: inline-flex;
    align-items: center;
}

.project-external-link:hover {
    color: var(--green-dark);
}

/* 8. ADMIN FLOATING CARD ACTIONS */
.admin-card-toolbar-floating {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 4px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.admin-card-toolbar-floating button,
.admin-card-toolbar-floating a {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    font-size: 11.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 160ms ease;
}

.admin-card-toolbar-floating button:hover,
.admin-card-toolbar-floating a:hover {
    background: var(--admin-primary, #10b981);
    color: #ffffff;
    transform: scale(1.08);
}

.admin-card-toolbar-floating .btn-danger-sm:hover {
    background: #ef4444 !important;
}

/* 9. PAGINATION STYLES */
.public-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 60px 0;
    padding: 0;
    list-style: none;
}

.public-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 180ms ease;
}

.public-pagination .page-link:hover:not(.disabled):not(.active) {
    background: var(--surface);
    border-color: rgba(79, 111, 82, 0.35);
    color: var(--green-dark);
}

.public-pagination .page-link.active {
    background: var(--green);
    border-color: var(--green);
    color: #FFFFFF;
}

.public-pagination .page-link.disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: default;
}

.public-pagination .page-numbers {
    display: flex;
    gap: 6px;
    align-items: center;
}

.public-pagination .page-ellipsis {
    color: var(--text-muted);
    padding: 0 4px;
}

/* 10. RESPONSIVE BREAKPOINTS */
@media (max-width: 900px) {
    .projects-header-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
