@import "carousel.css";
@import "chat.css";
@import "inputs.css";
@import "layout.css";
@import "popups.css";
@import "variables.css";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    font-family: var(--font-family), sans-serif;
    font-size: var(--text-md);
    font-weight: var(--text-font-weight);
    line-height: var(--text-line-height);
    letter-spacing: var(--text-letter-spacing);
}

*:disabled {
    cursor: not-allowed;
}

html,
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-background);
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100lvh;
    overflow: visible;
}

main {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    gap: var(--spacing-main-gap);
    padding-top: var(--spacing-main-top);
    padding-bottom: var(--spacing-main-bottom);
}

main > * {
    width: 100%;
    max-width: var(--max-width-content-with-paddings);
    margin-inline: auto;
    padding-inline: var(--spacing-main-x);
}

main > section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-text-gap);
}

main > section:has(.full-width), .full-width {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding: 0;
}

main > section:has(.full-width) *:not(*:has(.full-width),.full-width) {
    max-width: var(--max-width-content-with-paddings);
    padding-inline: var(--spacing-main-x);
    width: 100%;
    margin-inline: auto;
}

h1, h1 * {
    font-size: var(--heading-1);
    font-weight: var(--heading-font-weight);
    line-height: var(--heading-line-height);
}

h2, h2 * {
    font-size: var(--heading-2);
    font-weight: var(--heading-font-weight);
    line-height: var(--heading-line-height);
}

h3, h3 * {
    font-size: var(--heading-3);
    font-weight: var(--heading-font-weight);
    line-height: var(--heading-line-height);
}

h4, h4 * {
    font-size: var(--heading-4);
    font-weight: var(--heading-font-weight);
    line-height: var(--heading-line-height);
}

h1, h2, h3, h4 {
    margin-top: var(--heading-top-spacing);
}

strong, strong * {
    font-weight: var(--bold-font-weight);
}

a, a * {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    cursor: pointer;
}

.doublenl {
    display: inline-block;
    height: 2rem;
}

ul,
ol {
    margin-left: 1rem;
    list-style-position: inside;
}

ul,
ol ul,
ol {
    margin-bottom: 0.5rem;
}

li * {
    display: inline;
}

hr {
    width: 100%;
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0.5rem 0;
}

button {
    min-width: var(--min-width-button);
    min-height: var(--min-height-button);
    padding: var(--spacing-button-y) var(--spacing-button-x);
    transition: transform 0.2s;
    background: none;
    color: var(--color-primary);
    border: none;
    border-radius: var(--rounded-md);
    font-size: var(--text-md);
    font-weight: 600;
    line-height: 1;
}


button:hover {
    transform: scale(1.04);
    cursor: pointer;
}

button:active {
    transform: scale(0.96);
}

button:disabled {
    filter: opacity(0.5);
    transform: none;
}



.glass {
    background: radial-gradient(circle at 0 0, rgba(150, 150, 150, 10%), transparent 70%),
    radial-gradient(circle at 0 0, rgb(26 94 170 / 3%), transparent 70%),
    radial-gradient(circle at 100% 100%, rgba(150, 150, 150, 10%), transparent 70%),
    radial-gradient(circle at 100% 100%, rgb(26 94 170 / 3%), transparent 70%),
    rgba(255, 255, 255, 70%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.fullscreen-message {
    width: 100%;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: center;
}

.fullscreen-message a, .fullscreen-message p {
    font-size: var(--text-lg);
}


/* Wsparcie dla prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

