/**
 * MIDASCODE - Stylizacje CSS (Czarno-Złoty Motyw Premium)
 * 
 * @author    midascode.pl <kontakt@midascode.pl>
 * @copyright 2026 midascode.pl. Wszelkie prawa zastrzeżone.
 * @link      https://midascode.pl
 * @version   1.0
 */

/* 1. Zmienne globalne i Reset */
:root {
    --bg-primary: #0a1931; /* Deep royal blue background */
    --bg-secondary: #15305b; /* Card background */
    --bg-tertiary: #1d3e75; /* Active state / input background */
    --gold-primary: #f97316; /* Orange accent */
    --gold-light: #ffedd5;
    --gold-dark: #ea580c;
    --gold-gradient: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fdba74 100%);
    --gold-glow: 0 0 20px rgba(249, 115, 22, 0.2);
    --gold-glow-strong: 0 0 35px rgba(249, 115, 22, 0.4);
    
    --text-main: #f8fafc; /* Light blue-white text */
    --text-muted: #94a3b8;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(249, 115, 22, 0.2);
    
    --glass-bg: rgba(21, 48, 91, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-gold: rgba(249, 115, 22, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* 2. Typografia i Klasy Użytkowe */
.text-gradient-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-glow-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.gold-glow-hover:hover {
    box-shadow: var(--gold-glow);
    border-color: var(--gold-primary);
    transform: translateY(-4px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border: 2px solid var(--bg-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Navbar */
.nav-blur {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Hero Section */
.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(5, 5, 5, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Szklane Karty (Glassmorphism) */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--gold-glow);
    transform: translateY(-5px);
}

/* Przyciski Premium */
.btn-gold {
    background: var(--gold-gradient);
    color: #050505;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-gold::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: all 0.6s ease;
}

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

.btn-gold:hover {
    box-shadow: var(--gold-glow-strong);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid var(--gold-primary);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--gold-gradient);
    color: #050505;
    box-shadow: var(--gold-glow);
    border-color: transparent;
}

/* Modale */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Pola tekstowe i formularze */
.input-gold {
    background: rgba(13, 13, 13, 0.8);
    border: 1px solid var(--border-subtle);
    color: #ffffff;
    transition: all 0.3s ease;
}

.input-gold:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
    outline: none;
}

/* Animacje Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Etykiety i Badge */
.badge-gold {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
}

/* Stopka */
footer {
    background-color: var(--bg-tertiary) !important;
    border-top: 1px solid var(--border-subtle);
}

/* ========================================================================= */
/* GLOBAL ROYAL BLUE & ORANGE THEME OVERRIDES FOR INLINE TAILWIND */
/* ========================================================================= */
body {
    background-color: #0a1931 !important;
    color: #f8fafc !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
}

/* Force deep royal blue backgrounds for elements to make the layout fully uniform */
.bg-black, .bg-slate-950, .bg-slate-900, .bg-slate-800, .bg-slate-850, .bg-slate-955, .bg-slate-900\/50, .bg-slate-900\/40, .glass-card, .modal-content {
    background-color: #0a1931 !important;
    background: #0a1931 !important;
    color: #f8fafc !important;
}

/* Force dark royal blue backgrounds for main blocks, sections and backgrounds */
body, main, section, .hero-glow {
    background-color: #0a1931 !important;
}

/* Header, navigation bar and mobile layouts */
.nav-blur {
    background: rgba(10, 25, 49, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Subtle white/blue borders */
.border-white\/5, .border-white\/10, .border-subtle, .border-slate-800 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Override text colors to ensure perfect readability on dark blue background */
.text-white, .text-slate-100, .text-slate-200, .text-slate-300 {
    color: #f8fafc !important;
}
.text-slate-400, .text-slate-500 {
    color: #94a3b8 !important;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fdba74 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.btn-gold {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fdba74 100%) !important;
    color: #ffffff !important;
}

.btn-outline {
    color: #f97316 !important;
    border-color: #f97316 !important;
}
.btn-outline:hover {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fdba74 100%) !important;
    color: #ffffff !important;
}

.badge-gold {
    background: rgba(249, 115, 22, 0.15) !important;
    border-color: rgba(249, 115, 22, 0.25) !important;
    color: #f97316 !important;
}

.input-gold {
    background: #0d1f3d !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}
.input-gold:focus {
    border-color: #f97316 !important;
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.2) !important;
}

/* Status badges overrides */
.bg-emerald-950 {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}
.text-emerald-400 {
    color: #34d399 !important;
}
.border-emerald-800 {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.bg-amber-950 {
    background-color: rgba(249, 115, 22, 0.15) !important;
    border-color: rgba(249, 115, 22, 0.3) !important;
}
.text-amber-400 {
    color: #fb923c !important;
}
.border-amber-800 {
    border-color: rgba(249, 115, 22, 0.3) !important;
}

.bg-slate-955 {
    background-color: #0d1f3d !important;
}

.bg-slate-950 {
    background-color: #0a1931 !important;
}

.bg-slate-900\/50, .bg-slate-900\/40 {
    background-color: #0a1931 !important;
}

/* Modal overlays */
.modal-overlay {
    background: rgba(5, 10, 20, 0.8) !important;
}
.modal-content {
    background-color: #0a1931 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

/* Navigation items */
nav a {
    color: #94a3b8 !important;
}
nav a:hover, nav a.text-white {
    color: #f97316 !important;
}

/* Scrollbar track */
::-webkit-scrollbar-track {
    background: #0a1931 !important;
}
::-webkit-scrollbar-thumb {
    background: #15305b !important;
    border: 2px solid #0a1931 !important;
}
::-webkit-scrollbar-thumb:hover {
    background: #f97316 !important;
}

/* Przycisk aktywny w menu */
nav a.border-amber-500, nav a.bg-amber-500\/10 {
    color: #f97316 !important;
}

/* Animacje pływających ikon programistycznych w Hero */
@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-7px) scale(1.03); }
}
.animate-float-slow {
    animation: float-slow 7s ease-in-out infinite;
}
.animate-float-medium {
    animation: float-medium 5s ease-in-out infinite;
}
.animate-float-fast {
    animation: float-fast 4s ease-in-out infinite;
}
.float-icon {
    transition: filter 0.3s ease;
}
.float-icon:hover {
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.4));
}
