/*
 * STYL DLA LUCID FRAME STUDIO
 * Inspiracja: Mrok, mgła, fioletowy portal, heksagony z logo.
 */

/* === ZMIENNE GŁÓWNE (PALETA Z LOGO) === */
:root {
    --color-bg: #100f12;         /* Głęboki, prawie czarny antracyt */
    --color-primary: #6a3a7d;   /* Główny fiolet z logo */
    --color-primary-light: #a978c0; /* Jaśniejszy fiolet do akcentów */
    --color-text: #e0e0e0;      /* Jasnoszary tekst (lepszy niż czysta biel) */
    --color-heading: #ffffff;   /* Czysta biel dla nagłówków */
    --font-heading: 'Rajdhani', sans-serif; /* Font z logo */
    --font-body: 'Lato', sans-serif;         /* Font dla treści */
    --container-width: 1140px;
    --border-radius: 5px;
    --transition-speed: 0.3s ease;
}

/* === RESET I USTAWIENIA GLOBALNE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cg fill-rule="evenodd"%3E%3Cg fill="%231a181d" fill-opacity="0.4"%3E%3Cpath opacity=".5" d="M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z"/%3E%3Cpath d="M6 5V0H5v5H0v1h5v94h1V6h94V5H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(170, 120, 192, 0.2);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: var(--transition-speed);
}

a:hover {
    color: var(--color-heading);
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

/* === HEADER I NAWIGACJA === */
.main-header {
    background: rgba(16, 15, 18, 0.8);
    border-bottom: 1px solid rgba(106, 58, 125, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    /* NOWE: Płynne przejście dla paddingu i tła */
    transition: padding 0.3s ease, background-color 0.3s ease;
}

/* NOWE: Styl nagłówka po przewinięciu */
.main-header.scrolled {
    background: rgba(16, 15, 18, 0.95); /* Mocniejsze tło */
    backdrop-filter: blur(15px); /* Mocniejszy blur */
    padding: 0.5rem 0; /* Zmniejszenie paddingu */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-heading);
    line-height: 1;
}

.logo-text span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary-light);
    display: block;
    letter-spacing: 2px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-light);
    transition: var(--transition-speed);
}

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-heading);
}

/* === GŁÓWNA ZAWARTOŚĆ === */
main {
    padding: 4rem 0;
}

.page-section {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(106, 58, 125, 0.1);
}

.page-section.bg-darker {
    background-color: rgba(0,0,0,0.1);
}

.page-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-bottom: 1px dashed rgba(106, 58, 125, 0.4);
}
.page-header h1 {
    font-size: 3.5rem;
    color: var(--color-primary-light);
}

/* === PRZYCISKI === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-heading);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(106, 58, 125, 0.5);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
    color: var(--color-bg);
    box-shadow: 0 0 25px rgba(169, 120, 192, 0.7);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary-light);
    border: 2px solid var(--color-primary-light);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-bg);
}

/* === STRONA GŁÓWNA (INDEX.PHP) === */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    padding: 6rem 0;
    background: var(--color-bg) linear-gradient(180deg, rgba(16, 15, 18, 0) 0%, rgba(16, 15, 18, 1) 100%);
    position: relative;
    overflow: hidden;
}

/* To jest stary efekt pulsowania, który wyłączamy, bo mamy cząsteczki */
.hero:before {
    /* content: ''; */ /* Wyłączone */
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle, rgba(106, 58, 125, 0.15) 0%, rgba(106, 58, 125, 0) 70%);
    animation: pulse 5s infinite ease-in-out;
    z-index: 1;
}

/* NOWE: Ustawienia dla tła cząsteczkowego */
#tsparticles {
    position: relative;
}

#tsparticles canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* Ustawia canvas pod treścią */
}

/* NOWE: Upewnij się, że .hero-content jest nad tłem */
.hero-content {
    position: relative;
    z-index: 2; /* Treść nad cząsteczkami */
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(169, 120, 192, 0.5);
}

.hero .subtitle {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-primary-light);
    margin-bottom: 2rem;
}

.hero-cta {
    margin-top: 2rem;
}
.hero-cta .btn {
    margin: 0 0.5rem;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.9); opacity: 0.1; }
}

