/**
 * Moduuli: 12-pages.css
 * Description: Sivukohtaiset tyylit (Sää, Tänään, Oma tili, Moderointi).
 * Version: 1.0
 */

/* --- SÄÄSIVU --- */
.weather-page-section {
	background-color: #f9f9f9;
	padding: 1.5rem;
	margin-bottom: 2rem;
	border: 1px solid #eee;
	border-radius: 5px;
}
.weather-page-section h2 {
	margin-top: 0;
	border-bottom: 1px solid #ddd;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}
.data-source {
	font-size: 0.8rem;
	color: #999;
	text-align: right;
	margin-top: 1.5rem;
}
.weather-warning {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left-width: 5px;
    border-left-style: solid;
    border-radius: 4px;
}
.warning-level-1 { background-color: #fffbe6; border-color: #ffc107; }
.warning-level-2 { background-color: #fff3e0; border-color: #ff9800; }
.warning-level-3 { background-color: #ffebee; border-color: #f44336; }
.warning-title { margin-top: 0; border-bottom: none; }
.weather-controls { display: flex; gap: 1rem; align-items: center; }
.weather-select { padding: 0.5rem; border-radius: 4px; border: 1px solid #ddd; }
.weather-save-button {
    background-color: #024f91;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}
.weather-status { margin-top: 1rem; font-style: italic; color: #6c6c6c; }

.current-weather-details {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 2rem;
}
.current-weather-main { display: flex; align-items: center; gap: 1rem; }
.current-weather-emoji { font-size: 4rem; line-height: 1; }
.current-weather-temp { font-size: 3rem; font-weight: 800; color: #024f91; }
.current-weather-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 2rem; }
.current-weather-extra span { font-size: 1rem; }
.wind-arrow {
	display: inline-block;
	font-size: 1.5rem;
	font-weight: bold;
	line-height: 1;
	vertical-align: middle;
	margin-right: 0.25rem;
}
.current-weather-extra .cloud-details { grid-column: 1 / -1; font-size: 0.9rem; color: #6c6c6c; }

.hourly-forecast-scroll { overflow-x: auto; padding-bottom: 1rem; }
.hourly-forecast-grid { display: flex; gap: 0.5rem; min-width: max-content; }
.hourly-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 0.75rem;
    text-align: center;
    flex: 0 0 80px;
}
.hourly-time { font-weight: 700; font-size: 0.9rem; }
.hourly-emoji { font-size: 2rem; margin: 0.25rem 0; }
.hourly-temp { font-weight: 700; margin-bottom: 0.25rem; }
.hourly-precip, .hourly-precip-mm, .hourly-wind {
    font-size: 0.8rem;
    color: #6c6c6c;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
}

.fmi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.fmi-data-item {
	background-color: #fff;
	border: 1px solid #eee;
	border-radius: 5px;
	padding: 1.5rem;
	text-align: center;
}
.fmi-data-item h3 { margin: 0 0 0.5rem 0; font-size: 1rem; font-weight: 600; color: #6c6c6c; }
.fmi-value { font-size: 2rem; font-weight: 800; margin: 0; color: #024f91; }
.fmi-unit { font-size: 1rem; font-weight: 500; color: #4c4c4c; }

.forecast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; }
.forecast-day {
	background-color: #fff;
	border: 1px solid #eee;
	border-radius: 5px;
	padding: 1rem;
	text-align: center;
	display: flex;
	flex-direction: column;
}
.forecast-date { font-weight: 700; text-transform: capitalize; }
.forecast-emoji { font-size: 2.5rem; margin: 0.5rem 0; }
.forecast-temp { font-size: 1.1rem; margin-bottom: 0.5rem; }
.forecast-temp-max { font-weight: 700; }
.forecast-temp-min { color: #6c6c6c; }
.temp-trend { display: inline-block; margin-left: 0.5rem; font-weight: 700; }
.temp-trend.up { color: #d9534f; }
.temp-trend.down { color: #5bc0de; }
.temp-trend.same { color: #777; }
.forecast-extra {
	display: flex;
	justify-content: space-around;
	align-items: center;
	font-size: 0.8rem;
	color: #6c6c6c;
	margin-top: auto;
	padding-top: 0.5rem;
	border-top: 1px solid #f1f1f1;
}
.forecast-extra span { display: inline-flex; align-items: center; gap: 0.25rem; }
.forecast-extra .separator { color: #ddd; }
.forecast-sun {
	display: flex;
	justify-content: space-around;
	font-size: 0.8rem;
	color: #6c6c6c;
	margin-top: 0.25rem;
}
.forecast-sun span { display: inline-flex; align-items: center; gap: 0.25rem; }

.photo-times-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.photo-time-item { padding: 1rem; border-radius: 5px; color: #ffffff; text-align: center; }
.photo-time-item.blue-hour { background: linear-gradient(135deg, #2c3e50, #4a6fa5); }
.photo-time-item.golden-hour { background: linear-gradient(135deg, #ff7e5f, #feb47b); }
.photo-time-label { font-weight: 700; display: block; font-size: 0.9rem; margin-bottom: 0.5rem; }
.photo-time-value { font-size: 1.2rem; font-weight: 800; }
.photo-summary { margin-top: 1.5rem; font-size: 1.1rem; text-align: center; font-style: italic; color: #6c6c6c; }

/* --- TÄNÄÄN-SIVU --- */
.tanaan-section {
    background-color: #f9f9f9;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eee;
    border-radius: 5px;
}
.tanaan-section h2 {
    margin-top: 0;
	border-bottom: 1px solid #ddd;
	padding-bottom: 1rem;
	margin-bottom: 1.5rem;
}
.tanaan-content { font-size: 1.2rem; line-height: 1.6; }
.tanaan-content strong { color: #024f91; font-weight: 700; }
.tanaan-content .flag-reason { font-weight: 800; color: #4c4c4c; }

.history-no-posts {
	background-color: transparent;
	border: none;
	padding: 0;
	text-align: left;
}
.history-no-posts p { font-style: normal; color: inherit; margin: 0; font-size: 1.2rem; line-height: 1.6; }

.tanaan-box { background-color: transparent; border: none; padding: 0; }
.tanaan-box h2 {
	margin-top: 0;
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 1.5rem;
	font-size: 1.2rem;
}
.tanaan-box a { font-weight: 700; }

/* --- OMA TILI -SIVU --- */
.account-page-title { margin-bottom: 1.5rem; margin-top: 2rem; }
.account-page-welcome { font-size: 1.2rem; margin-bottom: 2rem; }
.account-page-welcome strong { font-weight: 700; }
.account-page-username { color: #024f91; font-weight: 700; }
.account-page-wrapper { display: flex; gap: 2rem; align-items: flex-start; }
.account-page-nav { width: 200px; flex-shrink: 0; }
.account-page-nav ul { list-style: none; margin: 0; padding: 0; }
.account-page-nav a {
	display: block;
	padding: 0.75rem 1rem;
	border-radius: 5px;
	font-weight: 700;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.account-page-nav li.is-active a { background-color: #024f91; color: #fff; }
.account-page-nav a:not(.is-active):hover { background-color: #f1f1f1; }
.account-page-content { flex-grow: 1; }
.account-content-section {
	padding: 1.5rem;
	border: 1px solid #eee;
	border-radius: 5px;
}
.account-content-section h2 {
	margin-top: 0;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}
.account-form-row { margin-bottom: 1rem; }
.account-form-row label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.account-form-row input[type="text"],
.account-form-row input[type="email"],
.account-form-row input[type="password"],
.account-form-row input[type="tel"],
.account-form-row textarea {
	width: 100%;
	max-width: 400px;
	padding: 0.75rem;
	border: 1px solid #ccc;
	border-radius: 5px;
	background-color: #fff;
	color: #4c4c4c;
}
.account-form-submit {
	background-color: #024f91;
	color: #fff;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 700;
	transition: background-color 0.2s ease;
}
.account-form-submit:hover { background-color: #225a82; }
.account-notice {
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	border-radius: 5px;
	border-left-width: 5px;
	border-left-style: solid;
}
.account-notice.success { background-color: #d4edda; border-color: #28a745; color: #155724; }
.account-notice.error { background-color: #f8d7da; border-color: #dc3545; color: #721c24; }

.saved-articles-list { list-style: none; padding: 0; margin: 0; }
.saved-article-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid #eee;
}
.saved-article-item:last-child { border-bottom: none; }
.saved-article-item-thumbnail img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 5px;
}
.saved-article-item-details { flex-grow: 1; }
.saved-article-item-title { font-weight: 700; margin-bottom: 0.25rem; }
.saved-article-item-meta { font-size: 0.8rem; color: #6c6c6c; }
.saved-article-item-actions .save-post-button {
	background-color: #f8d7da;
	color: #721c24;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.saved-article-item-actions .save-post-button:hover { background-color: #f5c6cb; }
.saved-article-item-actions .save-post-button svg { width: 16px; height: 16px; }

.followed-terms-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 0;
	margin: 0;
	list-style: none;
}
.followed-term-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.25rem 0.25rem 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 700;
}
.followed-term-item a { color: #4c4c4c; }
.followed-term-item .follow-category-button,
.followed-term-item .follow-tag-button {
	background-color: rgba(0,0,0,0.1);
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #4c4c4c;
	margin: 0;
	padding: 0;
}
.followed-term-item .follow-category-button:hover,
.followed-term-item .follow-tag-button:hover { background-color: rgba(0,0,0,0.2); }
.followed-term-item .follow-category-button svg,
.followed-term-item .follow-tag-button svg { width: 14px; height: 14px; }

.gamification-summary {
	padding: 1rem 1.5rem;
	background-color: #f1f1f1;
	border-radius: 5px;
	margin-bottom: 2rem;
	text-align: center;
}
.gamification-summary .total-points { font-size: 1.5em; font-weight: 900; color: #024f91; }
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.achievement-badge {
	background-color: #f9f9f9;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	opacity: 0.5;
	filter: grayscale(80%);
	transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.achievement-badge.is-unlocked {
	opacity: 1;
	filter: grayscale(0%);
	border-left: 5px solid #28a745;
	background-color: #fff;
}
.achievement-badge.is-unlocked:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.achievement-icon { font-size: 3rem; line-height: 1; }
.achievement-details { flex-grow: 1; }
.achievement-title { margin: 0 0 0.25rem 0; font-size: 1.1rem; }
.achievement-description { margin: 0; font-size: 0.9rem; color: #6c6c6c; }

.account-form-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.account-form-checkbox-row label { margin-bottom: 0; }
.account-form-checkbox-row .description {
    margin: 0;
    font-size: 0.85rem;
    color: #6c6c6c;
    flex-basis: 100%;
    padding-left: calc(1.3em + 0.75rem);
}

.saved-searches-list { list-style: none; margin: 0; padding: 0; }
.saved-search-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	border-bottom: 1px solid #eee;
	transition: background-color 0.2s ease;
}
.saved-search-item:last-child { border-bottom: none; }
.saved-search-item:hover { background-color: #f9f9f9; }
.saved-search-details { display: flex; flex-direction: column; }
.saved-search-name { font-weight: 700; }
.saved-search-date { font-size: 0.8rem; color: #6c6c6c; margin-top: 0.25rem; }
.saved-search-actions { display: flex; gap: 0.75rem; align-items: center; }
.delete-saved-search-btn {
	background-color: #f8d7da;
	color: #721c24;
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	font-weight: bold;
	transition: background-color 0.2s ease;
}
.delete-saved-search-btn:hover { background-color: #f5c6cb; }
.run-saved-search-btn { font-weight: 700; font-size: 0.9rem; }

/* TERVEYSTARKISTIN */
.health-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.health-check-item { border: 1px solid #ddd; border-radius: 5px; border-left-width: 5px; }
.health-check-header {
	padding: 1rem 1.5rem;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.health-check-label { font-weight: 700; font-size: 1.1rem; }
.health-check-status-icon::before {
	content: '';
	display: inline-block;
	width: 24px;
	height: 24px;
	border-radius: 50%;
}
.health-check-body { padding: 1rem 1.5rem; }
.health-check-value { font-size: 1.5rem; font-weight: 800; }
.health-check-message { font-size: 0.9rem; margin: 0.5rem 0 0 0; color: #6c6c6c; }
.health-check-progress-bar {
	background-color: #e9ecef;
	border-radius: 0.25rem;
	height: 10px;
	margin-top: 1rem;
	overflow: hidden;
}
.health-check-progress-bar-inner { height: 100%; background-color: #28a745; }
.health-status-ok { border-left-color: #28a745; }
.health-status-ok .health-check-status-icon::before { background-color: #28a745; content: '✓'; color: #fff; text-align: center; font-weight: bold; line-height: 24px; }
.health-status-warning { border-left-color: #ffc107; }
.health-status-warning .health-check-status-icon::before { background-color: #ffc107; content: '!'; color: #fff; text-align: center; font-weight: bold; line-height: 24px; }
.health-status-warning .health-check-progress-bar-inner { background-color: #ffc107; }
.health-status-error { border-left-color: #dc3545; }
.health-status-error .health-check-status-icon::before { background-color: #dc3545; content: '×'; color: #fff; text-align: center; font-weight: bold; line-height: 24px; }
.health-status-error .health-check-progress-bar-inner { background-color: #dc3545; }

/* MODEROINTI */
.moderation-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1.5rem;
}
.moderation-table th, .moderation-table td { padding: 1rem; text-align: left; border-bottom: 1px solid #eee; }
.moderation-table th { font-weight: 700; }
.moderation-comment-content { font-style: italic; }
.moderation-comment-content blockquote {
	margin: 0.5em 0 0.5em 1em;
	padding-left: 1em;
	border-left: 3px solid #ccc;
	color: #6c6c6c;
}
.moderation-author-info { font-size: 0.85rem; color: #6c6c6c; }
.moderation-actions { display: flex; gap: 0.5rem; }
.moderation-action-btn {
	padding: 0.4rem 0.8rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 700;
	font-size: 0.8rem;
}
.moderation-action-btn.keep { background-color: #d4edda; color: #155724; }
.moderation-action-btn.keep:hover { background-color: #c3e6cb; }
.moderation-action-btn.delete { background-color: #f8d7da; color: #721c24; }
.moderation-action-btn.delete:hover { background-color: #f5c6cb; }

/* Page: Statics */
.page #content .kalajokinen-container { max-width: 900px; }
.page .entry-header { text-align: center; margin-bottom: 2rem; }
.page .entry-title { font-size: 2.8rem; }
