/*
Theme Name: Tactical 2A
Theme URI: https://2apatriotranch.com
Author: 2A Patriot Ranch
Author URI: https://2apatriotranch.com
Description: A tactical block theme featuring FDE, Olive Drab, and black military color scheme with full site editing capabilities.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tactical-2a
Tags: block-themes, full-site-editing, e-commerce, one-column, custom-colors, custom-menu, editor-style, featured-images, flexible-header, threaded-comments, translation-ready, wide-blocks
*/

/* ====================================
   GOOGLE FONTS IMPORT
   ==================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

/* ====================================
   GLOBAL STYLES & RESETS
   ==================================== */

* {
	box-sizing: border-box;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

/* ====================================
   TACTICAL HEADER STYLES
   ==================================== */

.wp-block-template-part.site-header,
.site-header {
	background: #1a1a1a;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.wp-block-group.site-header {
	padding-top: 15px;
	padding-bottom: 15px;
}

.wp-block-site-title a {
	color: #ffffff !important;
	text-decoration: none;
}

.wp-block-navigation__responsive-container.is-menu-open {
	background: #1a1a1a;
}

.wp-block-navigation .wp-block-navigation-item a {
	color: #ffffff;
	padding: 8px 16px;
	position: relative;
	transition: all 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 16px;
	right: 16px;
	height: 2px;
	background: #c4a672;
	transform: scaleX(0);
	transition: transform 0.3s ease;
}

.wp-block-navigation .wp-block-navigation-item a:hover::after,
.wp-block-navigation .wp-block-navigation-item.current-menu-item a::after {
	transform: scaleX(1);
}

/* ====================================
   TACTICAL BUTTON STYLES
   ==================================== */

.wp-block-button__link {
	padding: 15px 40px !important;
	transition: all 0.3s ease;
	border-radius: 0 !important;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 20px rgba(196, 166, 114, 0.4);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 2px;
}

/* ====================================
   HERO / COVER BLOCK STYLES
   ==================================== */

.wp-block-cover.tactical-hero {
	min-height: 85vh;
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	position: relative;
}

.wp-block-cover.tactical-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="%231a1a1a"/><path d="M0 0L50 50M50 0L100 50M0 50L50 100M50 50L100 100" stroke="%236b7c3f" stroke-width="0.5" opacity="0.1"/></svg>');
	background-size: 100px 100px;
	opacity: 0.3;
	pointer-events: none;
}

/* ====================================
   TACTICAL SECTION STYLES
   ==================================== */

.tactical-section {
	padding: 80px 20px;
}

.tactical-section-dark {
	background: #1a1a1a;
	color: #ffffff;
}

.tactical-section-light {
	background: #f5f5f5;
}

.tactical-section-olive {
	background: linear-gradient(135deg, #6b7c3f 0%, #5a6e3c 100%);
	color: #ffffff;
}

/* ====================================
   PRODUCT / ECOMMERCE STYLES
   ==================================== */

.woocommerce ul.products li.product {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	transition: all 0.3s ease;
}

.woocommerce ul.products li.product:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product .price {
	color: #c4a672;
	font-weight: 700;
	font-size: 1.3rem;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: #c4a672 !important;
	color: #1a1a1a !important;
	font-family: 'Oswald', sans-serif !important;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700 !important;
	border: none !important;
	padding: 12px 30px !important;
	transition: all 0.3s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: #a4946a !important;
	color: #1a1a1a !important;
}

.woocommerce .star-rating span::before,
.woocommerce p.stars a::before {
	color: #c4a672;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: #c4a672;
}

/* ====================================
   FOOTER STYLES
   ==================================== */

.site-footer {
	background: #0d0d0d;
	color: #b0b0b0;
	padding: 60px 20px 30px;
}

.site-footer a {
	color: #b0b0b0;
	transition: color 0.3s ease;
}

.site-footer a:hover {
	color: #c4a672;
}

.footer-section h2,
.footer-section h3 {
	color: #ffffff;
	margin-bottom: 1.5rem;
}

/* ====================================
   TACTICAL CARDS
   ==================================== */

.tactical-card {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	overflow: hidden;
	transition: all 0.3s ease;
}

.tactical-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tactical-card img {
	transition: transform 0.3s ease;
}

.tactical-card:hover img {
	transform: scale(1.1);
}

/* ====================================
   VIDEO EMBEDS
   ==================================== */

.wp-block-embed.is-type-video {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ====================================
   QUERY LOOP / BLOG STYLES
   ==================================== */

.wp-block-post {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.wp-block-post:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.wp-block-post-featured-image img {
	transition: transform 0.3s ease;
}

.wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.05);
}

.wp-block-post-date,
.wp-block-post-author__name {
	color: #666;
	font-size: 0.875rem;
}

/* ====================================
   RESPONSIVE ADJUSTMENTS
   ==================================== */

@media (max-width: 781px) {
	.tactical-section {
		padding: 50px 20px;
	}
	
	.wp-block-cover.tactical-hero {
		min-height: 60vh;
	}
}

/* ====================================
   UTILITY CLASSES
   ==================================== */

.text-center {
	text-align: center;
}

.tactical-pattern {
	position: relative;
}

.tactical-pattern::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0L50 50M50 0L100 50M0 50L50 100M50 50L100 100" stroke="%236b7c3f" stroke-width="0.5" opacity="0.1"/></svg>');
	background-size: 100px 100px;
	opacity: 0.2;
	pointer-events: none;
}

/* ====================================
   BLOCK EDITOR STYLES
   ==================================== */

.editor-styles-wrapper {
	background: #ffffff;
}

.editor-styles-wrapper .wp-block {
	max-width: 900px;
}

/* ====================================
   ANIMATIONS
   ==================================== */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in-up {
	animation: fadeInUp 0.6s ease-out;
}
