/* ═══════════════════════════════════════════════════════════════
   CV Örnekleri — Sayfa Stilleri
   ═══════════════════════════════════════════════════════════════ */

/* ── Category Filter Bar ─────────────────────────────────────── */
.cve-slider-container {
    margin-bottom: 1.5rem;
}

.cve-filter-btn {
    padding: 8px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, sans-serif;
}

.cve-filter-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f0f7ff;
}

.cve-filter-btn.active {
    background: linear-gradient(135deg, #0f172a, #334155);
    color: white;
    border-color: transparent;
}

/* ── Examples Grid ───────────────────────────────────────────── */
.cve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.cve-card {
    background: white;
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.cve-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cve-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: #93c5fd;
}

.cve-card:hover::before {
    opacity: 1;
}

.cve-card-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.cve-card:hover .cve-card-icon {
    background: #e0f2fe;
    transform: scale(1.05);
}

.cve-card-body {
    flex: 1;
    min-width: 0;
}

.cve-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.3;
}

.cve-card-desc {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cve-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6366f1;
    background: #eef2ff;
    padding: 3px 10px;
    border-radius: 20px;
}

.cve-card-arrow {
    color: #cbd5e1;
    font-size: 1.2rem;
    flex-shrink: 0;
    align-self: center;
    transition: all 0.2s ease;
}

.cve-card:hover .cve-card-arrow {
    color: #3b82f6;
    transform: translateX(3px);
}

/* ── Empty State ─────────────────────────────────────────────── */
.cve-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   Detail Page
   ═══════════════════════════════════════════════════════════════ */

/* ── Two-Panel Layout ────────────────────────────────────────── */
.cve-detail-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.cve-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ── Preview Panel ───────────────────────────────────────────── */
.cve-preview-panel {
    position: sticky;
    top: 80px;
    align-self: start;
    overflow: auto;
    max-height: calc(100vh - 100px);
    padding: 0 1rem 2rem;
}

.cve-preview-panel #cv-document {
    transform-origin: top left;
}

.cve-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px 10px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: -1px;
}

.cve-preview-badge {
    font-size: 0.7rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0f172a, #334155);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ── Tips List ───────────────────────────────────────────────── */
.cve-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cve-tips-list li {
    position: relative;
    padding: 10px 0 10px 28px;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.6;
    border-bottom: 1px solid #f1f5f9;
}

.cve-tips-list li:last-child {
    border-bottom: none;
}

.cve-tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

/* ── Action Buttons (Desktop) ────────────────────────────────── */
.cve-actions-card {
    background: white;
}

.cve-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 1rem 0;
}

.cve-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

.cve-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.cve-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
}

.cve-btn-primary:hover::after {
    left: 100%;
}

.cve-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', -apple-system, sans-serif;
}

.cve-btn-secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f0f7ff;
}

.cve-action-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}

.cve-action-note i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Related Examples ────────────────────────────────────────── */
.cve-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.cve-related-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.cve-related-card:hover {
    background: #f0f7ff;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.cve-related-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cve-related-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.cve-related-arrow {
    color: #cbd5e1;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.cve-related-card:hover .cve-related-arrow {
    color: #3b82f6;
    transform: translateX(2px);
}

/* ── Mobile Sticky CTA ──────────────────────────────────────── */
.cve-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    z-index: 1050;
}

.cve-mobile-btn-primary {
    flex: 1;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Inter', -apple-system, sans-serif;
}

.cve-mobile-btn-secondary {
    padding: 14px 18px;
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', -apple-system, sans-serif;
}

/* ── Toast Animation ─────────────────────────────────────────── */
@keyframes cve-toast-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .cve-detail-layout {
        grid-template-columns: 1fr;
        padding: 2rem 1rem 6rem;
    }

    .cve-preview-panel {
        position: static;
        max-height: none;
        order: -1;
        padding: 0;
    }

    .cve-actions-card {
        display: none; /* Mobilde sticky CTA kullanılır */
    }

    .cve-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .cve-grid {
        grid-template-columns: 1fr;
    }
    .cve-filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .cve-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cve-card {
        padding: 1rem;
    }

    .cve-card-icon {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
}

/* ── Scroll & Preview Action Overrides ───────────────────────── */
body.page-body {
    height: auto !important;
    overflow: visible !important;
}

.cve-preview-actions {
    display: flex;
    gap: 12px;
    margin-top: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    position: relative;
    z-index: 2;
    clear: both;
}

.cve-preview-actions .cve-btn-primary,
.cve-preview-actions .cve-btn-secondary {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .cve-preview-actions {
        display: none;
    }
}
