/* ========================================================
   Askeri Teknolojiler — Frontend CSS v2.1.0
   TechReview | Premium Edition
   Prefix: robtek-
   Değişiklikler v2.1.0:
   - Mobilde 1 kart göster
   - Mobilde başlık ortalandı, çizgi gizlendi
   - Tüm kart içerikleri ortalandı (metin, resim, footer)
======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
    --robtek-accent:       #e8181a;
    --robtek-accent-glow:  rgba(232,24,26,.18);
    --robtek-dark:         #0a0a0f;
    --robtek-card-bg:      #ffffff;
    --robtek-card-border:  rgba(0,0,0,.07);
    --robtek-card-hover-border: rgba(232,24,26,.22);
    --robtek-surface:      #f7f8fc;
    --robtek-muted:        #9098b1;
    --robtek-text:         #12141a;
    --robtek-radius:       18px;
    --robtek-gap:          18px;
    --robtek-font-display: 'Inter', sans-serif;
    --robtek-font-body:    'DM Sans', sans-serif;
}

/* ---- WRAP ---- */
.robtek-wrap {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 0;
    font-family: var(--robtek-font-body);
    user-select: none;
    -webkit-user-select: none;
    overflow: visible;
}

/* ================================================================
   SECTION HEADER
================================================================ */
.robtek-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 0 28px;
    margin-bottom: 24px;
    position: relative;
}
/* Masaüstünde çizgi görünür */
.robtek-section-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.03) 70%, transparent 100%);
}

.robtek-header-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.robtek-section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--robtek-font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--robtek-accent);
    line-height: 1;
}
.robtek-section-label::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--robtek-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.robtek-section-title {
    margin: 0;
    line-height: 1.15;
    font-family: var(--robtek-font-display);
    font-size: 28px !important;
    font-weight: 700;
    color: var(--robtek-dark);
    letter-spacing: -.03em;
}

/* ---- NAV ARROWS ---- */
.robtek-nav-btns {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.robtek-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,.1);
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .22s, box-shadow .22s, transform .22s, background .22s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    -webkit-appearance: none;
    appearance: none;
    outline: none;
    position: relative;
    overflow: hidden;
}
.robtek-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--robtek-accent);
    opacity: 0;
    z-index: 0;
    transform: scale(0);
    transition: opacity .22s, transform .28s cubic-bezier(.34,1.56,.64,1);
}
.robtek-nav-btn svg {
    display: block;
    flex-shrink: 0;
    pointer-events: none;
    position: relative;
    z-index: 1;
    stroke: #333;
    fill: none;
    transition: stroke .22s;
}
.robtek-nav-btn:hover {
    border-color: var(--robtek-accent);
    box-shadow: 0 4px 16px var(--robtek-accent-glow);
    transform: scale(1.06);
}
.robtek-nav-btn:hover svg { stroke: #fff !important; }
.robtek-nav-btn:hover::before { opacity: 1; transform: scale(1); }
.robtek-nav-btn:focus-visible {
    outline: 2px solid var(--robtek-accent);
    outline-offset: 3px;
}
.robtek-nav-btn:disabled {
    opacity: .25;
    cursor: not-allowed;
    box-shadow: none;
    transform: none !important;
}
.robtek-nav-btn:disabled::before { display: none; }
.robtek-nav-btn:hover svg polyline,
.robtek-nav-btn:hover svg line,
.robtek-nav-btn:hover svg path { stroke: #fff !important; }

/* ================================================================
   CAROUSEL
================================================================ */
.robtek-carousel-viewport {
    overflow: hidden;
    position: relative;
    cursor: grab;
    padding-top: 12px;
    margin-top: -12px;
    padding-bottom: 28px;
    margin-bottom: -28px;
    clip-path: inset(-28px -8px);
}
.robtek-carousel-viewport.robtek-dragging { cursor: grabbing; }
.robtek-carousel-track {
    display: flex;
    gap: var(--robtek-gap);
    transition: transform .48s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    align-items: stretch;
}
.robtek-carousel-track.robtek-no-transition { transition: none; }

/* ================================================================
   CARDS
   5.5 visible @ 1920px wide container
================================================================ */
.robtek-card {
    flex: 0 0 calc((100% - 4.5 * var(--robtek-gap)) / 5.5);
    min-width: 0;
    background: var(--robtek-card-bg);
    border: 1px solid var(--robtek-card-border);
    border-radius: var(--robtek-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color .28s, transform .28s cubic-bezier(.34,1.56,.64,1), box-shadow .28s;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.robtek-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transform: translateX(-100%);
    transition: opacity .3s, transform .5s;
    pointer-events: none;
    z-index: 10;
}

.robtek-card:hover {
    border-color: var(--robtek-card-hover-border);
    transform: translateY(-6px) scale(1.012);
    box-shadow:
        0 8px 12px rgba(0,0,0,.04),
        0 12px 26px rgba(0,0,0,.13),
        0 0 0 1px rgba(232,24,26,.10),
        inset 0 1px 0 rgba(255,255,255,.9);
}
.robtek-card:hover::before { opacity: 1; transform: translateX(100%); }
.robtek-dragging .robtek-card { transform: none !important; transition: none !important; }
.robtek-dragging .robtek-card::before { display: none; }

/* ================================================================
   CARD IMAGE
================================================================ */
.robtek-card-img-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
    overflow: hidden;
}
.robtek-card-img-wrap {
    width: 100%;
    height: 170px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f1f6 0%, #e8eaf2 100%);
}
.robtek-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.18) 100%);
    opacity: 0;
    transition: opacity .32s;
    pointer-events: none;
    z-index: 2;
}
.robtek-card:hover .robtek-card-img-wrap::after { opacity: 1; }

