/* Importujemy czcionkę "Nunito" */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800&display=swap');

:root {
    /* Paleta kolorów (TRYB JASNY - DOMYŚLNY) */
    --bg-light: #F6F6F6;
    --bg-white: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #708993;
    --input-bg: #F0F0F0;
    --input-focus-ring: rgba(109, 152, 134, 0.4);
    
    --accent-green: #D9CAB3;
    --accent-blue: #6D9886;
    --accent-purple: #708993;
    --accent-gold: #D9CAB3;
    --accent-red: #E74C3C;
    
    --font-main: 'Nunito', sans-serif;
    
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ===== STYL TRYBU CIEMNEGO ===== */
html.dark-mode {
    --bg-light: #212121;
    --bg-white: #2C2C2C;
    --text-primary: #F6F6F6;
    --text-secondary: #708993;
    --input-bg: #333333;
    --input-focus-ring: rgba(109, 152, 134, 0.4);
    
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 6px 16px rgba(0, 0, 0, 0.3);
}

body {
    font-family: var(--font-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-light);
    color: var(--text-primary);
    min-height: 100vh;
    margin: 0;
    padding: 20px 15px;
    box-sizing: border-box;
    cursor: default;
    transition: background-color 0.3s, color 0.3s;
}

/* Przycisk Trybu Ciemnego */
#theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--bg-white);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s ease;
}
#theme-toggle-btn:hover {
    transform: scale(1.1);
}

/* ===== NOWY PRZYCISK JĘZYKA ===== */
#lang-toggle-btn {
    position: fixed;
    top: 20px;
    right: 80px; /* Obok przycisku motywu */
    z-index: 1001;
    background: var(--bg-white);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s ease;
}
#lang-toggle-btn:hover {
    transform: scale(1.1);
}
/* ================================== */


main {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* POPRAWIONA SEKCJA H1 */
h1 { 
    font-size: 3em; 
    color: var(--text-primary); 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; 
    /*gap: 10px;  POPRAWNIE UMIESZCZONY */
 }
h1 .rr {
    color: var(--accent-blue);
}
h1 img.logo {
    /* USUNIĘTO BŁĘDNY 'gap: 10px;' STĄD */
    height: 1em; 
    width: auto;
    html.dark-mode & {
        filter: brightness(1.2);
    }
}
/* KONIEC POPRAWKI */

h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
h4 { font-size: 1.2em; color: var(--text-secondary); }
h5 { font-size: 1.1em; color: var(--text-secondary); margin: 20px 0 10px 0; font-weight: 700;}

/* Przyciski */
.btn {
    font-family: var(--font-main);
    padding: 10px 22px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 50px;
    background-color: var(--accent-blue);
    color: var(--bg-white);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(109, 152, 134, 0.3);
    position: relative;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(109, 152, 134, 0.4);
}
.btn:active, .btn:focus {
    outline: none;
    transform: translateY(0px);
    box-shadow: 0 2px 5px rgba(109, 152, 134, 0.3);
}

.btn.green {
    background-color: var(--accent-green);
    color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(217, 202, 179, 0.4);
}
.btn.green:hover { box-shadow: 0 6px 12px rgba(217, 202, 179, 0.5); }

.btn.blue {
    background-color: var(--accent-blue);
    color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(109, 152, 134, 0.3);
}
.btn.blue:hover { box-shadow: 0 6px 12px rgba(109, 152, 134, 0.4); }

.btn.purple {
    background-color: var(--accent-purple);
    color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(112, 137, 147, 0.3);
}
.btn.purple:hover { box-shadow: 0 6px 12px rgba(112, 137, 147, 0.4); }

.btn.red {
    background-color: var(--accent-red);
    color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}
.btn.red:hover { 
    background-color: #c82333;
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.4); 
}

.btn.small {
    font-size: 0.9em;
    padding: 8px 18px;
    text-transform: none;
}


/* Pola tekstowe */
.input-field {
    font-family: var(--font-main);
    font-weight: 700;
    padding: 10px 18px;
    font-size: 1.1em;
    border: none;
    border-radius: 50px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    outline: none;
    margin-right: 0;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s, border 0.3s, background-color 0.3s;
}
.input-field:focus {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05), 0 0 0 3px var(--input-focus-ring);
}