/* === STRONA O NAS (ABOUT.PHP) === */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.about-intro h2 {
    font-size: 2rem;
    color: var(--color-primary-light);
}

.team-section {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.team-member {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(106, 58, 125, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-speed);
    /* NOWE: Włącza perspektywę 3D */
    perspective: 1000px;
}

/* NOWE: Zastąpiony :hover efektem 3D Tilt */
.team-member:hover {
    transform: translateY(-5px) rotateX(5deg) rotateY(-3deg);
    box-shadow: 0 15px 35px rgba(106, 58, 125, 0.2);
    border-color: rgba(106, 58, 125, 0.5);
}

.team-member-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-primary);
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-bg);
}

.team-member h3 {
    font-size: 1.5rem;
    color: var(--color-heading);
    margin-bottom: 0.25rem;
}

.team-member .role {
    font-family: var(--font-heading);
    color: var(--color-primary-light);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* === STRONA AKTUALNOŚCI (NEWS.PHP) === */
.news-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.news-post {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(106, 58, 125, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-speed);
}

.news-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(106, 58, 125, 0.15);
}

.news-post-image {
    height: 250px;
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-size: 2rem;
}
.news-post-image a {
    display: block;
    height: 100%;
    width: 100%;
    text-decoration: none;
}

.news-post-content {
    padding: 1.5rem 2rem 2rem 2rem;
}

.news-post-meta {
    font-size: 0.9rem;
    color: var(--color-primary-light);
    margin-bottom: 0.5rem;
}

.news-post h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.news-post h3 a {
    color: var(--color-heading);
    text-decoration: none;
}
.news-post h3 a:hover {
    color: var(--color-primary-light);
}

.news-post .read-more {
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary-light);
}

/* === STRONA KARIERA (CAREERS.PHP) === */
.careers-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.job-openings h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary-light);
}

.no-openings {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(106, 58, 125, 0.3);
    border-radius: var(--border-radius);
}

.open-application {
    text-align: center;
    margin-top: 3rem;
}

/* === STRONA KONTAKT (CONTACT.PHP) === */
.contact-container {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--color-primary-light);
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-info a {
    font-size: 1.1rem;
    font-weight: 700;
}

.contact-social {
    margin-top: 2rem;
}
.contact-social a {
    font-size: 1rem;
    margin-right: 1rem;
    text-decoration: underline;
}

