/*
Theme Name: Diadema Clone
Theme URI: https://example.com/diadema-clone
Author: Your Name
Author URI: https://example.com
Description: An original general-purpose blog/magazine WordPress theme inspired by the feature set of the Diadema theme (homepage slideshow, post thumbnails, theme options via Customizer, WooCommerce-ready, translation-ready). Built from scratch and tested for PHP 8.2 compatibility.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diadema-clone
Tags: blog, news, custom-menu, featured-images, translation-ready, threaded-comments, theme-options
*/

/* =========================================================
   Reset & base
========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #2b2b2b;
	background: #f7f7f7;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--dc-accent, #c0392b);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* =========================================================
   Layout
========================================================= */
.site {
	max-width: 1200px;
	margin: 0 auto;
	background: #fff;
	box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.site-content {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	padding: 30px;
}

.content-area {
	flex: 1 1 65%;
	min-width: 280px;
}

.widget-area {
	flex: 1 1 28%;
	min-width: 240px;
}

/* =========================================================
   Header
========================================================= */
.site-header {
	border-bottom: 3px solid var(--dc-accent, #c0392b);
	padding: 20px 30px;
}

.site-branding {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
}

.site-title {
	margin: 0;
	font-size: 2rem;
	letter-spacing: 1px;
}

.site-title a {
	color: #1a1a1a;
}

.site-description {
	margin: 0;
	color: #777;
	font-size: 0.9rem;
}

.custom-logo {
	max-height: 70px;
	width: auto;
}

/* Primary nav */
.main-navigation {
	background: #1a1a1a;
	margin: 0 -30px;
}

.main-navigation ul {
	display: flex;
	flex-wrap: wrap;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	padding: 14px 18px;
	color: #fff;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	background: var(--dc-accent, #c0392b);
	text-decoration: none;
}

.main-navigation ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	background: #1a1a1a;
	min-width: 200px;
	z-index: 100;
	display: none;
}

.main-navigation li:hover > ul {
	display: block;
}

.menu-toggle {
	display: none;
	background: var(--dc-accent, #c0392b);
	color: #fff;
	border: 0;
	padding: 10px 16px;
	font-size: 1rem;
	cursor: pointer;
}

/* =========================================================
   Slideshow
========================================================= */
.dc-slideshow {
	position: relative;
	overflow: hidden;
	margin: 0 -30px 30px;
	background: #000;
}

.dc-slideshow .dc-slide {
	position: relative;
	display: none;
}

.dc-slideshow .dc-slide.is-active {
	display: block;
}

.dc-slideshow img {
	width: 100%;
	max-height: 460px;
	object-fit: cover;
}

.dc-slide-caption {
	position: absolute;
	left: 0;
	bottom: 0;
	right: 0;
	padding: 20px 30px;
	background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
	color: #fff;
}

.dc-slide-caption h2 {
	margin: 0 0 6px;
	font-size: 1.5rem;
}

.dc-slide-caption a {
	color: #fff;
}

.dc-slideshow-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.4);
	color: #fff;
	border: 0;
	padding: 10px 14px;
	cursor: pointer;
	font-size: 1.2rem;
}

.dc-slideshow-nav.prev { left: 10px; }
.dc-slideshow-nav.next { right: 10px; }

.dc-slideshow-dots {
	position: absolute;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 8px;
}

.dc-slideshow-dots button {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 0;
	background: rgba(255,255,255,0.5);
	cursor: pointer;
	padding: 0;
}

.dc-slideshow-dots button.is-active {
	background: #fff;
}

/* =========================================================
   Posts
========================================================= */
.post-card {
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 1px solid #eee;
}

.post-card .post-thumbnail img {
	border-radius: 4px;
	margin-bottom: 15px;
}

.entry-title {
	font-size: 1.6rem;
	margin: 0 0 10px;
}

.entry-title a {
	color: #1a1a1a;
}

.entry-meta {
	color: #888;
	font-size: 0.85rem;
	margin-bottom: 12px;
}