/* Panele */
.panel {
    width: 100%;
    max-width: 600px;
    padding: 30px;
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    margin-bottom: 40px;
    box-sizing: border-box;
    position: relative;
    transition: background-color 0.3s, box-shadow 0.3s;
}

/* ===== KLASA DO UKRYWANIA ===== */
.hidden {
    display: none !important;
}

/* Opis gry */
.game-description {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 30px auto 0 auto; 
    line-height: 1.6;
}

/* Styl wyboru motywu */
#theme-selection {
    width: 100%;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--input-bg);
}
#theme-selection h4 {
    font-size: 1em;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 15px;
}
.theme-btn {
    font-family: var(--font-main);
    font-size: 1.5em;
    border: 3px solid transparent;
    border-radius: 10px;
    background-color: var(--input-bg);
    color: var(--text-primary);
    cursor: pointer;
    padding: 4px;
    width: 50px;
    height: 50px;
    transition: all 0.2s ease;
}
.theme-btn:hover {
    border-color: var(--text-secondary);
}
.theme-btn.selected {
    border-color: var(--accent-blue);
    background-color: var(--bg-light);
    box-shadow: 0 0 10px rgba(109, 152, 134, 0.3);
}

/* ===== STYLE LOGOWANIA/REJESTRACJI ===== */
.auth-link {
    font-size: 0.9em;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    margin-top: 15px;
}
.auth-link:hover {
    color: var(--accent-blue);
}

.auth-subtext {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: -10px;
    margin-bottom: 10px;
    max-width: 350px;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--input-bg);
    margin-bottom: 30px;
}
.auth-tab {
    font-family: var(--font-main);
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-secondary);
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.auth-tab.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}
.auth-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.auth-form .btn {
    margin-top: 10px;
}
#auth-message {
    margin-top: 15px;
    font-size: 1em;
}

.auth-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}
.auth-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== STYLE LOBBY ===== */
#logout-btn {
    padding: 5px 15px;
    font-size: 0.9em;
    margin-top: 20px; 
}

#mode-selection,
#solo-options,
#multi-options,
#multi-create-join,
#multi-create-details,
#multi-join-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
#mode-selection + .game-description {
    margin-top: 30px;
    margin-bottom: 0;
}

#multi-create-details,
#multi-join-details {
    margin-top: 20px;
    padding-top: 20px;
    width: 100%;
    border-top: 1px solid var(--input-bg);
}

.difficulty-select {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

#game-mode-select {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 12px;
    text-align: left;
    margin: 10px 0 20px 0;
}
#game-mode-select label {
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
}
#game-mode-select input[type="radio"] {
    margin-right: 10px;
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 3px solid var(--text-secondary);
    border-radius: 50%;
    transition: all 0.2s;
}
#game-mode-select input[type="radio"]:checked {
    border: 6px solid var(--accent-blue);
}
#game-mode-select span {
    font-size: 0.9em;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 8px;
}

#game-id-container {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    background-color: var(--bg-light);
    border-radius: 12px;
}
#game-id-container span {
    color: var(--text-secondary);
}
#game-id-container strong {
    color: var(--text-primary);
    font-size: 1.3em;
    font-weight: 800;
}

.copy-btn {
    background: var(--input-bg);
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-left: 5px;
    border-radius: 50%;
    transition: background-color 0.2s;
    
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 0 24 24" width="20px" fill="%23708993"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}
.copy-btn:hover {
    background-color: #DEE2E6;
}
html.dark-mode .copy-btn:hover {
    background-color: #444;
}

.copy-btn.copied {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 0 24 24" width="20px" fill="%232ECC71"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>');
}
html.dark-mode .copy-btn {
    filter: invert(1);
}
html.dark-mode .copy-btn.copied {
    filter: none;
}


.error-text {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.1em;
    min-height: 20px;
    margin-top: 15px;
}

/* ===== STYLE EKRANU GRY ===== */
#game-screen {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.controls {
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 50px;
}

#turn-info {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}
#turn-info.my-turn {
    color: var(--accent-blue);
}

