
:root {
    /* Dark Mode (Default) */
    --bg-color: #0f172a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    
    /* Glass Effect Variables (Dark) */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-card-border: 1px solid rgba(255, 255, 255, 0.15);
    
    --accent-color: #00f2fe;
    --danger-color: #ff6b6b;
    --success-color: #51cf66;
    
    --secondary-gradient: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    --backdrop-blur: blur(12px);
}

/* Light Mode Variables */
body.light-mode {
    --bg-color: #f0f2f5;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    
    /* Glass Effect Variables (Light) */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-card-border: 1px solid rgba(255, 255, 255, 0.9);
    
    --accent-color: #2563eb; /* Darker blue for light mode */
    --secondary-gradient: linear-gradient(to right, #2563eb 0%, #1d4ed8 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
}

.tools-hs {
    border-radius: 20px;
    padding: 5px;
    margin-bottom: 1rem;
}
.tools-hs a {
    color: var(--text-secondary);
}

.tools-hsp {
    border-radius: 20px;
    padding: 5px;
    margin-bottom: 1rem;
    margin-top: 1rem;
}
.tools-hsp a {
    color: var(--text-secondary);
}

.tools-hsb {
    border-radius: 20px;
    padding: 5px;
    margin-top: 1rem;
}
.tools-hsb a {
    color: var(--text-secondary);
}

/* Sztywny kontener chroni przed skakaniem strony (SEO: CLS) */
.ad-rotator-box {
    width: 100%;
    max-width: 100%;
    /* max-width: 300px; Dostosuj do wymiarów banera */
    height: 100px;
    margin: 20px auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9; 
    border-radius: 8px;
}

/* Klasy do płynnego przejścia (fade) */
.fade-transition {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.fade-transition.visible {
    opacity: 1;
    visibility: visible;
}


/* Abstract Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s infinite alternate;
}

body.light-mode .bg-shape {
    opacity: 0.4; /* Softer blobs in light mode */
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #764ba2;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #4facfe;
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #ff0080;
    top: 40%;
    left: 40%;
    opacity: 0.4;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}

/* Common Glass Classes */
.glass-nav, .glass-panel, .glass-footer, .mobile-menu-content {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-footer a{
    color: var(--accent-color);
}

.glass-footer a:hover{
    color: var(--text-secondary);
}

/* Navigation */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 1.5rem;
    border-bottom: var(--glass-border);
    border-top: none;
    border-left: none;
    border-right: none;
}

.nav-container {
    max-width: 1400px; /* Wider to fit 15 links */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.highlight {
    color: var(--accent-color);
}

/* Desktop Links */
.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--text-secondary);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

body.light-mode .theme-toggle:hover {
    background: rgba(0,0,0,0.05);
}

.theme-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 101; 
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    display: flex;
    justify-content: flex-end;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-content {
    width: 85%;
    max-width: 320px;
    height: 100%;
    padding: 2rem;
    padding-top: 4rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: var(--glass-border);
    background: var(--bg-color); /* Matches theme */
    overflow-y: auto;
    position: relative;
    border-radius: 0; /* Full height */
}

body.light-mode .mobile-menu-content {
    background: rgba(255, 255, 255, 0.95);
}

body:not(.light-mode) .mobile-menu-content {
    background: rgba(15, 23, 42, 0.95);
}

.mobile-menu-overlay.open .mobile-menu-content {
    transform: translateX(0);
}

.mobile-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2001;
}

.mobile-links-list {
    list-style: none;
}

.mobile-links-list li {
    margin-bottom: 0.5rem;
}

.mobile-links-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(128,128,128,0.1);
    transition: color 0.2s;
}

.mobile-links-list a:hover, .mobile-links-list a.active {
    color: var(--accent-color);
    padding-left: 10px;
}

/* Main Layout */
.main-container {
    max-width: 1600px; /* Increased from 1200px to give map more space */
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
    width: 100%;
}

/* Global Buttons & Inputs */
.btn-glass {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-primary);
    padding: 0 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

body.light-mode .btn-glass {
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-glass:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Footer */
.glass-footer {
    margin-top: auto;
    padding: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-bottom: none;
    border-left: none;
    border-right: none;
}


/* SEO Content Section */
.seo-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.seo-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.seo-content strong {
    color: var(--text-primary);
}

/* FAQ Section */
.faq-panel {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 20px;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .panel-header h2 { font-size: 1.2rem; }
    
    .shape-1 { left: -200px; }
    .shape-2 { right: -150px; }
    
    .main-container { padding: 0 1rem; }
}
