/*
Theme Name: SK MOTORI
Theme URI: https://sk-motori.hr
Author: SK MOTORI Development
Description: Vrhunska, brza i moderno dizajnirana WordPress tema specijalizirana isključivo za prodaju i prezentaciju motocikala (motorna vozila na dva kotača). Sadrži namjenski Custom Post Type "motor" s kompletnim backend upravljanjem (Kilometri, Radni obujam, Snaga motora, Godište, Cijena, Galerija).
Version: 1.2.1
License: GNU General Public License v2 or later
Text Domain: sk-motori
*/

:root {
    --color-background: #0d0f11;
    --color-surface: #15181b;
    --color-surface-low: #101214;
    --color-surface-high: #1e2226;
    --color-primary: #e61e2b;
    --color-primary-hover: #ff2b39;
    --color-on-surface: #e5e7eb;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Styles & Resets */
html, body {
    background-color: #0d0f11 !important;
    color: #e5e7eb !important;
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent any image or SVG from ever blowing up */
img, svg {
    max-width: 100%;
    height: auto;
}

svg#sk-motori-logo,
.sk-logo,
header a svg,
aside a img {
    height: 34px !important;
    max-height: 36px !important;
    width: auto !important;
    max-width: 160px !important;
    display: inline-block !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #e61e2b;
}

/* Island Header Fallback CSS */
header.fixed {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 50;
    pointer-events: none;
    padding: 0 16px;
}

header.fixed nav {
    pointer-events: auto;
    background-color: rgba(13, 15, 17, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* Sided Menu Fallback CSS */
#sk-sided-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#sk-sided-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background-color: #0d0f11;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-transform: uppercase;
    color: #ffffff;
    margin-top: 0;
}

/* Glass panel effect */
.glass-panel {
    background: rgba(21, 24, 27, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Custom Select styling matching theme */
.custom-select-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e61e2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px !important;
}

/* Motorcycle Card Hover */
.motor-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.motor-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 30, 43, 0.4);
    box-shadow: 0 20px 35px -10px rgba(230, 30, 43, 0.15);
}

/* Sticky Call Button */
.sticky-call-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background-color: #e61e2b;
    color: #ffffff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(230, 30, 43, 0.45);
    z-index: 9999;
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.sticky-call-btn:hover {
    transform: scale(1.08);
    background-color: #ff2b39;
}
@media (max-width: 640px) {
    .sticky-call-btn {
        bottom: 18px;
        right: 18px;
        width: 44px;
        height: 44px;
    }
    .sticky-call-btn svg {
        width: 20px;
        height: 20px;
    }
}