.all-info-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.info-container.panel {
    font-size: 1em;
    padding: 20px;
    min-width: 220px;
    text-align: left;
    max-width: 300px;
    border-radius: 12px;
    border: 4px solid transparent;
    transition: border-color 0.3s ease, background-color 0.3s, box-shadow 0.3s;
}

.info-container.active-turn {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(109, 152, 134, 0.5);
}

.info-container h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2em;
    color: var(--text-secondary);
    font-weight: 800;
}
.info-row {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.1em;
}
.info-row span {
    color: var(--text-primary);
    font-weight: 700;
}

#stat1-container {
    color: var(--accent-green);
    font-weight: 700;
}
#stat1-container span {
    color: var(--accent-green);
}
#stat2-container {
    color: var(--accent-green);
    font-weight: 700;
}
#stat2-container span {
    color: var(--accent-green);
}

#opponent-info h3 {
    color: var(--accent-red);
}
#opponent-info .info-row span {
    color: var(--accent-red);
}

#game-screen.solo-mode #opponent-info {
    display: none;
}

/* ===== STYLE POWER-UPÓW ===== */
#powerup-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}
.powerup-btn {
    font-family: var(--font-main);
    font-size: 2em;
    border: 3px solid var(--text-secondary);
    border-radius: 12px;
    background-color: var(--bg-white);
    color: var(--text-primary);
    cursor: pointer;
    width: 60px;
    height: 60px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}
.powerup-btn:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}
.powerup-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--input-bg);
    box-shadow: none;
    transform: none;
}

/* ===== STYLE PLANSZY I KART ===== */
#game-board {
    display: grid;
    gap: 12px;
    perspective: 1000px;
    padding: 12px;
    
    width: 100%;
    box-sizing: border-box;
    max-width: 400px; 
}

.card {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s, box-shadow 0.3s;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card.matched {
    opacity: 0.3;
    cursor: default;
    box-shadow: none;
}

.card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    backface-visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.card-back {
    transform: rotateY(0deg);
    background-color: var(--accent-blue);
}
.card:not(.matched):not(.flipped):hover .card-back {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.card-front {
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem; 
    background-color: var(--bg-white);
    color: var(--text-primary);
}
.card.matched .card-front {
    background-color: var(--bg-light);
    box-shadow: none;
}

/* ===== STYLE OKNA MODALNEGO ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none; 
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay:not(.hidden) {
    pointer-events: auto;
    opacity: 1;
}

.modal-content.panel {
    max-width: 500px;
    box-shadow: var(--shadow-3);
    transform: scale(0.95);
    transition: transform 0.3s ease, background-color 0.3s, box-shadow 0.3s;
}
.modal-overlay:not(.hidden) .modal-content.panel {
    transform: scale(1);
}

.modal-content h2 {
    color: var(--accent-green);
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 800;
}
#leaderboard-modal .modal-content h4 {
    margin-top: -15px;
}

.modal-content p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-primary);
}

#modal-record-message {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.3em;
    margin-bottom: 25px;
}
#modal-rematch-status {
    color: var(--text-secondary);
    font-style: italic;
    min-height: 20px;
}

#modal-play-again {
    padding: 12px 20px;
    font-size: 1.1em;
}

/* ===== STYLE MODALA SOLO ===== */
#solo-win-modal .modal-content h2 {
    color: var(--accent-green);
}
#solo-win-modal .modal-content p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-primary);
}
#solo-win-modal #solo-modal-record-message {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.3em;
    margin-bottom: 25px;
}
#solo-win-modal .btn {
    padding: 12px 20px;
    font-size: 1.1em;
}
.modal-button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}
.modal-button-container .btn {
    font-size: 1em;
    padding: 10px 20px;
}

/* ===== STOPKA ===== */
footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

.footer-content {
    font-family: var(--font-main);
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 700;
}
.footer-content a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.footer-content a:hover {
    color: var(--accent-blue);
}


/* ===== STYLE OSIĄGNIĘĆ / RANKINGU ===== */

#achievements-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
}
#achievements-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}
#auth-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
}
#auth-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

#leaderboard-btn {
    position: absolute;
    bottom: 20px;
    right: 80px; 
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
}
#leaderboard-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}


