/* Base styles for toyli.pl */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* Mobile navigation - force show on mobile */
@media (max-width: 767px) {
    nav.md\\:hidden,
    nav[class*="md:hidden"] {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 50 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Hide mobile navigation on desktop */
@media (min-width: 768px) {
    nav.md\\:hidden,
    nav[class*="md:hidden"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

.font-quicksand { 
    font-family: 'Quicksand', sans-serif; 
}

.floating-animation {
    animation: floating 3s ease-in-out infinite;
}

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

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Dodane style dla natywnego wyglądu */
.page-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav-item.active {
    color: #EC4899;
}

.bottom-nav-item.active svg {
    color: #EC4899;
}

@media (max-width: 768px) {
    .touch-feedback:active {
        transform: scale(0.97);
        transition: transform 0.2s;
    }

    .safe-area-bottom {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .glass-nav {
        backdrop-filter: blur(8px);
    }
}

.search-slide-up {
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-slide-up.active {
    transform: translateY(0);
}

/* FIX: Style dla treści stron /page/ */
.prose {
    color: #374151;
    line-height: 1.7;
}

.prose h1 {
    font-size: 2em;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 700;
    line-height: 1.25;
}

.prose h2 {
    font-size: 1.5em;
    margin-top: 1.2em;
    margin-bottom: 0.4em;
    font-weight: 600;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.25em;
    margin-top: 1em;
    margin-bottom: 0.3em;
    font-weight: 600;
    line-height: 1.4;
}

.prose p {
    margin-bottom: 1em;
    line-height: 1.7;
}

.prose ul, .prose ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

.prose a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.prose a:hover {
    color: #1d4ed8;
}

.prose strong {
    font-weight: 600;
}

.prose em {
    font-style: italic;
}

.prose blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1em;
    margin: 1.5em 0;
    font-style: italic;
    color: #6b7280;
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.2em 0.4em;
    border-radius: 0.25em;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.prose pre {
    background-color: #f3f4f6;
    padding: 1em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.prose th, .prose td {
    border: 1px solid #e5e7eb;
    padding: 0.75em;
    text-align: left;
}

.prose th {
    background-color: #f9fafb;
    font-weight: 600;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5em;
    margin: 1.5em 0;
}

.prose hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2em 0;
}

/* Prose color variants */
.prose-pink a {
    color: #ec4899;
}

.prose-pink a:hover {
    color: #be185d;
}

.prose-pink thead th {
    background-color: #fdf2f8;
}
