/* hate.dad-look.com - Reddit Hate Tracker */
body { margin: 0; background: #1c1c1c; }
a { color: #ec6e6a; }
a:hover { color: #f39a96; }
button:focus-visible, a:focus-visible { outline: 3px solid #6e9cf4; outline-offset: 2px; }

.ht-page { box-sizing: border-box; background: #1c1c1c; color: #ffffff; font-family: Helvetica, Arial, sans-serif; padding: 28px 24px 64px; }
.ht-wrap { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.ht-page h2 { margin: 0; font-size: 18px; font-weight: 800; text-transform: uppercase; }
.ht-card { background: #2c2c2c; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.red { color: #ec6e6a; }
.blue { color: #6e9cf4; }

/* Header */
.ht-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ht-title { display: flex; flex-direction: column; gap: 4px; }
.ht-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: #b5b5b5; }
.ht-title h1 { margin: 0; font-size: 52px; line-height: 0.95; font-weight: 800; color: #ec6e6a; text-transform: uppercase; }
.ht-days { background: #2c2c2c; border-radius: 8px; padding: 10px 16px; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.ht-days-label { font-size: 13px; font-weight: 700; color: #ec6e6a; letter-spacing: 0.04em; }
.ht-days-value { font-size: 30px; font-weight: 800; line-height: 1; }
.ht-days-record { font-size: 11px; color: #c9c9c9; }

/* Hate-o-Meter */
.ht-meter { padding: 24px; gap: 14px; }
.ht-meter-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.ht-meter-label { font-size: 22px; font-weight: 800; color: #ec6e6a; text-transform: uppercase; }
.ht-meter-bar { height: 40px; background: #1c1c1c; display: flex; }
.ht-meter-bar div, .ht-sub-bar div { background: #ec6e6a; }
.ht-meter-scale { display: flex; justify-content: space-between; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: #b5b5b5; gap: 8px; }

/* Totals */
.ht-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.ht-total { gap: 6px; }
.ht-total-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: #b5b5b5; }
.ht-total-value { font-size: 52px; font-weight: 800; line-height: 1; }
.ht-total-sub { font-size: 14px; color: #d0d0d0; }

/* Two-column rows */
.ht-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ht-wide { flex: 999 1 560px; min-width: 0; }
.ht-narrow { flex: 1 1 300px; min-width: 0; }

/* Hate per subreddit */
.ht-persub { gap: 16px; }
.ht-sub { display: flex; flex-direction: column; gap: 6px; }
.ht-sub-top { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.ht-sub-top span { color: #d0d0d0; }
.ht-sub-bar { height: 14px; background: #1c1c1c; display: flex; }
.ht-sub-verdict { font-size: 13px; color: #b5b5b5; }

/* Types of hate */
.ht-types { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ht-types li { background: #1c1c1c; padding: 12px 14px; display: flex; justify-content: space-between; gap: 8px; }
.ht-types strong { color: #ec6e6a; }

/* Hall of Fame */
.ht-fame { display: flex; flex-direction: column; gap: 16px; }
.ht-fame-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ht-fame figure { margin: 0; background: #2c2c2c; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ht-fame blockquote { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.15; }
.ht-fame figcaption { font-size: 13px; color: #b5b5b5; }
.ht-fame figure.featured { background: #ec6e6a; color: #1c1c1c; }
.ht-fame figure.featured figcaption { color: #1c1c1c; font-weight: 700; }
.ht-fame figure.empty { border: 2px dashed #555; }
.ht-fame figure.empty blockquote { color: #8c8c8c; }

/* Hate log */
.ht-log-scroll { overflow-x: auto; }
.ht-log { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.ht-log th { text-align: left; padding: 10px 12px; font-size: 12px; color: #b5b5b5; letter-spacing: 0.08em; border-bottom: 1px solid #444; }
.ht-log td { padding: 10px 12px; border-bottom: 1px solid #383838; }
.ht-log td.when { font-family: Menlo, Consolas, monospace; color: #c9c9c9; white-space: nowrap; }
.ht-log td.damage { font-weight: 800; color: #ec6e6a; }

/* Complaints department */
.ht-cat { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.ht-cat-text { margin: 0; font-size: 14px; color: #d0d0d0; }
.ht-button { background: #6e9cf4; color: #ffffff; border: 0; font: inherit; font-size: 17px; font-weight: 800; text-transform: uppercase; padding: 16px; min-height: 52px; cursor: pointer; }
.ht-thanks { background: #1c1c1c; border: 2px solid #ec6e6a; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.ht-thanks[hidden] { display: none; }
.ht-thanks strong { color: #ec6e6a; }
.ht-thanks > span { font-size: 13px; color: #c9c9c9; }

/* Footer */
.ht-footer { padding: 18px 20px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; font-size: 14px; color: #d0d0d0; }
.ht-footer a { font-weight: 800; }

@media (max-width: 600px) {
	.ht-page { padding: 20px 16px 48px; }
	.ht-title h1 { font-size: 40px; }
	.ht-total-value { font-size: 44px; }
	.ht-fame blockquote { font-size: 22px; }
}

/* Call to action */
.ht-cta { background: #ec6e6a; color: #1c1c1c; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.ht-page .ht-cta h2 { font-size: 34px; line-height: 1.05; max-width: 760px; }
.ht-cta p { margin: 0; font-size: 17px; font-weight: 700; }
.ht-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; box-sizing: border-box; width: 100%; max-width: 640px; min-height: 84px; padding: 22px 32px; background: #1c1c1c; color: #ffffff; font-size: 30px; font-weight: 800; text-transform: uppercase; text-decoration: none; letter-spacing: 0.02em; }
.ht-cta-button:hover { color: #ffffff; background: #000000; }
.ht-cta-button:focus-visible { outline-color: #1c1c1c; outline-offset: 4px; }
.ht-cta-arrow { display: inline-block; }

@media (max-width: 600px) {
	.ht-cta { padding: 36px 16px; }
	.ht-page .ht-cta h2 { font-size: 26px; }
	.ht-cta-button { font-size: 22px; min-height: 72px; padding: 18px 20px; }
}

/* Animations - only with JavaScript and when the visitor allows motion */
@media (prefers-reduced-motion: no-preference) {
	.js .ht-header .ht-title { animation: ht-slide-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
	.js .ht-header .ht-title h1 { animation: ht-shake 0.5s 0.7s both; }
	.js .ht-header .ht-days { animation: ht-slide-in-right 0.6s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
	.js .ht-days-value { animation: ht-pulse 2.4s 1.2s ease-in-out infinite; }

	.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
	.js .reveal.is-in { opacity: 1; transform: none; }

	.js .ht-meter-bar div, .js .ht-sub-bar div { transform: scaleX(0); transform-origin: left; transition: transform 1.2s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
	.js .is-in .ht-meter-bar div, .js .is-in .ht-sub-bar div { transform: scaleX(1); }
	.ht-meter-bar div { background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0) 0 14px, rgba(255, 255, 255, 0.14) 14px 28px); background-size: 40px 40px; animation: ht-stripes 1s linear infinite; }

	.js .ht-types li { opacity: 0; transform: translateX(-16px); transition: opacity 0.4s ease, transform 0.4s ease; }
	.js .is-in .ht-types li { opacity: 1; transform: none; }
	.js .is-in .ht-types li:nth-child(2) { transition-delay: 80ms; }
	.js .is-in .ht-types li:nth-child(3) { transition-delay: 160ms; }
	.js .is-in .ht-types li:nth-child(4) { transition-delay: 240ms; }
	.js .is-in .ht-types li:nth-child(5) { transition-delay: 320ms; }

	.ht-total, .ht-fame figure { transition: transform 0.25s ease, box-shadow 0.25s ease; }
	.js .ht-total.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }
	.js .ht-fame figure.is-in:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 12px 0 #111111; transition-delay: 0s; }

	.ht-button { transition: transform 0.12s ease, background-color 0.2s ease; }
	.ht-button:hover { background-color: #84acf6; }
	.ht-button:active { transform: scale(0.97); }
	.ht-cat.is-nodding { animation: ht-shake 0.45s; }
	.ht-thanks.is-popping { animation: ht-pop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.4); }

	.ht-cta-button { animation: ht-glow 2.2s ease-in-out infinite; transition: transform 0.15s ease, background-color 0.2s ease; }
	.ht-cta-button:hover { transform: scale(1.03); }
	.ht-cta-arrow { animation: ht-nudge 1.1s ease-in-out infinite; }
}

@keyframes ht-slide-in { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
@keyframes ht-slide-in-right { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes ht-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px) rotate(-1.5deg); } 40% { transform: translateX(5px) rotate(1deg); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes ht-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); color: #ec6e6a; } }
@keyframes ht-stripes { from { background-position: 0 0; } to { background-position: 40px 0; } }
@keyframes ht-pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes ht-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(28, 28, 28, 0.45); } 50% { box-shadow: 0 0 0 12px rgba(28, 28, 28, 0); } }
@keyframes ht-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(8px); } }
