/* ============================================================
   TAMIR DESTEK PLATFORMU - Merkezi Ozel Stiller
   Ana renk: #0d2255
   ============================================================ */

* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

body {
    background: radial-gradient(ellipse at 30% 10%, #0f2878 0%, #091840 55%, #050e28 100%);
    min-height: 100vh;
    margin: 0;
}

/* ── LAYOUT ── */
.page-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px;
    padding-top: 80px;
    transition: margin-left 0.3s ease;
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: 16px;
        padding-top: 72px;
    }
}

/* ── ANA KART ── */
.main-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 16px 56px rgba(0, 0, 0, .35);
    overflow: hidden;
    border: 1.5px solid #c2d0ee;
}

/* ── Sol: Telefon Resim Kolonu ── */
.phone-col {
    background: linear-gradient(155deg, #0e2060 0%, #091538 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    min-height: 230px;
}

.phone-img-box {
    width: 140px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(145deg, #1c3070, #0a1840);
    border: 2px solid #2a3d8a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .5);
}

.phone-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-img-box .placeholder-icon {
    font-size: 48px;
    opacity: 0.4;
}

/* ── Orta: Bilgi Kolonu ── */
.mid-col {
    background: #0d2255;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-block {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.info-block:last-child {
    border-bottom: none;
}

.info-lbl {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .2em;
    color: #6d93cc;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.info-val {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: .015em;
    line-height: 1.3;
}

/* ── Sag: Ozellikler ── */
.right-col {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    gap: 14px;
    background: #0d2255;
}

.feature-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #dde6f5;
    border-radius: 8px;
    padding: 7px 12px;
}

.feature-pill .lbl {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    letter-spacing: .05em;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.status-icon.ok {
    background: #22c55e;
}

.status-icon.fail {
    background: #ef4444;
}

.desc-lbl {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.desc-txt {
    font-size: 13px;
    line-height: 1.75;
    color: #ffffff;
}

.divider {
    border: none;
    border-top: 1px dashed #dde5f4;
}

/* ── Toggle Butonu ── */
.toggle-btn {
    width: 100%;
    background: #f0f4ff;
    border: 1.5px solid #c2d0ee;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background .15s;
}

.toggle-btn:hover {
    background: #e6ecfb;
}

.t-arrow {
    font-size: 11px;
    font-weight: 700;
    color: #0d2255;
    display: inline-block;
    transition: transform .28s;
}

.t-arrow.open {
    transform: rotate(180deg);
}

/* ── Detay Paneli ── */
.detail-panel {
    background: #f5f7ff;
    border: 1.5px solid #c2d0ee;
    border-top: none;
    border-radius: 0 0 14px 14px;
}

/* ── Tab Butonlari ── */
.tab-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .16s;
    color: #4b5e7e;
    background: #fff;
    border: 1.5px solid #d5dff0;
}

.tab-btn:hover:not(.active) {
    background: #eef1fb;
    border-color: #b8c8e8;
}

.tab-btn.active {
    background: #0d2255;
    color: #fff;
    border-color: #0d2255;
}

/* ── Accordion ── */
.acc-wrap {
    border: 1px solid #e0e8f4;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.acc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    user-select: none;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    transition: background .14s;
}

.acc-head:hover {
    background: #f8faff;
}

.acc-chev {
    font-size: 11px;
    color: #94a3b8;
    transition: transform .25s;
}

.acc-chev.open {
    transform: rotate(180deg);
}

.acc-body {
    max-height: 0;
    overflow-y: auto;
    transition: max-height .35s ease;
}

.acc-body.open {
    max-height: 500px;
}

.acc-body::-webkit-scrollbar {
    width: 4px;
}

.acc-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.acc-inner {
    padding: 14px 18px;
    font-size: 13px;
    line-height: 1.78;
    color: #475569;
    border-top: 1px solid #f0f4fa;
    white-space: pre-line;
}

/* ── Yorum/Cozum Kartlari ── */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rev-card {
    background: #fff;
    border: 1px solid #e0e8f4;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: box-shadow .18s, transform .18s;
}

.rev-card:hover {
    box-shadow: 0 8px 28px rgba(13, 34, 85, .13);
    transform: translateY(-2px);
}

.rev-init {
    background: #0d2255;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Puanlama Butonlari ── */
.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e0e8f4;
    background: #f8fafc;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all .15s;
}

.vote-btn:hover {
    background: #eef1fb;
}

.vote-btn.upvote:hover,
.vote-btn.upvote.active {
    background: #dcfce7;
    border-color: #22c55e;
    color: #16a34a;
}

.vote-btn.downvote:hover,
.vote-btn.downvote.active {
    background: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 12, 40, .65);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: #fff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
    overflow: hidden;
    animation: modalIn .2s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.93) translateY(14px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-hd {
    background: linear-gradient(130deg, #0d2255 0%, #1840a0 100%);
    padding: 22px 24px 18px;
    color: #fff;
}

.modal-bd {
    padding: 22px 24px;
    max-height: 55vh;
    overflow-y: auto;
}

.modal-bd::-webkit-scrollbar {
    width: 4px;
}

.modal-bd::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.close-btn {
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .14s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, .28);
}

/* ── Cozum Ekleme Formu ── */
.add-solution-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #0d2255;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.add-solution-btn:hover {
    background: #1a3a8a;
}

/* ── Responsive Ana Kart ── */
@media (max-width: 768px) {
    .main-card-grid {
        grid-template-columns: 1fr !important;
    }

    .phone-col {
        min-height: 160px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .main-card-grid {
        grid-template-columns: 160px 1fr !important;
    }
}

/* ── Sidebar Overlay (Mobil) ── */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ── Quill Editor ── */
.ql-toolbar.ql-snow {
    border-radius: 8px 8px 0 0;
    border-color: #d5dff0 !important;
}

.ql-container.ql-snow {
    border-radius: 0 0 8px 8px;
    border-color: #d5dff0 !important;
    min-height: 150px;
    font-size: 14px;
}

/* ── Admin Panel Ozel ── */
.admin-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e0e8f4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}
