/* ===== Trip Reports — CoasterCrazy Reborn ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- Layout --- */
.cc-tr { padding: 20px 24px; }

/* --- Hero --- */
.cc-tr-hero { background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%); border-radius: 12px; padding: 28px 32px; margin-bottom: 20px; position: relative; overflow: hidden; }
.cc-tr-hero::before { content: ''; position: absolute; top: -30%; right: -5%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(204,0,0,0.12) 0%, transparent 70%); pointer-events: none; }
.cc-tr-hero-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; margin-bottom: 18px; }
.cc-tr-hero h1 { font-family: 'Inter',sans-serif; font-size: 24px; font-weight: 900; color: white; margin: 0 0 4px; letter-spacing: -0.5px; }
.cc-tr-hero p { font-family: 'Inter',sans-serif; font-size: 13px; color: rgba(255,255,255,0.45); margin: 0; }
.cc-tr-hero-actions { display: flex; gap: 8px; }

/* --- Buttons --- */
.cc-tr-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 8px; font-family: 'Inter',sans-serif; font-weight: 600; font-size: 13px; text-decoration: none !important; transition: all 0.2s; border: none; cursor: pointer; }
.cc-tr-btn svg { width: 15px; height: 15px; fill: currentColor; }
.cc-tr-btn-primary { background: #cc0000; color: white !important; box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 6px rgba(0,0,0,0.2); }
.cc-tr-btn-primary:hover { background: #b00000; transform: translateY(-1px); }
.cc-tr-btn-outline { background: transparent; color: white !important; border: 1.5px solid rgba(255,255,255,0.25); }
.cc-tr-btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }
.cc-tr-btn-secondary { background: #f3f4f6; color: #374151 !important; border: 1px solid #e5e7eb; }
.cc-tr-btn-secondary:hover { border-color: #cc0000; color: #cc0000 !important; }

/* --- Search --- */
.cc-tr-search { display: flex; position: relative; z-index: 1; }
.cc-tr-search-input { flex: 1; padding: 12px 18px; background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.12); border-right: none; border-radius: 8px 0 0 8px; font-family: 'Inter',sans-serif; font-size: 14px; color: white; outline: none; transition: all 0.2s; }
.cc-tr-search-input::placeholder { color: rgba(255,255,255,0.3); }
.cc-tr-search-input:focus { background: rgba(255,255,255,0.1); border-color: rgba(204,0,0,0.5); }
.cc-tr-search-btn { padding: 12px 22px; background: #cc0000; color: white; border: none; border-radius: 0 8px 8px 0; font-family: 'Inter',sans-serif; font-weight: 600; font-size: 13px; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.cc-tr-search-btn:hover { background: #b00000; }

/* --- Toolbar --- */
.cc-tr-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cc-tr-filters { display: flex; gap: 8px; }
.cc-tr-filters select { padding: 8px 12px; border: 1px solid #e5e7eb; border-radius: 8px; font-family: 'Inter',sans-serif; font-size: 13px; color: #374151; background: white; cursor: pointer; }
.cc-tr-filters select:focus { border-color: #cc0000; outline: none; box-shadow: 0 0 0 3px rgba(204,0,0,0.1); }
.cc-tr-sort { display: flex; align-items: center; gap: 6px; }
.cc-tr-sort-label { font-family: 'Inter',sans-serif; font-size: 12px; color: #9ca3af; }
.cc-tr-sort-opt { font-family: 'Inter',sans-serif; font-size: 12px; font-weight: 500; color: #6b7280; text-decoration: none; padding: 4px 10px; border-radius: 6px; transition: all 0.15s; }
.cc-tr-sort-opt:hover { color: #1a1a1a; background: #f3f4f6; }
.cc-tr-sort-opt.active { color: #cc0000; background: #fef2f2; font-weight: 600; }

/* --- Results Bar --- */
.cc-tr-results-bar { font-family: 'Inter',sans-serif; font-size: 13px; color: #6b7280; margin-bottom: 16px; }

/* --- Card Grid --- */
.cc-tr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* --- Report Card --- */
.cc-tr-card { display: flex; gap: 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; text-decoration: none !important; transition: all 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.cc-tr-card:hover { border-color: #cc0000; box-shadow: 0 4px 12px rgba(204,0,0,0.08); transform: translateY(-2px); }
.cc-tr-card-thumb { width: 180px; min-height: 130px; flex-shrink: 0; overflow: hidden; background: #f8f9fc; display: flex; align-items: center; justify-content: center; }
.cc-tr-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-tr-card-nothumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.cc-tr-card-body { flex: 1; padding: 16px 16px 16px 0; min-width: 0; }
.cc-tr-card-park { font-family: 'Inter',sans-serif; font-size: 11px; font-weight: 600; color: #cc0000; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.cc-tr-card-title { font-family: 'Inter',sans-serif; font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tr-card-meta { font-family: 'Inter',sans-serif; font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.cc-tr-card-meta a { color: #6b7280; }
.cc-tr-card-dot { margin: 0 4px; }
.cc-tr-card-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.cc-tr-card-stat { display: flex; align-items: center; gap: 4px; font-family: 'Inter',sans-serif; font-size: 11px; color: #6b7280; }

/* --- Section --- */
.cc-tr-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 20px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.cc-tr-section-hdr { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: linear-gradient(135deg, #cc0000 0%, #990000 100%); color: white; font-family: 'Inter',sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.3px; text-transform: uppercase; }
.cc-tr-section-hdr a { color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 500; text-decoration: none; text-transform: none; letter-spacing: 0; }
.cc-tr-section-hdr a:hover { color: white; }

/* --- Report List Items --- */
.cc-tr-list-item { display: flex; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #f0f1f3; transition: background 0.15s; text-decoration: none !important; color: inherit; }
.cc-tr-list-item:last-child { border-bottom: none; }
.cc-tr-list-item:hover { background: #f8f9fc; }
.cc-tr-list-thumb { width: 80px; height: 60px; border-radius: 6px; object-fit: cover; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.cc-tr-list-info { flex: 1; min-width: 0; }
.cc-tr-list-title { font-family: 'Inter',sans-serif; font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tr-list-meta { font-family: 'Inter',sans-serif; font-size: 11px; color: #888; line-height: 1.6; }
.cc-tr-list-meta a { color: #cc0000; }
.cc-tr-list-stats { display: flex; gap: 10px; margin-top: 4px; }
.cc-tr-list-stat { font-family: 'Inter',sans-serif; font-size: 11px; color: #999; display: flex; align-items: center; gap: 3px; }
.cc-tr-list-stat svg { width: 12px; height: 12px; fill: #bbb; }
.cc-tr-list-stat b { color: #444; font-weight: 600; }

/* --- CTA Link --- */
.cc-tr-cta { display: flex; align-items: center; justify-content: center; padding: 10px; font-family: 'Inter',sans-serif; font-size: 12px; font-weight: 600; color: #cc0000; background: #f8f9fc; border-top: 1px solid #f0f1f3; text-decoration: none; transition: background 0.15s; }
.cc-tr-cta:hover { background: #f0f1f3; color: #990000; }

/* --- Report View Page --- */
.cc-tr-report-body { font-family: 'Inter',sans-serif; font-size: 15px; line-height: 1.8; color: #333; padding: 24px; }
.cc-tr-report-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 12px 0; display: block; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.cc-tr-report-body a { color: #cc0000; }

/* --- Stats Pills --- */
.cc-tr-stat-pills { display: flex; gap: 16px; flex-wrap: wrap; }
.cc-tr-stat-pill { display: flex; flex-direction: column; align-items: center; padding: 12px 18px; background: #f8f9fc; border-radius: 8px; min-width: 70px; }
.cc-tr-stat-pill-num { font-family: 'Inter',sans-serif; font-size: 22px; font-weight: 900; color: #1a1a1a; }
.cc-tr-stat-pill-label { font-family: 'Inter',sans-serif; font-size: 10px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- Comments --- */
.cc-tr-comment { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid #f0f1f3; }
.cc-tr-comment:last-child { border-bottom: none; }
.cc-tr-comment-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: #e5e7eb; overflow: hidden; }
.cc-tr-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cc-tr-comment-body { flex: 1; min-width: 0; }
.cc-tr-comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cc-tr-comment-author { font-family: 'Inter',sans-serif; font-size: 13px; font-weight: 700; color: #1a1a1a; }
.cc-tr-comment-date { font-family: 'Inter',sans-serif; font-size: 11px; color: #9ca3af; }
.cc-tr-comment-text { font-family: 'Inter',sans-serif; font-size: 14px; color: #333; line-height: 1.6; }
.cc-tr-comment-actions { margin-top: 6px; }
.cc-tr-comment-actions a { font-family: 'Inter',sans-serif; font-size: 11px; color: #9ca3af; text-decoration: none; margin-right: 12px; }
.cc-tr-comment-actions a:hover { color: #cc0000; }

/* --- Comment Form --- */
.cc-tr-comment-form { padding: 16px 18px; border-top: 1px solid #f0f1f3; }
.cc-tr-comment-form textarea { width: 100%; min-height: 80px; padding: 12px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-family: 'Inter',sans-serif; font-size: 14px; resize: vertical; box-sizing: border-box; }
.cc-tr-comment-form textarea:focus { border-color: #cc0000; outline: none; box-shadow: 0 0 0 3px rgba(204,0,0,0.1); }
.cc-tr-comment-form .cc-tr-btn { margin-top: 8px; }

/* --- Tags --- */
.cc-tr-tags { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 18px; }
.cc-tr-tag { display: inline-flex; align-items: center; padding: 4px 12px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 20px; font-family: 'Inter',sans-serif; font-size: 11px; color: #374151; text-decoration: none; transition: all 0.15s; }
.cc-tr-tag:hover { background: #fef2f2; border-color: #fecaca; color: #cc0000; }

/* --- Pagination --- */
.cc-tr-pagination { text-align: center; padding: 24px 0; font-family: 'Inter',sans-serif; font-size: 13px; }
.cc-tr-page-link { display: inline-block; padding: 6px 12px; margin: 0 2px; background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; color: #374151; text-decoration: none; transition: all 0.15s; }
.cc-tr-page-link:hover { border-color: #cc0000; color: #cc0000; }
.cc-tr-page-cur { display: inline-block; padding: 6px 12px; margin: 0 2px; background: #cc0000; border: 1px solid #cc0000; border-radius: 6px; color: white; font-weight: 600; }

/* --- Empty State --- */
.cc-tr-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; }
.cc-tr-empty svg { display: block; margin: 0 auto 16px; opacity: 0.3; }
.cc-tr-empty p { font-family: 'Inter',sans-serif; font-size: 15px; color: #9ca3af; margin-bottom: 16px; }

/* --- Gallery Grid (for images in reports) --- */
.cc-tr-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px; }
.cc-tr-gallery a { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; }
.cc-tr-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.cc-tr-gallery a:hover img { transform: scale(1.05); }

/* --- Print --- */
@media print {
    .cc-tr-hero, .cc-tr-toolbar, .cc-tr-pagination, .cc-tr-comment-form,
    .cc-tr-hero-actions, .cc-tr-btn, .cc-ad-container, #nav, #header,
    .cc-ribbon-wrap, .cc-tr-search { display: none !important; }
    .cc-tr { padding: 0; }
    .cc-tr-report-body { padding: 0; font-size: 12pt; }
    .cc-tr-report-body img { max-width: 4in; box-shadow: none; }
    .cc-tr-section { border: none; box-shadow: none; }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cc-tr { padding: 12px; }
    .cc-tr-grid { grid-template-columns: 1fr; }
    .cc-tr-card { flex-direction: column; }
    .cc-tr-card-thumb { width: 100%; min-height: 160px; }
    .cc-tr-card-body { padding: 14px; }
    .cc-tr-hero-top { flex-direction: column; gap: 14px; text-align: center; }
    .cc-tr-hero-actions { justify-content: center; }
    .cc-tr-hero h1 { font-size: 20px; }
    .cc-tr-search { flex-direction: column; }
    .cc-tr-search-input { border-radius: 8px; border-right: 1.5px solid rgba(255,255,255,0.12); }
    .cc-tr-search-btn { border-radius: 8px; margin-top: 8px; }
    .cc-tr-toolbar { flex-direction: column; align-items: flex-start; }
    .cc-tr-gallery { grid-template-columns: repeat(2, 1fr); }
}