.robtek-card-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transform-origin: center center;
    transition: transform .65s cubic-bezier(.22,1,.36,1);
    will-change: transform;
}
.robtek-card:hover .robtek-card-img { transform: scale(1.1) translateY(-2px); }
.robtek-dragging .robtek-card-img { transform: none !important; }

.robtek-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f1f6 0%, #e8eaf2 100%);
}

/* ---- BADGE ---- */
.robtek-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    font-family: var(--robtek-font-body);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 10px 3px;
    border-radius: 30px;
    line-height: 1.4;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ================================================================
   CARD BODY
================================================================ */
.robtek-card-body {
    padding: 13px 15px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.robtek-card-brand {
    font-family: var(--robtek-font-body);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--robtek-muted);
    margin-bottom: 4px;
    line-height: 2.6;
}

.robtek-card-title-link {
    text-decoration: none;
    display: block;
    margin-bottom: 9px;
}
.robtek-card-title-link:hover .robtek-card-title { color: var(--robtek-accent) !important; }
.robtek-card-title {
    font-family: var(--robtek-font-display);
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--robtek-text);
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .18s;
    letter-spacing: -.01em;
}

/* ---- STARS ---- */
.robtek-stars-row {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 9px;
    flex-wrap: nowrap;
}
.robtek-star { flex-shrink: 0; }
.robtek-score-val {
    font-family: var(--robtek-font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--robtek-text);
    margin-left: 5px;
    line-height: 1;
}
.robtek-score-max {
    font-size: 10.5px;
    color: var(--robtek-muted);
    line-height: 1;
}

/* Divider */
.robtek-card-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(0,0,0,.06) 0%, transparent 100%);
    margin-bottom: 9px;
    flex-shrink: 0;
}

.robtek-card-note {
    font-size: 11.5px;
    color: #666;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ================================================================
   CARD FOOTER
================================================================ */
.robtek-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px 14px;
    border-top: 1px solid rgba(0,0,0,.05);
    flex-shrink: 0;
    gap: 8px;
}

.robtek-author-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.robtek-author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8eaf5 0%, #d4d8f0 100%);
    color: #4a55a2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    flex-shrink: 0;
    letter-spacing: .02em;
    border: 1.5px solid rgba(74,85,162,.12);
    font-family: var(--robtek-font-display);
    overflow: hidden;
}
.robtek-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
}

.robtek-author-name {
    font-size: 11px;
    color: #667;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--robtek-font-body);
}

/* ---- READ BUTTON ---- */
.robtek-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px 11px 20px;
    background: var(--robtek-accent);
    color: #000000;
    font-family: var(--robtek-font-body);
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .22s cubic-bezier(.4,0,.2,1);
    line-height: 1;
    letter-spacing: .01em;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(232,24,26,.28);
}
.robtek-read-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.15);
    opacity: 0;
    transition: opacity .2s;
}
.robtek-read-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(213 213 213 / 38%);
    color: #fff !important;
    background: #d51212 !important;
    text-decoration: none;
}
.robtek-read-btn:hover::before { opacity: 1; }
.robtek-read-btn svg { pointer-events: none; flex-shrink: 0; }