.contact-form {
    flex: 1.5;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(106, 58, 125, 0.3);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 10px rgba(169, 120, 192, 0.3);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* === STOPKA === */
.main-footer {
	position: relative;
    z-index: 10;
    background: #0c0b0e;
    border-top: 1px solid rgba(106, 58, 125, 0.3);
    padding: 3rem 0 2rem 0;
    color: #999;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    flex: 1;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--color-primary-light);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
}
.social-links a {
    color: var(--color-text);
    text-decoration: none;
    margin-bottom: 0.5rem;
}
.social-links a:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.footer-nav {
    list-style: none;
}
.footer-nav li {
    margin-bottom: 0.5rem;
}
.footer-nav a {
    color: var(--color-text);
}

.footer-bottom {
    border-top: 1px solid rgba(106, 58, 125, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

/* === RESPONSYWNOŚĆ === */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 3rem; }
    .hero .subtitle { font-size: 1.2rem; }

    .main-header .container {
        flex-direction: row; /* Keep logo and switcher in a row */
        flex-wrap: wrap;     /* Allow nav to wrap below */
        justify-content: space-between; /* Push logo left, switcher right */
        align-items: center; /* Vertically align logo and switcher */
    }

    .logo-link {
        margin-bottom: 0; /* Remove bottom margin */
        flex-shrink: 0; /* Prevent logo from shrinking */
    }

    .main-nav {
        order: 3;        /* Make nav appear last (below logo/switcher) */
        width: 100%;     /* Make nav take full width */
        margin-top: 1rem; /* Add space above the nav */
		margin-left: auto;
    }

    .main-nav ul {
        justify-content: center; /* Center the nav links */
        /* If you prefer right-aligned links on mobile, use this instead: */
        /* justify-content: flex-end; */
        gap: 1rem; /* Add some space between nav links */
		list-style: none;
		display: flex;
    }

     .main-nav li {
         margin-left: 0; /* Remove default left margin */
     }

    .team-section {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .social-links {
        align-items: center;
    }
}

/* === DODANE STYLE (Krok 3) === */

/* NOWE: Sekcja Filozofii (index.php) */
.philosophy-section {
    text-align: center;
}
.section-title {
    font-size: 2.5rem;
    color: var(--color-primary-light);
    margin-bottom: 3rem;
}
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.philosophy-item {
    padding: 2rem;
    border: 1px solid rgba(106, 58, 125, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.02);
}
.philosophy-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1;
}

/* NOWE: Sekcja CTA (index.php) */
.cta-section {
    text-align: center;
    background: linear-gradient(0deg, rgba(16, 15, 18, 1) 0%, rgba(106, 58, 125, 0.2) 100%);
    padding: 6rem 0;
}
.cta-section p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--color-text);
}
.btn-lg {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

/* NOWE: Style dla listy ofert pracy (careers.php) */
.job-listings-container {
    display: grid;
    gap: 1.5rem;
}
.job-listing {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(106, 58, 125, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: var(--transition-speed);
}
.job-listing:hover {
    border-color: rgba(106, 58, 125, 0.5);
    box-shadow: 0 5px 20px rgba(106, 58, 125, 0.1);
}
.job-listing-header {
    flex-basis: 300px;
    flex-grow: 1;
}
.job-listing-header h3 {
    margin-bottom: 0.25rem;
    color: var(--color-heading);
}
.job-meta {
    font-size: 0.9rem;
    font-family: var(--font-heading);
    color: var(--color-primary-light);
}
.job-meta span {
    margin-right: 1rem;
}
.job-listing-desc {
    flex-basis: 100%;
    flex-grow: 2;
    padding: 1rem 2rem 1rem 0;
    color: var(--color-text);
}
.job-listing-desc p {
    margin-bottom: 0;
}
.job-listing-apply {
    flex-basis: 150px;
    flex-grow: 0;
    text-align: right;
}

/* NOWE: Style dla pojedynczego posta (news-single.php) */
.single-post-header {
    text-align: center;
    border-bottom: 1px dashed rgba(106, 58, 125, 0.4);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}
.post-header-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}
.single-post-header h1 {
    font-size: 3.5rem;
}
.post-meta {
    font-family: var(--font-heading);
    color: var(--color-primary-light);
    font-size: 1.1rem;
}
.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}
.post-content p.lead {
    font-size: 1.4rem;
    color: var(--color-heading);
    font-weight: 300;
    margin-bottom: 2rem;
}
.post-content h3 {
    font-size: 2rem;
    color: var(--color-primary-light);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}
.post-content blockquote {
    border-left: 4px solid var(--color-primary);
    margin: 2rem 0;
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-text);
}
.post-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Poprawki responsywności dla nowych sekcji */
@media (max-width: 900px) {
    .job-listing {
        flex-direction: column;
        align-items: flex-start;
    }
    .job-listing-desc {
        padding: 1rem 0;
    }
    .job-listing-apply {
        text-align: left;
        margin-top: 1rem;
    }
}
@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    .single-post-header h1 {
        font-size: 2.5rem;
    }
}
/* === DODANE STYLE: Formularz Aplikacyjny (apply.php) === */

.application-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(106, 58, 125, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem 3rem;
}

.application-title {
    font-size: 2rem;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}
.application-title span {
    color: var(--color-primary-light);
}