.entry-meta a {
	color: #888;
}

.entry-summary,
.entry-content {
	color: #444;
}

.read-more {
	display: inline-block;
	margin-top: 10px;
	font-weight: 600;
	color: var(--dc-accent, #c0392b);
}

/* =========================================================
   Sidebar / widgets
========================================================= */
.widget {
	margin-bottom: 30px;
	padding: 20px;
	background: #f7f7f7;
	border-radius: 4px;
}

.widget-title {
	margin: 0 0 15px;
	font-size: 1.1rem;
	text-transform: uppercase;
	border-bottom: 2px solid var(--dc-accent, #c0392b);
	padding-bottom: 8px;
}

/* =========================================================
   Footer
========================================================= */
.site-footer {
	background: #1a1a1a;
	color: #ccc;
	padding: 30px;
	text-align: center;
	font-size: 0.85rem;
}

.site-footer a {
	color: #fff;
}

/* =========================================================
   Pagination / comments / forms
========================================================= */
.pagination {
	display: flex;
	gap: 8px;
	margin: 30px 0;
	flex-wrap: wrap;
}

.pagination a,
.pagination span {
	padding: 8px 14px;
	background: #f0f0f0;
	border-radius: 4px;
	color: #333;
}

.pagination .current {
	background: var(--dc-accent, #c0392b);
	color: #fff;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 12px;
	font-family: inherit;
}

.comment-form input[type="submit"],
.search-form input[type="submit"],
button,
.button {
	background: var(--dc-accent, #c0392b);
	color: #fff;
	border: 0;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95rem;
}

/* =========================================================
   Responsive
========================================================= */
/* =========================================================
   RSS link (header)
========================================================= */
.site-header-extra {
	display: flex;
	align-items: center;
}

.rss-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid #e08b3a;
	border-radius: 3px;
	color: #e08b3a;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.rss-link::before {
	content: "\25CF"; /* simple dot as a feed indicator, no external icon dependency */
	color: #e08b3a;
}

.rss-link:hover {
	background: #e08b3a;
	color: #fff;
	text-decoration: none;
}

/* =========================================================
   Darker, higher-contrast post/article background
   (same color scheme elsewhere - only the article body darkens)
========================================================= */
.post-card {
	background: #262626;
	color: #d6d6d6;
	padding: 25px;
	border-radius: 6px;
	border-bottom: none; /* the card itself now provides visual separation */
}

.post-card .entry-title a {
	color: #ffffff;
}

.post-card .entry-meta,
.post-card .entry-meta a,
.post-card .cat-links,
.post-card .cat-links a {
	color: #a8a8a8;
}

.post-card .entry-summary,
.post-card .entry-content {
	color: #d6d6d6;
}

.post-card .entry-content a {
	color: var(--dc-accent, #c0392b);
}

.post-card .read-more,
.post-card .leave-comment-link a {
	color: var(--dc-accent, #c0392b);
	font-weight: 600;
}

.post-card .leave-comment-link {
	margin: 10px 0 0;
}

.post-card + .post-card {
	margin-top: 20px;
}

/* Comment section that follows a single post keeps the site's normal (light) styling */
.comments-area {
	background: transparent;
	color: inherit;
}

/* =========================================================
   Media/Video widget (mp4) - responsive, works with the
   core "Video" widget/block so it can be dragged above
   the Recent Posts widget in Appearance > Widgets
========================================================= */
.widget_media_video video,
.widget_media_video iframe,
.widget-area video {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
}

@media (max-width: 782px) {
	.site-content {
		padding: 20px;
	}
	.main-navigation { margin: 0 -20px; }
	.dc-slideshow { margin: 0 -20px 20px; }

	.main-navigation ul {
		display: none;
		flex-direction: column;
	}
	.main-navigation.toggled ul {
		display: flex;
	}
	.menu-toggle {
		display: block;
		width: 100%;
	}
	.main-navigation ul ul {
		position: static;
	}
}