/* ================================================================
   DOTS
================================================================ */
.robtek-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 22px;
    padding: 6px 0;
}
.robtek-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0d4e4;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .22s, width .22s, border-radius .22s;
    flex-shrink: 0;
}
.robtek-dot.robtek-dot--active {
    background: var(--robtek-accent);
    width: 22px;
    border-radius: 3px;
}
.robtek-dot:hover:not(.robtek-dot--active) { background: #a0a8c4; }

/* ================================================================
   RESPONSIVE — DESKTOP
================================================================ */

/* 1440–1680px: 5.5 visible */
@media (max-width: 1680px) {
    .robtek-card { flex: 0 0 calc((100% - 4.5 * var(--robtek-gap)) / 5.5); }
}

/* 1200–1440px: 4.5 visible */
@media (max-width: 1440px) {
    .robtek-card { flex: 0 0 calc((100% - 3.5 * var(--robtek-gap)) / 4.5); }
}

/* 992–1200px: 3.5 visible */
@media (max-width: 1200px) {
    .robtek-card { flex: 0 0 calc((100% - 2.5 * var(--robtek-gap)) / 3.5); }
    .robtek-section-title { font-size: 24px; }
}

/* 768–992px: 2.5 visible */
@media (max-width: 992px) {
    .robtek-card { flex: 0 0 calc((100% - 1 * var(--robtek-gap)) / 2); }
    .robtek-card-img-wrap { height: 150px; }
}

/* ================================================================
   MOBİL — ≤768px: 1 kart tam ekran + içerik ortalı
================================================================ */
@media (max-width: 768px) {

    /* Wrap padding */
    .robtek-wrap {
        padding: 0 12px;
    }

    /* ---- OK BUTONLARINI GİZLE — sadece masaüstünde görünsün ---- */
    .robtek-nav-btns {
        display: none !important;
    }

    /* ---- BAŞLIK: ortala, çizgiyi kaldır ---- */
    .robtek-section-header {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-bottom: 8px;
        margin-bottom: 18px;
    }
    /* Başlık altı çizgiyi mobilde gizle */
    .robtek-section-header::after {
        display: none;
    }

    .robtek-header-left {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    /* Etiket çizgisini ortala */
    .robtek-section-label {
        justify-content: center;
    }
    .robtek-section-label::before {
        display: none;
    }

    .robtek-section-title {
        font-size: 20px !important;
        text-align: center;
    }

    /* ---- KART: 1 adet tam genişlik ---- */
    .robtek-card {
        flex: 0 0 100%;
        transform: none !important;
    }
    .robtek-card:hover {
        transform: none !important;
        box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
    }

    .robtek-card-img-wrap { height: 220px; }

    /* ---- KART İÇERİK: ortala ---- */
    .robtek-card-body {
        padding: 14px 16px 10px;
        align-items: center;
        text-align: center;
    }

    .robtek-card-brand {
        text-align: center;
        width: 100%;
    }

    .robtek-card-title-link {
        text-align: center;
        width: 100%;
    }

    .robtek-card-title {
        font-size: 15px !important;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    /* Yıldızları ortala */
    .robtek-stars-row {
        justify-content: center;
        width: 100%;
    }

    /* Divider tam genişlik */
    .robtek-card-divider {
        width: 100%;
        background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 50%, transparent 100%);
    }

    .robtek-card-note {
        text-align: center;
        font-size: 12px;
        -webkit-line-clamp: 3;
        display: -webkit-box;
    }

    /* ---- FOOTER: yazar sola, buton sağa — satır olarak ---- */
    .robtek-card-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 12px 16px 16px;
    }

    .robtek-author-meta {
        justify-content: flex-start;
        flex: 1;
        min-width: 0;
    }

    /* Mobilde incele butonu daha büyük */
    .robtek-read-btn {
        padding: 12px 20px 13px 22px;
        font-size: 13px;
        flex-shrink: 0;
    }

    /* ---- BADGE: ortala ---- */
    .robtek-badge {
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
        white-space: nowrap;
    }

    /* Dots */
    .robtek-dots {
        margin-top: 16px;
    }
}

/* ---- Çok küçük ekranlar ≤480px ---- */
@media (max-width: 480px) {
    .robtek-wrap { padding: 0 10px; }
    .robtek-card { flex: 0 0 100%; }
    .robtek-card-img-wrap { height: 200px; }
    /* Oklar zaten gizli ≤768px'de */
    .robtek-nav-btns { display: none !important; }
    /* Footer: buton daha geniş küçük ekranda */
    .robtek-read-btn {
        padding: 11px 18px 12px 20px;
        font-size: 12.5px;
    }
}

/* Empty */
.robtek-empty {
    text-align: center;
    color: var(--robtek-muted);
    padding: 40px 0;
    font-family: var(--robtek-font-body);
}