.application-intro {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.application-form hr {
    border: 0;
    height: 1px;
    background: rgba(106, 58, 125, 0.3);
    margin: 2rem 0;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Używamy istniejących stylów .form-group */

.form-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-cancel {
    color: var(--color-text);
    text-decoration: none;
}
.btn-cancel:hover {
    color: var(--color-heading);
    text-decoration: underline;
}

/* Komunikaty o błędach i sukcesie */
.form-message {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}
.form-message.success {
    background: rgba(106, 215, 124, 0.1);
    border: 1px solid rgba(106, 215, 124, 0.3);
    color: #a0ddaa;
}
.form-message.success h3 {
    color: #cfff d6;
}
.form-message.error {
    background: rgba(215, 106, 106, 0.1);
    border: 1px solid rgba(215, 106, 106, 0.3);
    color: #ddb0b0;
}
.form-message.error strong {
    color: #ffcccc;
}
.form-message ul {
    margin: 1rem 0 0 1.5rem;
}

/* Ukrycie pola Honeypot */
.honeypot {
    position: absolute;
    left: -5000px;
}

/* Poprawki RWD dla formularza */
@media (max-width: 768px) {
    .form-group-grid {
        grid-template-columns: 1fr;
    }
    .application-container {
        padding: 1.5rem;
    }
}
/* === DODANE STYLE: Pole <select> dla formularza === */

.form-group select {
    /* Kopiujemy style z .form-group input */
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(106, 58, 125, 0.3);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    
    /* Wygląd strzałki (działa w większości przeglądarek) */
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a978c0%22%20d%3D%22M287%2069.4a17.6%2017.6%0%200%200-13-5.4H18.4c-5%200-9.3%201.8-13%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2013l128%20128c3.6%203.6%207.8%205.4%2013%205.4s9.4-1.8%2013-5.4l128-128c3.6-3.6%205.4-7.8%205.4-13%200-5-1.8-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65em auto;
    padding-right: 2.5rem; /* Miejsce na strzałkę */
}

.form-group select:focus {
    /* Kopiujemy style z .form-group input:focus */
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 10px rgba(169, 120, 192, 0.3);
}

.form-group select option {
    background: var(--color-bg);
    color: var(--color-text);
}
/* === DODANE STYLE: Poprawka obrazka w newsach === */
.news-post-image {
    height: 250px;
    background: var(--color-bg); /* Tło, gdyby obrazek się nie ładował */
    overflow: hidden;
}

.news-post-img-tag {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Kadruje obrazek, aby pasował */
    transition: transform 0.4s ease;
}

.news-post-image a:hover .news-post-img-tag {
    transform: scale(1.05); /* Subtelne przybliżenie */
}

/* === DODANE STYLE: Pojedynczy post newsowy === */
.single-post-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 20px;
}

.post-image-header {
    position: relative;
    width: 100%;
    height: 350px; /* Wysokość nagłówka */
    background-color: var(--color-bg-dark);
    display: flex;
    align-items: flex-end; /* Tekst na dole */
    justify-content: flex-start;
    padding: 30px;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.single-post-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.7); /* Przyciemnienie obrazka, żeby tekst był czytelny */
}

.post-header-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.post-header-content h1 {
    font-size: 2.8rem;
    margin-top: 10px;
    margin-bottom: 0;
    line-height: 1.2;
}

.post-meta {
    font-size: 0.9em;
    opacity: 0.8;
}

.post-content {
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
}

.post-content h2, .post-content h3 {
    color: var(--color-primary-light);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-content ul {
    margin-bottom: 1rem;
    padding-left: 20px;
}

.post-content blockquote {
    border-left: 4px solid var(--color-primary-light);
    padding-left: 15px;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-secondary);
}

.post-navigation {
    margin-top: 3rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    text-align: center;
}

/* Dostosuj styl 'lead' dla newsów */
.post-content p.lead {
    font-size: 1.25em;
    font-weight: 300;
    margin-bottom: 1.5em;
    line-height: 1.5;
    color: var(--color-primary-light);
}
/* === DODANE STYLE: Pływający Box Cookie (Kompromis) === */

#cookie-consent-box {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 420px; /* Szerokość boxa */
    background: #0c0b0e;
    border: 1px solid rgba(106, 58, 125, 0.3);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    z-index: 999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    
    display: none; /* Domyślnie ukryty */
    
    /* Animacja */
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;

    /* Układ (tekst po lewej, przycisk po prawej) */
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Stan widoczny (dodawany przez JS) */
#cookie-consent-box.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

#cookie-consent-box h4 {
    font-size: 1.25rem;
    color: var(--color-primary-light);
    margin: 0 0 0.5rem 0;
}

#cookie-consent-box p {
    font-size: 0.9rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
}

#cookie-consent-box a {
    color: var(--color-primary-light);
    text-decoration: underline;
}

#cookie-consent-box .btn {
    /* Zmniejszamy przycisk */
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    /* Zapobiega kurczeniu się przycisku */
    flex-shrink: 0; 
}


