/* Base Styles - Slim & Sharp Premium */
.krp-container {
    margin: 25px 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    clear: both;
    line-height: 1.5;
}

.krp-header {
    margin-bottom: 16px;
}

.krp-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.krp-item {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.krp-post-title {
    margin: 0;
    color: #111827;
    transition: color 0.2s ease;
}

.krp-item:hover .krp-post-title {
    color: #2563eb;
}

.krp-read-btn {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 6px;
    display: block;
    color: #6b7280;
    transition: color 0.2s ease;
}
.krp-item:hover .krp-read-btn {
    color: #2563eb;
}

/* =========================================================================
   TEMPLATE 1: Sharp List (Image Left)
   ========================================================================= */
.krp-template-1 .krp-header { border-bottom: none; margin-bottom: 12px; }
.krp-template-1 .krp-title { border-left: 4px solid #ef4444; padding: 4px 10px; background: #fef2f2; border-radius: 0 4px 4px 0; color: #b91c1c; font-size: 13px; }
.krp-template-1 .krp-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid #e5e7eb; }
.krp-template-1 .krp-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e5e7eb; align-items: flex-start; }
.krp-template-1 .krp-image { width: 80px; height: 60px; border-radius: 2px; background-size: cover; background-position: center; flex-shrink: 0; }
.krp-template-1 .krp-content { flex: 1; }
.krp-template-1 .krp-post-title { font-size: 15px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================================================
   TEMPLATE 2: Slim Grid (Image Top)
   ========================================================================= */
.krp-template-2 .krp-header { text-align: center; margin-bottom: 20px; }
.krp-template-2 .krp-title { background: #111827; color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 12px; letter-spacing: 1px; }
.krp-template-2 .krp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.krp-template-2 .krp-item { display: flex; flex-direction: column; }
.krp-template-2 .krp-image { width: 100%; height: 110px; border-radius: 2px; background-size: cover; background-position: center; margin-bottom: 8px; border: 1px solid #f3f4f6; }
.krp-template-2 .krp-post-title { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================================================
   TEMPLATE 3: Edge-to-Edge Overlay
   ========================================================================= */
.krp-template-3 .krp-header { border-bottom: 2px solid #2563eb; display: inline-block; padding-bottom: 4px; margin-bottom: 16px; }
.krp-template-3 .krp-title { color: #1e3a8a; }
.krp-template-3 .krp-list { display: flex; flex-direction: column; gap: 4px; }
.krp-template-3 .krp-item { position: relative; height: 100px; overflow: hidden; border-radius: 2px; }
.krp-template-3 .krp-image { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.4s ease; }
.krp-template-3 .krp-item:hover .krp-image { transform: scale(1.05); }
.krp-template-3 .krp-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 100%); }
.krp-template-3 .krp-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; z-index: 2; }
.krp-template-3 .krp-post-title { font-size: 15px; font-weight: 500; color: #ffffff; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.krp-template-3 .krp-read-btn { display: none; }

/* =========================================================================
   TEMPLATE 4: Slim Swipe Carousel
   ========================================================================= */
.krp-template-4 .krp-header { margin-bottom: 16px; }
.krp-template-4 .krp-title { border: 1px solid #d1d5db; border-radius: 4px; padding: 4px 12px; color: #4b5563; font-size: 12px; box-shadow: 2px 2px 0px #e5e7eb; background: #fff; }
.krp-template-4 .krp-list { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.krp-template-4 .krp-list::-webkit-scrollbar { height: 4px; }
.krp-template-4 .krp-list::-webkit-scrollbar-thumb { background-color: #d1d5db; }
.krp-template-4 .krp-item { scroll-snap-align: start; flex: 0 0 160px; display: flex; flex-direction: column; }
.krp-template-4 .krp-image { width: 100%; height: 90px; border-radius: 2px; background-size: cover; background-position: center; margin-bottom: 8px; border: 1px solid #f3f4f6; }
.krp-template-4 .krp-post-title { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================================================
   TEMPLATE 5: Premium Dark Card
   ========================================================================= */
.krp-template-5 { background: #111827; padding: 16px; border-radius: 4px; border: 1px solid #1f2937; }
.krp-template-5 .krp-header { border-bottom: 1px solid #374151; padding-bottom: 10px; margin-bottom: 16px; }
.krp-template-5 .krp-title { background: linear-gradient(to right, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.krp-template-5 .krp-list { display: flex; flex-direction: column; gap: 12px; }
.krp-template-5 .krp-item { display: flex; gap: 12px; align-items: flex-start; }
.krp-template-5 .krp-image { width: 70px; height: 50px; border-radius: 2px; background-size: cover; background-position: center; flex-shrink: 0; opacity: 0.9; }
.krp-template-5 .krp-item:hover .krp-image { opacity: 1; }
.krp-template-5 .krp-post-title { font-size: 14px; font-weight: 400; color: #e5e7eb; line-height: 1.4; }
.krp-template-5 .krp-item:hover .krp-post-title { color: #60a5fa; }
.krp-template-5 .krp-read-btn { display: none; }

/* =========================================================================
   TEMPLATE 6: Razor Edge (No Image)
   ========================================================================= */
.krp-template-6 .krp-header { margin-bottom: 16px; }
.krp-template-6 .krp-title { background: #2563eb; color: #fff; padding: 4px 14px; transform: skewX(-10deg); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; }
.krp-template-6 .krp-list { display: flex; flex-direction: column; gap: 8px; }
.krp-template-6 .krp-item { padding: 8px 0 8px 12px; border-left: 2px solid #2563eb; background: #fafafa; border-right: 1px solid #f3f4f6; border-top: 1px solid #f3f4f6; border-bottom: 1px solid #f3f4f6; transition: border-left-width 0.2s; }
.krp-template-6 .krp-item:hover { border-left-width: 4px; background: #fff; }
.krp-template-6 .krp-post-title { font-size: 15px !important; line-height: 1.4 !important; }
.krp-template-6 .krp-read-btn { display: none; }

/* =========================================================================
   TEMPLATE 7: Single Line Prefix (No Image)
   ========================================================================= */
.krp-template-7 .krp-header { display: none; }
.krp-template-7 .krp-list { display: flex; flex-direction: column; gap: 8px; }
.krp-template-7 .krp-item { padding: 12px 16px; background: #fff; border: 1px solid #e5e7eb; border-left: 3px solid #ef4444; border-radius: 4px; display: block; font-size: 15px !important; line-height: 1.4 !important; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.krp-template-7 .krp-item:hover { border-color: #fca5a5; }
.krp-template-7 .krp-content { display: inline; }
.krp-template-7 .krp-item::before { content: attr(data-prefix); font-weight: 700; color: #ef4444; margin-right: 6px; font-size: 14px !important; }
.krp-template-7 .krp-post-title { display: inline; font-weight: 500; color: #1f2937; font-size: 15px !important; line-height: 1.4 !important; margin: 0; padding: 0; border: none; }
.krp-template-7 .krp-item:hover .krp-post-title { text-decoration: underline; color: #ef4444; }
.krp-template-7 .krp-read-btn { display: none; }

/* =========================================================================
   TEMPLATE 8: Sharp Arrows (No Image)
   ========================================================================= */
.krp-template-8 .krp-header { margin-bottom: 16px; text-align: left; }
.krp-template-8 .krp-title { letter-spacing: 2px; color: #9ca3af; font-size: 11px; border-bottom: 1px dashed #d1d5db; padding-bottom: 2px; }
.krp-template-8 .krp-list { display: flex; flex-direction: column; border-top: 1px solid #e5e7eb; }
.krp-template-8 .krp-item { padding: 10px 0; border-bottom: 1px solid #e5e7eb; display: flex; align-items: baseline; gap: 8px; }
.krp-template-8 .krp-item::before { content: '→'; color: #2563eb; font-weight: bold; font-family: monospace; }
.krp-template-8 .krp-post-title { font-size: 15px !important; line-height: 1.4 !important; }
.krp-template-8 .krp-item:hover .krp-post-title { padding-left: 4px; }
.krp-template-8 .krp-read-btn { display: none; }

/* =========================================================================
   TEMPLATE 9: Slim Inline (No Image)
   ========================================================================= */
.krp-template-9 .krp-header { display: inline-block; margin: 0 10px 0 0; }
.krp-template-9 .krp-title { background: #ef4444; color: #fff; padding: 2px 8px; border-radius: 2px; font-size: 12px; letter-spacing: 0; }
.krp-template-9 .krp-list { display: inline; line-height: 1.8; }
.krp-template-9 .krp-item { display: inline; }
.krp-template-9 .krp-item::after { content: ' / '; color: #d1d5db; margin: 0 4px; font-weight: 300; }
.krp-template-9 .krp-item:last-child::after { content: ''; }
.krp-template-9 .krp-post-title { display: inline; font-size: 14px; font-weight: 500; }
.krp-template-9 .krp-post-title:hover { text-decoration: underline; text-underline-offset: 2px; }
.krp-template-9 .krp-read-btn { display: none; }

/* =========================================================================
   TEMPLATE 10: Crisp Toast (No Image)
   ========================================================================= */
.krp-template-10 .krp-header { margin-bottom: 16px; }
.krp-template-10 .krp-title { background: #eff6ff; color: #1d4ed8; padding: 6px 14px; border-radius: 6px; border: 1px solid #bfdbfe; display: block; text-align: center; font-size: 13px; }
.krp-template-10 .krp-list { display: flex; flex-direction: column; gap: 10px; }
.krp-template-10 .krp-item { padding: 12px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); display: flex; align-items: center; justify-content: space-between; }
.krp-template-10 .krp-item:hover { border-color: #2563eb; box-shadow: 0 2px 4px rgba(37,99,235,0.1); }
.krp-template-10 .krp-post-title { font-size: 14px; font-weight: 500; margin: 0; }
.krp-template-10 .krp-read-btn { font-size: 10px; margin-top: 0; border: 1px solid #e5e7eb; padding: 4px 8px; border-radius: 2px; color: #111827; }
.krp-template-10 .krp-item:hover .krp-read-btn { border-color: #2563eb; background: #2563eb; color: #fff; }

/* Responsive Adjustments */
@media (max-width: 480px) {
    .krp-template-1 .krp-image { width: 70px; height: 50px; }
    .krp-template-2 .krp-list { grid-template-columns: 1fr; }
    .krp-template-4 .krp-item { flex: 0 0 140px; }
}
