/*
Theme Name: AIBuzzWire
Theme URI: https://aibuzzwire.com
Author: AIBuzzWire
Author URI: https://aibuzzwire.com
Description: A futuristic dark-themed WordPress block theme built for AI news. Features a premium tech news portal aesthetic with neon accents, clean typography, and grid-based layouts optimized for daily news publishing.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aibuzzwire
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, news, dark, portfolio
*/

/* === BASE RESETS === */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: 0.15em;
}

:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
	outline-color: var(--wp--preset--color--accent-1);
}

h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

.more-link {
	display: block;
}

/* === GLOW EFFECTS === */
.abw-glow-border {
	border: 1px solid rgba(0, 229, 160, 0.15);
	border-radius: 8px;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.abw-glow-border:hover {
	border-color: rgba(0, 229, 160, 0.35);
	box-shadow: 0 0 30px rgba(0, 229, 160, 0.08);
}

/* === HEADER LOGO === */
.abw-header-logo {
	margin: 0 !important;
}

.abw-header-logo img {
	object-fit: contain;
	image-rendering: auto;
}

/* === NEWS CARD STYLES === */
.abw-news-card {
	background-color: var(--wp--preset--color--accent-5);
	border: 1px solid rgba(0, 229, 160, 0.1);
	border-radius: 8px;
	padding: var(--wp--preset--spacing--40);
	transition: all 0.3s ease;
	overflow: hidden;
}

.abw-news-card:hover {
	border-color: rgba(0, 229, 160, 0.3);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 229, 160, 0.06);
	transform: translateY(-2px);
}

/* === FEATURED / HERO ARTICLE === */
.abw-hero-post {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid rgba(0, 229, 160, 0.15);
}

.abw-hero-post::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 15, 0.95) 100%);
	z-index: 1;
	pointer-events: none;
}

/* === CATEGORY BADGE === */
.abw-category-badge a {
	display: inline-block;
	background-color: rgba(0, 229, 160, 0.12);
	color: var(--wp--preset--color--accent-1) !important;
	padding: 0.2em 0.75em;
	border-radius: 3px;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none !important;
	transition: background-color 0.2s ease;
}

.abw-category-badge a:hover {
	background-color: rgba(0, 229, 160, 0.25);
}

/* === BREAKING NEWS / LIVE BADGE === */
.abw-live-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--accent-7);
}

.abw-live-badge::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	background-color: var(--wp--preset--color--accent-7);
	border-radius: 50%;
	animation: abw-pulse 1.5s ease-in-out infinite;
}

@keyframes abw-pulse {
	0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 56, 100, 0.6); }
	50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(255, 56, 100, 0); }
}

/* === TICKER BAR === */
.abw-ticker {
	overflow: hidden;
	white-space: nowrap;
	background-color: var(--wp--preset--color--accent-5);
	border-bottom: 1px solid rgba(0, 229, 160, 0.1);
}

.abw-ticker-content {
	display: inline-block;
	animation: abw-scroll 30s linear infinite;
}

@keyframes abw-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* === HEADER STYLES === */
.abw-header {
	border-bottom: 1px solid rgba(0, 229, 160, 0.1);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	background-color: rgba(10, 10, 15, 0.85);
}

/* === SIDEBAR WIDGET === */
.abw-sidebar-section {
	background-color: var(--wp--preset--color--accent-5);
	border: 1px solid rgba(0, 229, 160, 0.1);
	border-radius: 8px;
	padding: var(--wp--preset--spacing--40);
}

.abw-sidebar-section-title {
	font-family: var(--wp--preset--font-family--ibm-plex-mono) !important;
	font-size: var(--wp--preset--font-size--small) !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.1em !important;
	color: var(--wp--preset--color--accent-1) !important;
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid rgba(0, 229, 160, 0.15);
	margin-bottom: var(--wp--preset--spacing--30) !important;
}

/* === FOOTER === */
.abw-footer {
	border-top: 1px solid rgba(0, 229, 160, 0.1);
}

.abw-footer-glow {
	background: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 160, 0.06) 0%, transparent 70%);
}

/* === GRID NEWS LAYOUT === */
.abw-news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: var(--wp--preset--spacing--40);
}

/* === DATE LABEL === */
.abw-date-label {
	font-family: var(--wp--preset--font-family--ibm-plex-mono);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--accent-4);
	letter-spacing: 0.04em;
}

/* === BACKGROUND GRID PATTERN === */
.abw-grid-bg {
	background-image:
		linear-gradient(rgba(0, 229, 160, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 229, 160, 0.03) 1px, transparent 1px);
	background-size: 60px 60px;
}

/* === SCROLL INDICATOR === */
.abw-scroll-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--accent-1), var(--wp--preset--color--accent-2));
	z-index: 9999;
	transition: width 0.1s ease;
}

/* === RESPONSIVE === */
@media (max-width: 781px) {
	.abw-news-grid {
		grid-template-columns: 1fr;
	}
}

/* === SELECTION COLOR === */
::selection {
	background-color: rgba(0, 229, 160, 0.25);
	color: var(--wp--preset--color--contrast);
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--wp--preset--color--base);
}

::-webkit-scrollbar-thumb {
	background: var(--wp--preset--color--accent-6);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 229, 160, 0.3);
}
