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

body {
    font-family: 'Inter', sans-serif;
}

.bg-primary { background-color: #f28e22 !important; }
.text-primary { color: #f28e22 !important; }
.border-primary { border-color: #f28e22 !important; }
.hover\:bg-primary:hover { background-color: #d67a1a !important; }
.hover\:bg-primary-dark:hover { background-color: #d67a1a !important; }
.hover\:text-primary:hover { color: #f28e22 !important; }
.bg-orange-50 { background-color: #fef3e8 !important; }
.hover\:bg-orange-50:hover { background-color: #fef3e8 !important; }

/* WCAG 2.2 AA Accessibility Styles */
/* Skip Navigation Links */
.skip-links {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    pointer-events: none;
}

.skip-link {
    position: absolute;
    top: -50px;
    background: #000;
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 6px 0;
    transition: top 0.3s ease;
    pointer-events: auto;
    white-space: nowrap;
}

.skip-link:first-child {
    left: 0;
}

.skip-link:nth-child(2) {
    left: 210px;
}

.skip-link:focus {
    top: 0;
    outline: 4px solid #f28e22;
    outline-offset: 2px;
}

/* Enhanced Focus Indicators */
a:focus, button:focus, input:focus, textarea:focus, select:focus, 
[tabindex]:focus, .wpcf7-form-control:focus {
    outline: 3px solid #f28e22 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(242, 142, 34, 0.2) !important;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid #f28e22 !important;
    outline-offset: 2px !important;
}

/* Remove focus outline for mouse clicks only */
*:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* High contrast for text */
body {
    color: #1f2937; /* Darker text for better contrast */
}

/* Link contrast improvements */
a {
    text-decoration-skip-ink: auto;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only-focusable:focus {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Animations - subtle and minimal */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.fade-in-init {
    opacity: 0;
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
}

/* Ensure padding is maintained on hover for feature tiles */
.text-center.hover-lift {
    padding: 1.5rem;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Maintain padding on hover for text-center tiles */
.text-center.hover-lift:hover {
    padding: 1.5rem;
}

/* Timeline styles for "Jak opublikować?" page */
.timeline-step {
    position: relative;
    padding-left: 80px;
}

.timeline-step::before {
    content: "";
    position: absolute;
    left: 23px;
    top: 60px;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(to bottom, #f28e22 0%, #d67a1a 100%);
}

.timeline-step:last-child::before {
    display: none;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f28e22 0%, #d67a1a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 12px rgba(242, 142, 34, 0.3);
    z-index: 10;
}

/* Contact Form 7 - Custom Styles */
.wpcf7 {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.wpcf7 label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s;
    margin-top: 0.5rem;
    background-color: white;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #f28e22;
    box-shadow: 0 0 0 3px rgba(242, 142, 34, 0.1);
}

.wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"] {
    width: 100%;
    background-color: #f28e22;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover {
    background-color: #d67a1a;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.wpcf7 .wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-acceptance-missing {
    border: 2px solid #ef4444;
    background-color: #fee2e2;
    color: #991b1b;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
}

.wpcf7 .wpcf7-mail-sent-ok {
    border: 2px solid #10b981;
    background-color: #d1fae5;
    color: #065f46;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #f28e22;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

.wpcf7 input[type="checkbox"]:focus,
.wpcf7 input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 142, 34, 0.1);
}

.wpcf7 .wpcf7-spinner {
    display: none;
}

/* Dodatkowe style dla wyglądu zgodnego z designem */
.wpcf7 select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Authentication Forms - Login & Register */
.auth-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s;
    background-color: white;
}

.auth-input:focus {
    outline: none;
    border-color: #f28e22;
    box-shadow: 0 0 0 3px rgba(242, 142, 34, 0.1);
}

.auth-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f28e22;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.auth-submit:hover {
    background-color: #d67a1a;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.auth-submit:active {
    transform: translateY(0);
}

/* Mobile submenu animations */
#publikacje-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#publikacje-submenu.show {
    max-height: 500px;
}

/* WordPress Menu Classes */
.current-menu-item > a,
.current_page_item > a,
.current-page-ancestor > a {
    border-bottom: 4px solid #f28e22 !important;
}

/* Content paragraphs spacing */
main p {
    margin-bottom: 1.5rem;
}

main p:last-child {
    margin-bottom: 0;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Accordion styles */
.accordion-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.accordion-header:hover {
    background-color: #f9fafb;
}

.accordion-header[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-in-out;
    opacity: 0;
}

.accordion-content.accordion-open {
    max-height: 5000px;
    opacity: 1;
}

/* List styles for content pages (regulamin, polityka prywatności, etc.) */
body.page-id-124 .wp-block-list,
body.page-id-124 ul.wp-block-list,
body.page-id-124 main ul:not(.menu):not(.sub-menu),
body.page-id-124 .entry-content ul:not(.menu):not(.sub-menu),
body.page-id-124 .page-content ul:not(.menu):not(.sub-menu),
body.page-id-3 .wp-block-list,
body.page-id-3 ul.wp-block-list,
body.page-id-3 main ul:not(.menu):not(.sub-menu),
body.page-id-3 .entry-content ul:not(.menu):not(.sub-menu),
body.page-id-3 .page-content ul:not(.menu):not(.sub-menu),
body.page-id-77 .wp-block-list,
body.page-id-77 ul.wp-block-list,
body.page-id-77 main ul:not(.menu):not(.sub-menu),
body.page-id-77 .entry-content ul:not(.menu):not(.sub-menu),
body.page-id-77 .page-content ul:not(.menu):not(.sub-menu) {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

body.page-id-124 .wp-block-list li,
body.page-id-124 ul.wp-block-list li,
body.page-id-124 main ul:not(.menu):not(.sub-menu) li,
body.page-id-124 .entry-content ul:not(.menu):not(.sub-menu) li,
body.page-id-124 .page-content ul:not(.menu):not(.sub-menu) li,
body.page-id-3 .wp-block-list li,
body.page-id-3 ul.wp-block-list li,
body.page-id-3 main ul:not(.menu):not(.sub-menu) li,
body.page-id-3 .entry-content ul:not(.menu):not(.sub-menu) li,
body.page-id-3 .page-content ul:not(.menu):not(.sub-menu) li,
body.page-id-77 .wp-block-list li,
body.page-id-77 ul.wp-block-list li,
body.page-id-77 main ul:not(.menu):not(.sub-menu) li,
body.page-id-77 .entry-content ul:not(.menu):not(.sub-menu) li,
body.page-id-77 .page-content ul:not(.menu):not(.sub-menu) li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Ordered lists */
body.page-id-124 .wp-block-list[type="1"],
body.page-id-124 ol.wp-block-list,
body.page-id-124 main ol:not(.menu):not(.sub-menu),
body.page-id-124 .entry-content ol:not(.menu):not(.sub-menu),
body.page-id-124 .page-content ol:not(.menu):not(.sub-menu),
body.page-id-3 .wp-block-list[type="1"],
body.page-id-3 ol.wp-block-list,
body.page-id-3 main ol:not(.menu):not(.sub-menu),
body.page-id-3 .entry-content ol:not(.menu):not(.sub-menu),
body.page-id-3 .page-content ol:not(.menu):not(.sub-menu),
body.page-id-77 .wp-block-list[type="1"],
body.page-id-77 ol.wp-block-list,
body.page-id-77 main ol:not(.menu):not(.sub-menu),
body.page-id-77 .entry-content ol:not(.menu):not(.sub-menu),
body.page-id-77 .page-content ol:not(.menu):not(.sub-menu) {
    list-style: decimal;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

body.page-id-124 .wp-block-list[type="1"] li,
body.page-id-124 ol.wp-block-list li,
body.page-id-124 main ol:not(.menu):not(.sub-menu) li,
body.page-id-124 .entry-content ol:not(.menu):not(.sub-menu) li,
body.page-id-124 .page-content ol:not(.menu):not(.sub-menu) li,
body.page-id-3 .wp-block-list[type="1"] li,
body.page-id-3 ol.wp-block-list li,
body.page-id-3 main ol:not(.menu):not(.sub-menu) li,
body.page-id-3 .entry-content ol:not(.menu):not(.sub-menu) li,
body.page-id-3 .page-content ol:not(.menu):not(.sub-menu) li,
body.page-id-77 .wp-block-list[type="1"] li,
body.page-id-77 ol.wp-block-list li,
body.page-id-77 main ol:not(.menu):not(.sub-menu) li,
body.page-id-77 .entry-content ol:not(.menu):not(.sub-menu) li,
body.page-id-77 .page-content ol:not(.menu):not(.sub-menu) li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Heading styles for content pages */
main h2.wp-block-heading,
.entry-content h2.wp-block-heading,
.page-content h2.wp-block-heading,
main h2:not(.menu):not(.sub-menu),
.entry-content h2:not(.menu):not(.sub-menu),
.page-content h2:not(.menu):not(.sub-menu) {
    font-size: 1.875rem; /* 30px */
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

body.page-id-124 main h3.wp-block-heading,
body.page-id-124 .entry-content h3.wp-block-heading,
body.page-id-124 .page-content h3.wp-block-heading,
body.page-id-124 main h3:not(.menu):not(.sub-menu),
body.page-id-124 .entry-content h3:not(.menu):not(.sub-menu),
body.page-id-124 .page-content h3:not(.menu):not(.sub-menu),
body.page-id-3 main h3.wp-block-heading,
body.page-id-3 .entry-content h3.wp-block-heading,
body.page-id-3 .page-content h3.wp-block-heading,
body.page-id-3 main h3:not(.menu):not(.sub-menu),
body.page-id-3 .entry-content h3:not(.menu):not(.sub-menu),
body.page-id-3 .page-content h3:not(.menu):not(.sub-menu) {
    font-size: 1.5rem; /* 24px */
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Utility class for removing top margin */
.mt-0-important {
    margin-top: 0 !important;
}

/* Equal width buttons in hero section */
section.bg-gradient-to-r.from-gray-700 .flex.flex-col.sm\:flex-row a,
section.bg-gradient-to-r.from-gray-700 .flex.flex-col.sm\:flex-row > a {
    width: 100%;
}

@media (min-width: 640px) {
    section.bg-gradient-to-r.from-gray-700 .flex.flex-col.sm\:flex-row a,
    section.bg-gradient-to-r.from-gray-700 .flex.flex-col.sm\:flex-row > a {
        width: auto;
        min-width: 200px;
        flex: 1 1 0;
        max-width: 300px;
    }
}

