/*
Theme Name: DogCarrier
Theme URI: https://dog-carrier.de
Author: DogCarrier e.K.
Author URI: https://dog-carrier.de
Description: Premium WordPress Theme for DogCarrier - Das neue Mantel-Prinzip
Version: 1.0.0
License: Private
Text Domain: dogcarrier
*/

/* ========================================
   CSS VARIABLES (DogCarrier Color System)
   ======================================== */
:root {
    --brand-red-rgb: 248 74 77;
    --brand-charcoal-rgb: 90 131 220;
    --brand-beige-rgb: 255 246 237;
    --brand-beige-dark-rgb: 243 226 211;
    --brand-white-rgb: 255 255 255;
    --brand-sunset-rgb: 248 74 77;
    --brand-wisteria-rgb: 10 37 120;
}

/* ========================================
   BASE STYLES
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: rgb(var(--brand-beige-rgb));
    color: rgb(var(--brand-charcoal-rgb));
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body ::selection {
    background-color: rgb(var(--brand-red-rgb));
    color: white;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.font-display {
    font-family: 'DM Sans', sans-serif;
}

/* Hero Subtitle - Custom Class */
.hero-subtitle {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.625;
    font-weight: 400;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    color: rgb(var(--brand-wisteria-rgb)) !important;
    transition: color 0.3s ease;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
/* Brand Colors as Tailwind-style utilities */
.bg-brandRed {
    background-color: rgb(var(--brand-red-rgb));
}

.bg-brandCharcoal {
    background-color: rgb(var(--brand-charcoal-rgb));
}

.bg-brandBeige {
    background-color: rgb(var(--brand-beige-rgb));
}

.bg-brandBeigeDark {
    background-color: rgb(var(--brand-beige-dark-rgb));
}

.bg-brandWhite {
    background-color: rgb(var(--brand-white-rgb));
}

.bg-brandSunset {
    background-color: rgb(var(--brand-sunset-rgb));
}

.bg-brandWisteria {
    background-color: rgb(var(--brand-wisteria-rgb));
}

.text-brandRed {
    color: rgb(var(--brand-red-rgb));
}

.text-brandCharcoal {
    color: rgb(var(--brand-charcoal-rgb));
}

.text-brandBeige {
    color: rgb(var(--brand-beige-rgb));
}

.text-brandBeigeDark {
    color: rgb(var(--brand-beige-dark-rgb));
}

.text-brandWhite {
    color: rgb(var(--brand-white-rgb));
}

.text-brandSunset {
    color: rgb(var(--brand-sunset-rgb));
}

.text-brandWisteria {
    color: rgb(var(--brand-wisteria-rgb));
}

.border-brandRed {
    border-color: rgb(var(--brand-red-rgb));
}

.border-brandCharcoal {
    border-color: rgb(var(--brand-charcoal-rgb));
}

.border-brandBeige {
    border-color: rgb(var(--brand-beige-rgb));
}

.border-brandBeigeDark {
    border-color: rgb(var(--brand-beige-dark-rgb));
}

.border-brandWhite {
    border-color: rgb(var(--brand-white-rgb));
}

.border-brandSunset {
    border-color: rgb(var(--brand-sunset-rgb));
}

.border-brandWisteria {
    border-color: rgb(var(--brand-wisteria-rgb));
}

/* Hover States */
.hover\:bg-brandRed\/90:hover {
    background-color: rgba(var(--brand-red-rgb), 0.9);
}

.hover\:bg-brandCharcoal\/90:hover {
    background-color: rgba(var(--brand-charcoal-rgb), 0.9);
}

.hover\:bg-brandCharcoal\/95:hover {
    background-color: rgba(var(--brand-charcoal-rgb), 0.95);
}

.hover\:bg-brandBeigeDark:hover {
    background-color: rgb(var(--brand-beige-dark-rgb));
}

.hover\:bg-brandRed:hover {
    background-color: rgb(var(--brand-red-rgb));
}

.hover\:text-brandRed:hover {
    color: rgb(var(--brand-red-rgb));
}

.hover\:text-brandSunset:hover {
    color: rgb(var(--brand-sunset-rgb));
}

.hover\:border-brandRed:hover {
    border-color: rgb(var(--brand-red-rgb));
}

.hover\:shadow-brandRed\/30:hover {
    --tw-shadow-color: rgba(var(--brand-red-rgb), 0.3);
    --tw-shadow: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

/* Selection States */
.selection\:bg-brandRed ::selection {
    background-color: rgb(var(--brand-red-rgb));
}

.selection\:text-white ::selection {
    color: white;
}

/* Opacity Variants */
.text-brandCharcoal\/70 {
    color: rgba(var(--brand-charcoal-rgb), 0.7);
}

.bg-brandCharcoal\/90 {
    background-color: rgba(var(--brand-charcoal-rgb), 0.9);
}

.bg-brandCharcoal\/95 {
    background-color: rgba(var(--brand-charcoal-rgb), 0.95);
}

.bg-brandRed\/10 {
    background-color: rgba(var(--brand-red-rgb), 0.1);
}

.bg-brandRed\/20 {
    background-color: rgba(var(--brand-red-rgb), 0.2);
}

.bg-brandRed\/30 {
    background-color: rgba(var(--brand-red-rgb), 0.3);
}

.bg-brandBeige\/50 {
    background-color: rgba(var(--brand-beige-rgb), 0.5);
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.text-white\/60 {
    color: rgba(255, 255, 255, 0.6);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-brandRed\/80 {
    color: rgba(var(--brand-red-rgb), 0.8);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.border-brandRed\/20 {
    border-color: rgba(var(--brand-red-rgb), 0.2);
}

.bg-brandWhite\/95 {
    background-color: rgba(var(--brand-white-rgb), 0.95);
}

.text-brandWhite\/40 {
    color: rgba(var(--brand-white-rgb), 0.4);
}

.text-brandWhite\/50 {
    color: rgba(var(--brand-white-rgb), 0.5);
}

.text-brandWhite\/60 {
    color: rgba(var(--brand-white-rgb), 0.6);
}

.text-brandWhite\/80 {
    color: rgba(var(--brand-white-rgb), 0.8);
}

.border-brandBeigeDark\/60 {
    border-color: rgba(var(--brand-beige-dark-rgb), 0.6);
}

.border-brandBeigeDark\/80 {
    border-color: rgba(var(--brand-beige-dark-rgb), 0.8);
}

.text-brandBeigeDark\/60 {
    color: rgba(var(--brand-beige-dark-rgb), 0.6);
}

.shadow-brandCharcoal\/10 {
    --tw-shadow-color: rgba(var(--brand-charcoal-rgb), 0.1);
    box-shadow: 0 25px 50px -12px var(--tw-shadow-color);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.aspect-\[16\/9\] {
    aspect-ratio: 16 / 9;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.scale-105 {
    transform: scale(1.05);
}

.list-none {
    list-style: none;
}

/* Focus States */
.focus\:outline-none:focus {
    outline: none;
}

.focus\:border-brandRed:focus {
    border-color: rgb(var(--brand-red-rgb));
}

/* ========================================
   COMPONENT STYLES
   ======================================== */

/* Step Cards */
.step-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
    transform: translateY(-8px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgb(var(--brand-beige-rgb));
}

::-webkit-scrollbar-thumb {
    background: rgb(var(--brand-charcoal-rgb));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--brand-red-rgb));
}

/* Video Player */
.video-container {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background: black;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.2s;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.75rem;
    background: rgb(var(--brand-beige-dark-rgb));
    border-radius: 0.5rem;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: rgb(var(--brand-red-rgb));
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    background: rgb(var(--brand-red-rgb));
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Designer Panel */
#designerPanel {
    transition: transform 0.3s ease-in-out;
}

/* Toast Notification */
.dc-toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: rgb(var(--brand-charcoal-rgb));
    color: rgb(var(--brand-white-rgb));
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 24rem;
    border-left: 4px solid rgb(var(--brand-red-rgb));
    animation: bounce 0.5s ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ========================================
   GRADIENTS
   ======================================== */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-brandWhite {
    --tw-gradient-from: rgb(var(--brand-white-rgb)) var(--tw-gradient-from-position);
    --tw-gradient-to: rgba(var(--brand-white-rgb), 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-brandBeige {
    --tw-gradient-to: rgb(var(--brand-beige-rgb)) var(--tw-gradient-to-position);
}

/* ========================================
   PROSE CONTENT (Page/Post Content)
   ======================================== */
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: rgb(var(--brand-charcoal-rgb));
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h1 {
    font-size: 2.25rem;
    line-height: 1.2;
}

.prose h2 {
    font-size: 1.875rem;
    line-height: 1.3;
    border-bottom: 2px solid rgba(var(--brand-red-rgb), 0.2);
    padding-bottom: 0.5rem;
}

.prose h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

.prose p {
    color: rgb(var(--brand-wisteria-rgb));
    line-height: 1.7;
    margin-bottom: 1rem;
}

.prose a {
    color: rgb(var(--brand-red-rgb));
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.prose a:hover {
    text-decoration: underline;
}

.prose ul, .prose ol {
    color: rgb(var(--brand-wisteria-rgb));
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ul li::marker {
    color: rgb(var(--brand-red-rgb));
}

.prose ol {
    list-style-type: decimal;
}

.prose ol li::marker {
    color: rgb(var(--brand-red-rgb));
    font-weight: 600;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose strong, .prose b {
    color: rgb(var(--brand-charcoal-rgb));
    font-weight: 700;
}

.prose blockquote {
    border-left: 4px solid rgb(var(--brand-red-rgb));
    background-color: rgb(var(--brand-beige-rgb));
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}

.prose blockquote p {
    margin-bottom: 0;
}

.prose img {
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.prose th {
    background-color: rgb(var(--brand-charcoal-rgb));
    color: white;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
}

.prose td {
    padding: 0.75rem;
    border-bottom: 1px solid rgb(var(--brand-beige-dark-rgb));
    color: rgb(var(--brand-wisteria-rgb));
}

.prose tr:nth-child(even) {
    background-color: rgba(var(--brand-beige-rgb), 0.5);
}

.prose hr {
    border: none;
    border-top: 2px solid rgba(var(--brand-red-rgb), 0.3);
    margin: 2rem 0;
}

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Admin Bar compensation */
body.admin-bar .sticky-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .sticky-header {
        top: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .step-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   Blog Page - Hide English Elements
   ========================================================================== */

/* Hide categories widget on blog page */
.blog .widget_categories,
.blog .widget.widget_categories,
.archive .widget_categories,
.home .widget_categories {
    display: none !important;
}

/* Hide any remaining English navigation in footer on blog */
.blog footer nav a[href*="imprint"],
.blog footer nav a[href*="shipping"] {
    display: none !important;
}

/* Hide all sidebars and widgets on blog page to prevent English content */
.blog .sidebar,
.blog #sidebar,
.blog [class*="sidebar"],
.blog aside,
.blog .widget-area,
.blog .widget {
    display: none !important;
}

/* Hide English footer menu items by text content */
.blog footer a:where([href*="imprint"], [href*="shipping"], [href*="privacy"]) {
    display: none !important;
}

/* ==========================================================================
   Blog Archive Grid
   ========================================================================== */

.dc-blog-card {
    display: flex;
    flex-direction: column;
}

.dc-blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--brand-red-rgb), 0.3);
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.35rem;
    margin-top: 3rem;
    padding: 1rem;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.5rem;
    border-radius: 0.75rem;
    border: 2px solid rgb(var(--brand-beige-dark-rgb));
    color: rgb(var(--brand-charcoal-rgb));
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgb(var(--brand-white-rgb));
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(var(--brand-charcoal-rgb), 0.04);
}

.nav-links .page-numbers:hover {
    border-color: rgb(var(--brand-charcoal-rgb) / 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--brand-charcoal-rgb), 0.1);
}

.nav-links .page-numbers.current {
    background: rgb(var(--brand-red-rgb));
    border-color: rgb(var(--brand-red-rgb));
    color: rgb(var(--brand-white-rgb));
    box-shadow: 0 4px 12px rgba(var(--brand-red-rgb), 0.25);
}

.nav-links .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    color: rgb(var(--brand-charcoal-rgb) / 0.5);
    cursor: default;
    min-width: auto;
    padding: 0 0.25rem;
}

.nav-links .page-numbers.prev,
.nav-links .page-numbers.next {
    min-width: 3rem;
    font-size: 0.85rem;
    background: rgb(var(--brand-beige-rgb));
}

.nav-links .page-numbers.prev:hover,
.nav-links .page-numbers.next:hover {
    background: rgb(var(--brand-charcoal-rgb));
    border-color: rgb(var(--brand-charcoal-rgb));
    color: rgb(var(--brand-white-rgb));
}

/* ==========================================================================
   Hide floating language switchers (TranslatePress, WPML, etc.)
   ========================================================================== */

#language-switcher,
.language-switcher,
.lang-switcher,
.wpml-ls-legacy-dropdown,
.wpml-ls-legacy-dropdown-click,
.wpml-ls-legacy-list-horizontal,
.wpml-ls-legacy-list-vertical,
.wpml-ls-widget,
.polylang-switcher,
.pll-switcher,
.weglot-switcher,
.weglot-widget,
#trp-floating-switcher,
nav.trp-language-switcher,
nav.trp-floating-switcher,
.trp-language-switcher,
.trp-floating-switcher,
.trp-floater,
.trp-language-switcher-container,
.trp-language-switcher-inner,
.trp-ls-shortcode-current-language,
.trp-ls-shortcode-language,
body > div[class*="trp"],
body > nav[class*="trp"],
nav[aria-label="Website language selector"],
#trp-floater-ls-current-language,
#trp-floater-ls-language-list {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    left: -99999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}
