/*
Theme Name: Scaters UK
Author: Codex
Description: Custom theme for SCATERS UK - STAR RAPTOR CAMPAIGN
Version: 1.0.0
Text Domain: scaters
*/

:root {
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --cyan-900: #164e63;
    --slate-850: #1e293b;
    --slate-900: #0f172a;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: #f8fafc;
    color: #0f172a;
}

.scaters-hero-bg {
    background-image: url('assets/images/hero-telemetry.jpg');
}

.prose h2,
.prose .wp-block-heading h2 {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
}

.prose h3,
.prose .wp-block-heading h3 {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    color: #0f172a !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0.5rem !important;
}

.prose h4,
.prose .wp-block-heading h4 {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #0f172a !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.prose img,
.prose figure img {
    width: 520px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

.prose a {
    color: #0ea5e9;
    font-style: italic;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    color: #0284c7;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #06b6d4; }

/* Tech Panel (Glassmorphism + Cut Corners) */
.tech-panel {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(6, 182, 212, 0.3);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
    clip-path: polygon(
        15px 0, 100% 0,
        100% calc(100% - 15px), calc(100% - 15px) 100%,
        0 100%, 0 15px
    );
    transition: all 0.3s ease;
}

.tech-panel:hover {
    border-color: rgba(6, 182, 212, 0.6);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}

/* Tactical Button */
.btn-tactical {
    position: relative;
    background: linear-gradient(90deg, #06b6d4, #0891b2);
    color: white;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-tactical:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.btn-tactical::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-tactical:hover::before {
    left: 100%;
}

/* Glitch Effect Text */
.glitch-text:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: #06b6d4;
}
@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

/* Marker Animation */
.marker-ring {
    position: absolute;
    border: 2px solid #06b6d4;
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.33); opacity: 1; }
    80%, 100% { transform: scale(1.5); opacity: 0; }
}

/* Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Chatbot */
.chat-msg {
    animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Leaflet Styling for Tech Look */
.leaflet-container {
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
}
.leaflet-popup-content-wrapper {
    border-radius: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
    border: 1px solid #06b6d4;
}
.leaflet-popup-tip {
    background: #06b6d4;
}
.leaflet-tile-pane {
    filter: grayscale(100%) contrast(1.1) brightness(1.05);
}

.vertical-text {
    writing-mode: vertical-rl;
}

@keyframes scan {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(360px); opacity: 0.6; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Blog specific */
.blog-card img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0 4px;
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #0891b2;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.7);
}

.blog-pagination .page-numbers.current {
    background: #06b6d4;
    color: #fff;
    border-color: #06b6d4;
}

.blog-pagination .page-numbers:hover {
    background: #0891b2;
    color: #fff;
}
