/* GLOBAL */
.utd-full-wrapper, .utd-single-wrapper {
    font-family: 'Segoe UI', sans-serif; color: #333; width: 100%; box-sizing: border-box;
}
.utd-full-wrapper *, .utd-single-wrapper * { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

/* ==================
   1. ARCHIVE PAGE
   ================== */
.utd-full-wrapper { display: flex; background: #fdfdfd; min-height: 100vh; }

/* Sticky Left Sidebar */
.utd-sticky-sidebar { width: 260px; background: #fff; border-right: 1px solid #eee; flex-shrink: 0; position: relative; z-index: 10; }
.utd-sb-inner { position: sticky; top: 20px; padding: 20px; height: calc(100vh - 40px); overflow-y: auto; }
.utd-sb-title { margin-top: 0; padding-bottom: 10px; border-bottom: 2px solid #FD7805; font-size: 18px; }
.utd-cat-list { list-style: none; padding: 0; margin: 20px 0; }
.utd-cat-list li { padding: 10px 15px; cursor: pointer; border-radius: 5px; color: #555; transition: 0.2s; display: flex; justify-content: space-between; margin-bottom: 5px; }
.utd-cat-list li:hover, .utd-cat-list li.active { background: #FFF5EB; color: #FD7805; font-weight: bold; }
.utd-sb-ad { background: #eee; height: 200px; display: flex; align-items: center; justify-content: center; margin-top: 30px; border-radius: 4px; color: #888; font-weight: bold; }

/* Main Grid */
.utd-main-area { flex-grow: 1; padding: 30px; }
.utd-filters { display: flex; justify-content: space-between; margin-bottom: 25px; gap: 20px; flex-wrap: wrap; }
.utd-search-box { flex: 1; min-width: 200px; }
.utd-search-box input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }
.utd-drop-filter select { padding: 8px; border: 1px solid #FD7805; border-radius: 4px; cursor: pointer; }
.utd-grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }

/* Card Design */
.utd-card { background: #fff; border: 1px solid #eee; padding: 15px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: 0.2s; display: flex; flex-direction: column; height: 100%; }
.utd-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.utd-card-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.utd-top-left-group { display: flex; align-items: center; gap: 6px; }
.utd-favicon-small { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; }
.utd-favicon-small img { width: 100%; height: 100%; object-fit: contain; }
.utd-cat-label { font-size: 12px; color: #888; font-weight: bold; text-transform: uppercase; line-height: 1; }

/* Badges (Added Freemium) */
.utd-pill { font-size: 11px; padding: 3px 8px; border-radius: 4px; border: 1px solid #eee; display: inline-block; font-weight: 600; }
.utd-pill.free { color: #2ecc71; border-color: #2ecc71; background: #eafff0; }
.utd-pill.paid { color: #FD7805; border-color: #FD7805; background: #fff5eb; }
.utd-pill.freemium { color: #3498db; border-color: #3498db; background: #ebf5fb; }

.utd-card-preview-box { height: 180px; background: #f0f0f0; border-radius: 6px; overflow: hidden; margin-bottom: 15px; border: 1px solid #e0e0e0; display: flex; align-items: center; justify-content: center; }
.utd-card-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.utd-card-preview-box a { display: block; width: 100%; height: 100%; text-decoration: none; }
.utd-card-bottom { margin-top: auto; }
.utd-card-title { margin: 0 0 15px 0; font-size: 16px; line-height: 1.3; font-weight: 700; }
.utd-card-title a { text-decoration: none; color: #333; }

/* Buttons (Reduced Padding) */
.utd-btn { 
    display: block; 
    background: #FD7805; 
    color: #fff; 
    text-align: center; 
    padding: 5px; /* Reduced to 5px */
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: background 0.3s; 
}
.utd-btn:hover { background: #e06904; color: white; }
.utd-ad-card { background: #e0e0e0; justify-content: center; align-items: center; font-size: 24px; color: #777; font-weight: bold; border: none; }

/* ==================
   2. SINGLE PAGE
   ================== */
.utd-single-wrapper {  margin: 40px auto; display: flex; gap: 40px; align-items: flex-start; }
.utd-single-main { flex: 1; min-width: 0; }

/* Right Sidebar */
.utd-single-sidebar { width: 300px; flex-shrink: 0; position: sticky; top: 20px; }
.utd-single-sidebar .widget, .utd-widget { background: #fff; border: 1px solid #eee; padding: 20px; margin-bottom: 20px; border-radius: 8px; }
.utd-single-sidebar h3, .utd-widget h3 { margin-top: 0; font-size: 18px; border-bottom: 2px solid #FD7805; padding-bottom: 10px; margin-bottom: 15px; }

/* Hero Box */
.utd-single-hero { background-color: #FFF5EB; border-radius: 8px; padding: 30px; margin-bottom: 40px; }
.utd-hero-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.utd-header-left { display: flex; align-items: center; gap: 15px; }
.utd-hero-favicon { width: 40px; height: 40px; background: #e0e0e0; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.utd-hero-favicon img { width: 24px; height: 24px; }
.utd-hero-title { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.2; }
.utd-hero-badge { background: #fff; padding: 8px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

/* Hero Grid */
.utd-hero-body { display: grid; grid-template-columns: 300px 1fr; gap: 30px; }
.utd-hero-image { background: #ccc; height: 220px; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.utd-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.utd-no-image { width: 100%; height: 100%; background: #ccc; }

/* Details */
.utd-hero-details { display: flex; flex-direction: column; }
.utd-short-block h4 { margin: 0 0 5px 0; font-size: 16px; font-weight: 700; }
.utd-short-block p { margin: 0 0 20px 0; font-size: 15px; line-height: 1.5; color: #444; }
.utd-rating-block { margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.utd-stars { color: #FD7805; font-size: 20px; letter-spacing: 2px; }
.utd-score { font-weight: 600; font-size: 16px; }
.utd-action-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.utd-visit-btn { background-color: #FD7805; color: #fff; padding: 5px 35px; /* Reduced to 5px */ border-radius: 6px; font-weight: bold; text-decoration: none; font-size: 16px; transition: background 0.3s; }
.utd-visit-btn:hover { background-color: #e06904; color: #fff; }
.utd-report-link { color: #333; text-decoration: none; font-size: 14px; }
.utd-report-link:hover { text-decoration: underline; }

/* Content Section */
.utd-content-section h3 { font-size: 20px; margin-bottom: 15px; font-weight: 700; }
.utd-the-content { font-size: 16px; line-height: 1.6; color: #333; }

/* Responsive */
@media (max-width: 900px) {
    .utd-full-wrapper, .utd-single-wrapper { flex-direction: column; }
    .utd-sticky-sidebar, .utd-single-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid #eee; position: static; }
    .utd-sb-inner { height: auto; position: static; padding: 15px; }
    .utd-cat-list { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 5px; }
    .utd-cat-list li { white-space: nowrap; margin: 0; }
    .utd-hero-body { grid-template-columns: 1fr; }
    .utd-hero-image { height: 200px; }
    .utd-hero-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}