/* ============================================================
   LACABANEDEKIDDY.COM — Local Stylesheet
   Replaces: cdn.tailwindcss.com + fonts.googleapis.com
   ============================================================ */

/* ---------- Poppins Local Font ---------- */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/fonts/poppins-300.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/poppins-700.woff2') format('woff2');
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

/* ---------- Design Tokens ---------- */
:root {
    --primary-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --accent-gradient: linear-gradient(90deg, #00d2ff 0%, #9d50bb 100%);
    --bg-dark: #0b0e14;
    --card-bg: rgba(22, 27, 34, 0.7);
    --border-color: rgba(48, 54, 61, 0.8);
    --text-primary: #e2e8f0;
    --text-accent: #00d2ff;
}

/* ---------- Layout Utilities ---------- */
.container    { width: 100%; padding-left: 1rem; padding-right: 1rem; margin-left: auto; margin-right: auto; }
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.mx-auto    { margin-left: auto; margin-right: auto; }
.my-12      { margin-top: 3rem; margin-bottom: 3rem; }
.mb-2       { margin-bottom: 0.5rem; }
.mb-4       { margin-bottom: 1rem; }
.mb-6       { margin-bottom: 1.5rem; }
.mb-8       { margin-bottom: 2rem; }
.mb-10      { margin-bottom: 2.5rem; }
.mb-12      { margin-bottom: 3rem; }
.mb-16      { margin-bottom: 4rem; }
.mt-1       { margin-top: 0.25rem; }
.mt-4       { margin-top: 1rem; }
.mr-1       { margin-right: 0.25rem; }
.pt-4       { padding-top: 1rem; }
.pt-8       { padding-top: 2rem; }
.pb-4       { padding-bottom: 1rem; }

/* Padding */
.p-4        { padding: 1rem; }
.p-6        { padding: 1.5rem; }
.p-8        { padding: 2rem; }
.px-2       { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4       { padding-left: 1rem; padding-right: 1rem; }
.px-10      { padding-left: 2.5rem; padding-right: 2.5rem; }
.py-1       { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-3       { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4       { padding-top: 1rem; padding-bottom: 1rem; }
.py-8       { padding-top: 2rem; padding-bottom: 2rem; }
.py-12      { padding-top: 3rem; padding-bottom: 3rem; }
.pl-6       { padding-left: 1.5rem; }

/* ---------- Flexbox ---------- */
.flex             { display: flex; }
.inline-block     { display: inline-block; }
.inline-flex      { display: inline-flex; }
.flex-col         { flex-direction: column; }
.flex-wrap        { flex-wrap: wrap; }
.items-center     { align-items: center; }
.items-start      { align-items: flex-start; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }
.space-x-4  > * + * { margin-left: 1rem; }
.space-x-6  > * + * { margin-left: 1.5rem; }
.space-y-2  > * + * { margin-top: 0.5rem; }
.space-y-3  > * + * { margin-top: 0.75rem; }
.space-y-8  > * + * { margin-top: 2rem; }
.gap-6      { gap: 1.5rem; }
.gap-8      { gap: 2rem; }

/* ---------- Grid ---------- */
.grid                { display: grid; }
.grid-cols-1         { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px)  {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px)  {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex        { display: flex; }
    .md\:hidden      { display: none; }
    .md\:p-12        { padding: 3rem; }
    .md\:text-2xl    { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-3xl    { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-5xl    { font-size: 3rem; line-height: 1; }
    .md\:text-9xl    { font-size: 8rem; line-height: 1; }
    .md\:text-xl     { font-size: 1.25rem; line-height: 1.75rem; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .md\:hidden-show { display: block; }
    .hidden           { display: none; }
}
.hidden { display: none; }

/* ---------- Position ---------- */
.sticky   { position: sticky; }
.fixed    { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0; }
.top-5    { top: 1.25rem; }
.right-5  { right: 1.25rem; }
.bottom-0 { bottom: 0; }
.left-0   { left: 0; }
.z-50     { z-index: 50; }
.z-\[60\] { z-index: 60; }

/* ---------- Sizing ---------- */
.w-full   { width: 100%; }
.w-5      { width: 1.25rem; }
.w-7      { width: 1.75rem; }
.w-8      { width: 2rem; }
.w-12     { width: 3rem; }
.h-5      { height: 1.25rem; }
.h-7      { height: 1.75rem; }
.h-8      { height: 2rem; }
.h-12     { height: 3rem; }
.max-w-lg   { max-width: 32rem; }
.max-w-2xl  { max-width: 42rem; }
.max-w-4xl  { max-width: 56rem; }
.max-w-none { max-width: none; }
.min-h-\[70vh\] { min-height: 70vh; }

/* ---------- Typography ---------- */
.text-xs    { font-size: 0.75rem;  line-height: 1rem; }
.text-sm    { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg    { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl    { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl   { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl   { font-size: 1.875rem; line-height: 2.25rem; }
.text-8xl   { font-size: 6rem;     line-height: 1; }
.text-\[10px\] { font-size: 10px; }

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-wide   { letter-spacing: 0.025em; }
.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.uppercase  { text-transform: uppercase; }
.underline  { text-decoration: underline; }
.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ---------- Colors ---------- */
.text-white   { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-600 { color: #4b5563; }

/* ---------- Backgrounds ---------- */
.bg-\[\#0b0e14\]   { background-color: #0b0e14; }
.bg-\[\#0d1117\]   { background-color: #0d1117; }
.bg-\[\#161b22\]   { background-color: #161b22; }
.bg-red-600        { background-color: #dc2626; }
.bg-red-700        { background-color: #b91c1c; }
.bg-red-600:hover  { background-color: #dc2626; }
.hover\:bg-red-700:hover { background-color: #b91c1c; }

/* ---------- Borders ---------- */
.rounded     { border-radius: 0.25rem; }
.rounded-lg  { border-radius: 0.5rem; }
.rounded-xl  { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.border      { border-width: 1px; border-style: solid; }
.border-t    { border-top-width: 1px; border-top-style: solid; }
.border-b    { border-bottom-width: 1px; border-bottom-style: solid; }
.border-\[\#30363d\] { border-color: #30363d; }

/* ---------- Shadows / Effects ---------- */
.shadow-xl   { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }
.shadow-2xl  { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.shadow-lg   { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.opacity-70  { opacity: 0.7; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer  { cursor: pointer; }
.focus\:outline-none:focus { outline: none; }

/* ---------- Transition ---------- */
.transition         { transition-property: color, background-color, border-color, transform, opacity, box-shadow, filter; transition-duration: 150ms; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.duration-300       { transition-duration: 300ms; }

/* ---------- Object Fit ---------- */
.object-contain { object-fit: contain; }
.object-cover   { object-fit: cover; }

/* ---------- List ---------- */
.list-disc { list-style-type: disc; }
.space-y-3 > * + * { margin-top: 0.75rem; }

/* ---------- Prose (article body) ---------- */
.prose { color: var(--text-primary); font-size: 1rem; line-height: 1.75; }
.prose-invert { color: var(--text-primary); }
.prose h2 { color: var(--text-primary); font-size: 1.5rem; font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; }
.prose p  { margin-bottom: 1rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a  { color: var(--text-accent); }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5rem 0; background: var(--card-bg); border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }
.prose th, .prose td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
.prose th { background: rgba(28,33,40,0.9); color: var(--text-accent); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }

/* ---------- Inline colour overrides (used directly in HTML) ---------- */
.text-\[\#00d2ff\]         { color: #00d2ff; }
.text-\[\#9d50bb\]         { color: #9d50bb; }
.text-\[\#3a7bd5\]         { color: #3a7bd5; }
.hover\:text-\[\#00d2ff\]:hover { color: #00d2ff; }
.bg-\[\#161b22\]           { background-color: #161b22; }
.border-\[\#30363d\]       { border-color: #30363d; }
.border-\[\#30363d\]\/80   { border-color: rgba(48,54,61,0.8); }

/* md:flex override */
@media (min-width: 768px) {
    .md\:flex  { display: flex !important; }
    .md\:hidden { display: none !important; }
}
/* Mobile: show hamburger, hide desktop nav */
@media (max-width: 767px) {
    .hidden { display: none; }
    .md\:flex { display: none; }
    .md\:hidden { display: block; }
}

/* ---------- Image Fixes ---------- */
/* Casino partner logos — не растягивать */
.card-bg img {
    height: auto;
    max-height: 60px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

/* Article / inline content images — только авто высота */
article img,
.prose img {
    height: auto;
    max-width: 100%;
}

/* Flag icon in nav — не растягивать */
header img,
#mobile-menu img {
    display: inline;
    width: auto;
    height: auto;
    max-width: none;
}

/* Lang switcher link */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 2px;
    border-radius: 4px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.lang-switcher img {
    width: 28px !important;
    height: 28px !important;
    display: block;
    object-fit: contain;
}
.lang-switcher:hover {
    border-color: #00d2ff;
    background: rgba(0, 210, 255, 0.08);
}

/* ================== UI Polish Additions ================== */
/* Hero: stronger overlay and subtle gradient edges */
.hero-section-bg {
    position: relative;
}
.hero-section-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,14,20,0.55) 0%, rgba(11,14,20,0.92) 100%);
    pointer-events: none;
}
.hero-section-bg > .container { position: relative; z-index: 1; }

/* Media figure styles for images inside content */
.media-figure {
    display: block;
    margin: 2.5rem auto;
    max-width: 1100px;
}
.media-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}
.media-figure.center { text-align: center; }
.media-figure.right  { text-align: right; }

/* Content images: do not upscale too much on very large screens */
.content-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Offer grid: equal card height */
.offer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .offer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px){ .offer-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.offer-card { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.offer-card .btn-primary { width: 100%; }

/* FAQ accordion polish */
.faq-accordion details { overflow: hidden; }
.faq-accordion summary { user-select: none; }

/* Hero split layout: text + contained illustration (no stretch) */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.hero-copy { flex: 1 1 0%; text-align: left; }
.hero-illustration {
    flex: 1 1 0%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(180deg, #ffffff 78%, #f3f6fa 100%); /* light background for dark logos */
    border: 1px solid #e5e7eb; /* light border to match light card */
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
    overflow: hidden;
    padding: 16px;
}
.hero-illustration img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .hero-split { flex-direction: column; text-align: center; }
    .hero-copy { text-align: center; }
}

/* Content split layout: text with a smaller image aside */
.content-split {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.content-copy { flex: 1 1 0%; }
.content-illustration {
    flex: 0 0 420px;
    max-width: 420px;
}
.content-illustration img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 35px rgba(0,0,0,0.3);
}
@media (max-width: 1023px) {
    .content-split { flex-direction: column; }
    .content-illustration { flex: 1 1 auto; max-width: 100%; }
}