/* Responsywność boxa */
@media (max-width: 768px) {
    #cookie-consent-box {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto; /* Pełna szerokość na mobilnych */
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
/* === DODANE POPRAWKI: Responsywność (Kariera i inne) === */

@media (max-width: 900px) {
    /* Poprawka dla ofert pracy (Kariera) */
    .job-listing {
        flex-direction: column;
        align-items: flex-start; /* Wyrównaj wszystko do lewej */
        padding: 1.5rem; /* Lepszy padding na mobilce */
    }

    .job-listing-desc {
        padding: 1rem 0; /* Usunięcie dziwnego paddingu po prawej */
    }

    .job-listing-apply {
        text-align: left; /* Wyrównanie przycisku */
        width: 100%; /* Rozciągnięcie kontenera przycisku */
    }

    .job-listing-apply .btn {
        width: 100%; /* Przycisk "Apply" na całą szerokość */
        text-align: center;
        box-sizing: border-box; /* Ważne dla paddingu */
    }
}

@media (max-width: 768px) {
    /* Poprawka dla sekcji Filozofii na stronie głównej */
    .philosophy-grid {
        grid-template-columns: 1fr; /* Jeden element na wiersz */
    }
    
    /* Poprawka dla formularza kontaktu */
    .contact-container {
        flex-direction: column;
    }
}


/* === DODANE STYLE: Przełącznik języka === */
.language-switcher {
        order: 2;         /* Make switcher appear second (after logo) */
        margin-left: 0;  /* Remove default left margin */
    }
.language-switcher a {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
}
.language-switcher a:hover {
    background: var(--color-primary);
    color: var(--color-heading);
}

@media (max-width: 900px) { /* Zastosuj już na tabletach */
    .job-listing {
        display: block; /* Zmień flex na block dla prostszego układu */
        padding: 1.5rem;
    }

    .job-listing-header {
        margin-bottom: 0.5rem; /* Odstęp pod nagłówkiem */
    }

    .job-meta {
        margin-bottom: 1rem; /* Odstęp pod lokalizacją/typem */
    }

    .job-listing-desc {
        padding: 0; /* Usuń stary padding */
        margin-bottom: 1.5rem; /* Odstęp pod opisem */
    }

    .job-listing-apply {
        text-align: left;
        width: 100%;
    }

    .job-listing-apply .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Upewnij się, że okienko cookie jest zawsze na wierzchu */
#cookie-consent-box {
    z-index: 9999; /* Zwiększ z-index na wszelki wypadek */
}

/* Dodatkowe poprawki dla bardzo małych ekranów, jeśli potrzeba */
@media (max-width: 480px) {
     .job-listing-header h3 {
         font-size: 1.25rem; /* Zmniejsz nagłówek oferty */
     }
     .page-header h1 {
        font-size: 2.5rem; /* Zmniejsz główny nagłówek strony */
     }
}

/* === DODANE STYLE: Modal dla Discord === */

#discord-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 15, 18, 0.85);
    z-index: 10000;
    display: flex; /* Changed: Use flex for centering */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    /* Added pointer-events to prevent interaction when hidden */
    pointer-events: none;
    transition: opacity 0.3s ease; /* Transition only opacity for overlay */
}

#discord-modal-overlay.active {
    opacity: 1;
    pointer-events: auto; /* Allow interaction when active */
}

#discord-modal-box {
    position: relative;
    background: #0c0b0e;
    border: 1px solid rgba(106, 58, 125, 0.4);
    border-radius: var(--border-radius);
    padding: 2.5rem 3rem;
    z-index: 10001;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    color: var(--color-text);

    /* --- ANIMATION STATE (Hidden) --- */
    transform: translateY(30px); /* Start further down */
    opacity: 0;
    /* Apply transition to transform and opacity */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#discord-modal-overlay.active #discord-modal-box {
     /* --- ANIMATION STATE (Visible) --- */
     transform: translateY(0); /* Move up to final position */
     opacity: 1;
}


#discord-modal-box h3 {
    font-size: 1.8rem;
    color: var(--color-primary-light);
    margin-top: 0;
    margin-bottom: 1rem;
}

#discord-modal-box p {
    margin-bottom: 0;
    line-height: 1.6;
}

#discord-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#discord-modal-close:hover {
    opacity: 1;
}