/*
 Theme Name:   Astra Child - Dudios
 Theme URI:    https://wp.dudios.pl
 Description:  Customowy motyw potomny Astra - styl przemysłowy Hercu Pneumatic
 Author:       Dudios Team
 Template:     astra
 Version:      2.0.0
 Text Domain:  astra-child
*/

/* ===== Industrial color palette inspired by kret.pl ===== */
:root {
    --primary: #0a4da2;
    --primary-dark: #072983;
    --primary-light: #1e73be;
    --secondary: #f59e0b;
    --accent: #06b6d4;
    --success: #088307;
    --dark: #0c1829;
    --dark-blue: #0f2444;
    --light: #f0f4f8;
    --gray: #64748b;
    --white: #ffffff;
    --gradient-hero: linear-gradient(135deg, #072983 0%, #0a4da2 40%, #1e73be 100%);
    --gradient-card: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

/* ===== Global ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1e293b;
    line-height: 1.7;
    background: var(--light);
}

/* ===== Hero / Cover ===== */
.wp-block-cover {
    border-radius: 0;
    margin-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}

.wp-block-cover::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') repeat;
    z-index: 1;
    pointer-events: none;
}

.wp-block-cover .wp-block-cover__background {
    background: var(--gradient-hero) !important;
}

.wp-block-cover .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

.wp-block-cover h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 30px rgba(0,0,0,0.4);
    line-height: 1.15;
}

.wp-block-cover p {
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

/* ===== Separator / Accent bar ===== */
.wp-block-separator.has-css-opacity {
    border-color: var(--secondary) !important;
    border-width: 3px;
    width: 80px;
    margin: 1.5rem auto;
}

/* ===== Buttons ===== */
.wp-block-button__link {
    border-radius: 6px !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: uppercase !important;
    box-shadow: 0 4px 14px rgba(10, 77, 162, 0.3);
}

.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(10, 77, 162, 0.45);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    border-width: 2px !important;
    box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--white) !important;
    color: var(--primary) !important;
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

/* ===== Section headings ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
}

/* ===== Product cards ===== */
.product-grid .wp-block-column,
.wp-block-columns.product-cards .wp-block-column {
    background: var(--white);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 8px;
    border: 1px solid rgba(0,0,0,0.04);
}

.product-grid .wp-block-column:hover,
.wp-block-columns.product-cards .wp-block-column:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(10, 77, 162, 0.15), 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--primary-light);
}

/* ===== Category cards ===== */
.category-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 2rem !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(10, 77, 162, 0.08);
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-card:hover::after {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(10, 77, 162, 0.12);
}

/* ===== Stats / Numbers ===== */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
}

/* ===== Table styling ===== */
.wp-block-table table {
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.wp-block-table table thead {
    background: var(--gradient-hero);
    color: var(--white);
}

.wp-block-table table thead th {
    padding: 14px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
    border: none;
}

.wp-block-table table tbody tr {
    transition: background 0.2s;
}

.wp-block-table table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.wp-block-table table tbody tr:hover {
    background: #e0f2fe;
}

.wp-block-table table td {
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
}

/* ===== Images ===== */
.wp-block-image img {
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.wp-block-image:hover img {
    transform: scale(1.02);
}

/* ===== Columns general ===== */
.wp-block-columns .wp-block-column {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.wp-block-columns .wp-block-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* ===== Product listing in columns ===== */
.wp-block-columns .wp-block-column h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.wp-block-columns .wp-block-column h3 a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.wp-block-columns .wp-block-column h3 a:hover {
    color: var(--secondary);
}

/* ===== CTA banner ===== */
.wp-block-group.cta-banner {
    background: var(--gradient-hero);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wp-block-group.cta-banner * {
    color: var(--white);
}

/* ===== Badge / Label ===== */
.product-badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Links ===== */
a {
    color: var(--primary);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Header ===== */
.ast-primary-header-bar {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.site-title a {
    font-weight: 800 !important;
    color: var(--primary) !important;
    -webkit-text-fill-color: var(--primary) !important;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--dark) !important;
    color: #94a3b8;
    padding: 2rem 0;
}

/* ===== Blog posts ===== */
.ast-article-post {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.ast-article-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ===== Lists ===== */
.wp-block-list li {
    padding: 0.3rem 0;
}

.wp-block-list li strong {
    color: var(--primary);
}

/* ===== Smooth scroll & selection ===== */
html { scroll-behavior: smooth; }

::selection {
    background: var(--primary);
    color: white;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .wp-block-cover h1 { font-size: 28px !important; }
    .wp-block-columns .wp-block-column { margin: 0.5rem 0; padding: 1.5rem; }
    .stat-number { font-size: 2.2rem; }
}