#achievements-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    max-height: 40vh;
    overflow-y: auto;
    text-align: left;
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    max-height: 40vh;
    overflow-y: auto;
    text-align: left;
    font-size: 1.1em;
}
.leaderboard-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--bg-light);
}
.leaderboard-list li:nth-child(1) {
    background: #fffbe6;
    border: 2px solid #ffe58f;
    font-weight: 800;
}
.leaderboard-list li:nth-child(2) {
    background: #f0f0f0;
}
.leaderboard-list li:nth-child(3) {
    background: #fff0e6;
}
html.dark-mode .leaderboard-list li {
    background: var(--input-bg);
}
html.dark-mode .leaderboard-list li:nth-child(1) {
    background: #4d442a;
    border-color: #a78d4d;
}
html.dark-mode .leaderboard-list li:nth-child(2) {
    background: #444;
}
html.dark-mode .leaderboard-list li:nth-child(3) {
    background: #4f3b2e;
}

.leaderboard-list .rank-name {
    font-weight: 700;
}
.leaderboard-list .rank-score {
    font-weight: 800;
    color: var(--accent-blue);
}


.achievement-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: var(--bg-light);
    opacity: 0.5;
}

.achievement-item.unlocked {
    opacity: 1;
    background: #fff;
    border: 2px solid var(--accent-green);
}
html.dark-mode .achievement-item.unlocked {
    background: var(--bg-white);
}

.achievement-icon {
    font-size: 2em;
    margin-right: 15px;
}

.achievement-details h5 {
    font-weight: 800;
    font-size: 1.1em;
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.achievement-details p {
    font-size: 0.9em;
    margin: 0;
    color: var(--text-secondary);
}

.achievement-item.unlocked .achievement-details h5 {
    color: var(--accent-green);
}

/* ===== STYLE POWIADOMIENIA (TOAST) ===== */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 150px);
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-3);
    display: flex;
    align-items: center;
    padding: 15px 20px;
    z-index: 2000;
    
    opacity: 0;
    pointer-events: none;
    
    transition: transform 0.5s cubic-bezier(0.21, 1.02, 0.73, 1), 
                opacity 0.5s ease,
                background-color 0.3s;
}
.toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.toast-icon {
    font-size: 1.5em;
    margin-right: 15px;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 800;
    font-size: 1.1em;
    color: var(--text-primary);
}

.toast-message {
    font-weight: 400;
    color: var(--text-secondary);
}

/* ===== STYLE DLA STRON TEKSTOWYCH (POMOC, BLOG) ===== */
.page-content {
    text-align: left;
    max-width: 700px;
}
.page-content h3 {
    margin-top: 30px;
    color: var(--accent-blue);
}
.page-content p, .page-content li {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-primary);
}
.page-content ul, .page-content ol {
    margin-left: 20px;
}
.page-content .btn {
    margin-top: 20px;
    display: inline-block;
}
.article-link {
    border-bottom: 2px solid var(--input-bg);
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.article-link h3 {
    margin-top: 10px;
    margin-bottom: 10px;
}
.article-link h3 a {
    text-decoration: none;
    color: var(--accent-blue);
}
.article-link h3 a:hover {
    text-decoration: underline;
}
.article-link p {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Metadane artykułu (data) */
.article-meta {
    font-size: 0.9em !important;
    font-weight: 700;
    color: var(--text-secondary) !important;
    margin-top: -20px;
}
/* ===== STYLE BANERA COOKIE ===== */
#cookie-consent-banner {
    position: fixed; /* Przyklejony */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    width: 600px;
    z-index: 2000; /* Nad wszystkim innym */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
#cookie-consent-banner p {
    font-size: 0.9em;
    color: var(--text-secondary);
    text-align: left;
    margin: 0;
    line-height: 1.5;
}
#cookie-consent-banner p a {
    color: var(--accent-blue);
    font-weight: 700;
}
#cookie-consent-banner .btn {
    flex-shrink: 0; /* Zapobiegaj zmniejszaniu się przycisku */
}

/* Dostosowanie do małych ekranów */
@media (max-width: 700px) {
    #cookie-consent-banner {
        flex-direction: column;
        bottom: 10px;
        max-width: calc(100% - 20px);
    }
    #cookie-consent-banner p {
        text-align: center;
        margin-bottom: 10px;
    }
}