* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: #f4f6f8; color: #1a1d20; line-height: 1.6; }

/* NAVBAR */
.top-navbar { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.04); padding: 12px 0; margin-bottom: 24px; position: sticky; top: 0; z-index: 100; }
.nav-container { display: flex; align-items: center; max-width: 900px; margin: 0 auto; padding: 0 16px; gap: 20px; }
.logo-link { font-size: 22px; font-weight: 800; color: #0d47a1; text-decoration: none; letter-spacing: -0.5px; }
.btn-add-mini { margin-left: auto; background: #fff; color: #0d47a1; border: 1px solid #0d47a1; padding: 10px 18px; font-size: 15px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: background 0.2s; text-decoration: none; }
.btn-add-mini:hover { background: #e3f2fd; }

.container { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* BUTTONS */
.btn { background: #0d47a1; color: #fff; border: none; padding: 14px 24px; font-size: 16px; border-radius: 10px; cursor: pointer; font-weight: 700; transition: all 0.2s; display: block; width: 100%; text-align: center; }
.btn:hover { background: #1565c0; transform: translateY(-1px); }
.btn:disabled { background: #b0bec5; cursor: not-allowed; }
.btn-jump { background: #e3f2fd; color: #0d47a1; margin-top: 15px; border: 1px solid #bbdefb;}
.btn-jump:hover { background: #bbdefb; }

/* FORMS */
.form-section { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 8px 24px rgba(0,0,0,0.04); margin-bottom: 30px; }
.hidden { display: none !important; }
.form-section h2 { margin-bottom: 20px; font-size: 22px; color: #111; }
.form-divider { border: 0; height: 1px; background: #eef0f2; margin: 24px 0; }
.form-group { margin-bottom: 16px; }
.row-group { display: flex; gap: 12px; flex-direction: column; }
@media (min-width: 600px) { .row-group { flex-direction: row; } .row-group > * { flex: 1; } }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; text-align: center; }
input[type="text"], input[type="url"], select, textarea { width: 100%; padding: 14px; border: 1px solid #cfd8dc; border-radius: 10px; font-size: 16px; background: #fafbfc; outline: none; transition: 0.2s; }
input:focus, select:focus, textarea:focus { border-color: #0d47a1; background: #fff; }
.form-msg { margin-bottom: 16px; font-weight: 600; text-align: center; padding: 10px; border-radius: 8px; display: none; }

/* STAR INPUT UI - NEW BUTTON-LIKE BLOCKS */
.star-rating-container { background: #fff; border: 1px solid #eceff1; padding: 15px 20px; border-radius: 12px; margin-bottom: 20px; text-align: center; }
.input-stars { display: flex; justify-content: center; align-items: center; gap: 10px; cursor: pointer; user-select: none; flex-wrap: wrap; margin-top: 10px; }
.stars-group { display: flex; gap: 6px; }
.star-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 56px; border-radius: 8px; background: #f0f2f5; border: 1px solid #e0e4e8; cursor: pointer; transition: all 0.15s ease; color: #90a4ae; }
.star-icon { font-size: 22px; line-height: 1; pointer-events: none; }
.star-num { font-size: 14px; font-weight: 700; margin-top: 4px; pointer-events: none; }
.red-stars .star-wrapper:hover, .red-stars .star-wrapper.hover, .red-stars .star-wrapper.active { background: #ffebee; border-color: #ef9a9a; color: #c62828; }
.green-stars .star-wrapper:hover, .green-stars .star-wrapper.hover, .green-stars .star-wrapper.active { background: #e8f5e9; border-color: #a5d6a7; color: #2e7d32; }
.stars-divider { width: 2px; height: 56px; background: #cfd8dc; margin: 0 10px; }
.score-display { font-size: 15px; font-weight: 700; color: #607d8b; }

/* ADVANCED RATINGS ON CARD */
.advanced-ratings { display: flex; flex-direction: column; gap: 15px; margin-top: 15px; }
.rating-block { background: #f8f9fa; padding: 15px; border-radius: 12px; text-align: center; border: 1px solid #eceff1; }
.overall-block { flex: 1; }
.rating-split { display: flex; gap: 15px; }
.small-block { flex: 1; padding: 10px; }
.rating-label-top { font-size: 13px; color: #78909c; text-transform: uppercase; font-weight: 700; display: block; margin-bottom: 5px; }
.rating-score { font-size: 32px; font-weight: 800; line-height: 1; }
.small-block .rating-score { font-size: 24px; }
.rating-score.positive { color: #2e7d32; }
.rating-score.negative { color: #c62828; }
.rating-score.neutral { color: #90a4ae; }

/* DISPLAY STARS (READONLY CSS GRADIENT) */
.display-stars { display: inline-block; font-size: 22px; font-family: Arial, sans-serif; background: #d0d7de; -webkit-background-clip: text; color: transparent; line-height: 1; margin-top: 5px;}
.display-stars::before { content: '★★★★★'; }
.display-stars.positive { background: linear-gradient(90deg, #2e7d32 calc(var(--rating) * 20%), #d0d7de calc(var(--rating) * 20%)); -webkit-background-clip: text; color: transparent; }
.display-stars.negative { background: linear-gradient(270deg, #c62828 calc(var(--rating) * 20%), #d0d7de calc(var(--rating) * 20%)); -webkit-background-clip: text; color: transparent; }
.display-stars.neutral { background: #d0d7de; -webkit-background-clip: text; color: transparent; }

/* OBJECTS GRID (HOME) */
.objects-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
@media (min-width: 600px) { .objects-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); } }
.object-card-mini { background: #fff; border-radius: 16px; text-decoration: none; color: inherit; box-shadow: 0 4px 12px rgba(0,0,0,0.03); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s; border: 1px solid #f0f2f5; background-size: cover; background-position: center; min-height: 180px; position: relative; }
.object-card-mini:hover { transform: translateY(-4px); }
.mini-overlay { background: rgba(255,255,255,0.95); padding: 20px; height: 100%; display: flex; flex-direction: column; }
.object-card-mini h3 { margin-bottom: 8px; font-size: 18px; color: #111; }
.type-badge { display: inline-block; background: #eef2f5; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #546e7a; margin-bottom: 10px; width: fit-content; }
.rating-mini-wrap { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.rating-num { font-size: 22px; font-weight: 800; }
.rating-num.pos { color: #2e7d32; }
.rating-num.neg { color: #c62828; }
.empty-list { color: #78909c; font-size: 15px; padding: 30px; text-align: center; }

/* OBJECT FULL CARD */
.object-card { background: #fff; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.04); overflow: hidden; margin-bottom: 40px; }
.card-header { display: flex; flex-direction: column; border-bottom: 1px solid #f0f2f5; }
@media (min-width: 768px) { .card-header { flex-direction: row; } }
.main-image { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
@media (min-width: 768px) { .main-image { width: 300px; height: 300px; aspect-ratio: auto; } }
.card-info { flex: 1; padding: 24px; display: flex; flex-direction: column; }
.card-title-row h1 { font-size: 26px; margin-bottom: 15px; }
.meta { display: flex; flex-direction: column; gap: 8px; color: #546e7a; margin-bottom: 10px; font-size: 15px; }
.type { display: inline-block; background: #eef2f5; padding: 4px 10px; border-radius: 6px; font-weight: 600; width: fit-content; }

/* TABS */
.tabs-container { padding: 0; }
input[name="tabs"] { display: none; }
.tabs-nav { display: flex; flex-direction: column; background: #f8f9fa; border-bottom: 1px solid #eceff1; }
@media (min-width: 600px) { .tabs-nav { flex-direction: row; } }
.tab-label { flex: 1; text-align: center; padding: 16px; font-weight: 700; cursor: pointer; color: #607d8b; border-bottom: 3px solid transparent; transition: 0.2s; font-size: 15px; }
.tab-content { display: none; padding: 24px; }
#tab-positive:checked ~ .tabs-nav .positive-tab { color: #2e7d32; border-bottom-color: #2e7d32; background: #fff; }
#tab-negative:checked ~ .tabs-nav .negative-tab { color: #c62828; border-bottom-color: #c62828; background: #fff; }
#tab-positive:checked ~ #content-positive { display: block; }
#tab-negative:checked ~ #content-negative { display: block; }

/* REVIEWS */
.review-item { border: 1px solid #eceff1; border-radius: 12px; padding: 20px; margin-bottom: 16px; background: #fff; }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.review-author-wrap { display: flex; flex-direction: column; }
.review-author { font-weight: 700; font-size: 15px; }
.review-date { color: #90a4ae; font-size: 13px; font-weight: 500; }
.review-score { font-weight: 800; padding: 6px 12px; border-radius: 20px; font-size: 14px; }
.score-pos { background: #e8f5e9; color: #2e7d32; }
.score-neg { background: #ffebee; color: #c62828; }
.review-item h3 { margin-bottom: 8px; font-size: 18px; }
.review-body { margin-bottom: 16px; color: #455a64; line-height: 1.6; }
.review-image { max-width: 100%; max-height: 350px; border-radius: 8px; margin-bottom: 16px; object-fit: contain; }
.review-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vote-btn, .btn-mini { background: #f1f3f5; border: none; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 14px; font-weight: 700; color: #546e7a; transition: 0.2s; }
.vote-btn:hover, .btn-mini:hover { background: #e2e6ea; color: #222; }
.my-review-controls { margin-left: auto; display: flex; gap: 8px; }
.edit-btn { background: #fff3e0; color: #e65100; }
.delete-btn { background: #ffebee; color: #c62828; }

.review-bottom-section { margin: 0; border-radius: 0 0 16px 16px; border-top: 1px solid #eceff1; background: #fafbfc; box-shadow: none; padding: 30px 24px; }
