:root {
    --brand-teal: #4a69e2; 
    --brand-blue: #4a69e2;
    --brand-orange: #4a69e2; 
    --brand-dark: #2a3a5a; 
    --accent-color: #007AFF; 
    --bg-color: #ffffff;
    --text-primary: #1d1d1f; 
    --text-secondary: #86868b; 
    --border-color: #d2d2d7;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    transition: all 0.5s ease-in-out;
}

b, strong {
    font-weight: bolder;
    color:var(--text-primary);
}

/* --- Top Menu --- */
.top-link {
    font-size: 14px;
}
.top-link:hover {
    text-decoration: underline !important;
}

/* --- Stan Początkowy (Landing) --- */
body.landing-page #mainContainer {
    justify-content: center;
    padding-bottom: 100px; /* offset for visual balance */
}

body.landing-page #resultsArea {
    display: none;
}
.search-input {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px); /* Efekt "glassmorphism" */
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    border-color: var(--accent-color);
}

body.landing-page #searchHeader {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.big-logo {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -2px;
    cursor: pointer;
    user-select: none;
    color: var(--brand-blue);
}
.big-logo span:nth-child(even) { color: var(--brand-teal); }
.big-logo span:last-child { color: var(--brand-orange); }

/* Pasek wyszukiwania */
.search-container {
    position: relative;
    width: 100%;
}

#offersContainer, #counter, #loadMoreBtn {
    max-width: 1200px;
}

.search-input {
    width: 100%;
    padding: 14px 25px;
    padding-left: 50px;
    padding-right: 90px; /* Space for AI pill */
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background-color: #fff;
    transition: box-shadow 0.2s;
}

.search-input:hover {
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
    border-color: rgba(223,225,229,0);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 1px 6px rgba(32,33,36,0.28);
    border-color: rgba(223,225,229,0);
}

.search-icon {
    color: #9aa0a6;
    width: 20px;
    height: 20px;
}

.search-icon-wrapper {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.ai-pill {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid var(--brand-teal);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--brand-blue);
    font-weight: 500;
    transition: all 0.2s;
}

.ai-pill:hover {
    background: var(--brand-teal);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,204,221,0.2);
}

/* --- Stan po wyszukaniu (Results) --- */
body.results-page #topMenu, 
body.results-page #footerArea {
    display: none !important; /* W wynikach ukrywamy te elementy, chociaż Google też je czasami ma mniejsze */
}

body.results-page #mainContainer {
    justify-content: flex-start;
    align-items: flex-start;
}

/* Przesunięcie i Wyśrodkowanie Nagłówka */
body.results-page #searchHeader {
    position: sticky;
    top: 0;
    width: 100%;
    background: #fff;
    padding: 15px 30px;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center; /* Wyśrodkowanie samego nagłówka */
    transition: all 0.5s ease-in-out;
}

body.results-page .big-logo {
    font-size: 32px;
    margin-bottom: 0;
    margin-right: 40px;
    letter-spacing: -1px;
}

body.results-page .search-container {
    max-width: 690px;
    flex-grow: 1;
    min-width: 150px !important;
}

body.results-page .landing-btn-container {
    display: none !important;
}

body.results-page .search-input {
    padding: 12px 20px;
    padding-left: 45px;
    font-size: 16px;
    padding-right: 90px;
}

/* Obszar Wyników */
#resultsArea {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Wyśrodkowanie bloku wyników 1200px na całej szerokości */
    padding: 30px 40px;
    flex-grow: 1;
}

#offersContainer {
    margin-left: 0; /* Align left */
}

#counter {
    font-size: 14px;
    color: #70757a;
    margin-bottom: 20px;
    margin-left: 0;
}

/* Przycisk rozwijania */
.expand-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 10px;
    color: var(--brand-blue);
    font-size: 14px;
    text-align: center;
    border-top: 1px solid #eee;
    transition: background 0.2s;
}
.expand-btn:hover { background-color: #f8f9fa; color: var(--brand-teal); text-decoration: underline; }

/* Karta z wynikami */
.offer-card {
    background: #fff;
    border: none; /* Usunięto obramowanie dla uproszczenia (styl mobile/google) */
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header-custom {
    padding: 0 0 10px 0;
}

.offer-title {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--brand-blue);
    margin: 0;
    margin-bottom: 5px;
    cursor: pointer;
    line-height: 1.3;
}
.offer-title:hover {
    color: var(--brand-teal);
    text-decoration: underline;
}

.badge-main { background-color: #e0faff; color: #008899; font-weight: 500; font-size: 12px;}
.badge-sub { background-color: #fff3e0; color: #e65100; font-weight: 500; font-size: 12px;}
.badge-action { background-color: #e8f5e9; color: #2e7d32; font-weight: 500; font-size: 12px;}

.tag-pill {
    display: inline-block;
    background-color: #f1f3f4;
    color: #5f6368;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.quick-metrics {
    display: flex;
    gap: 20px;
    background-color: transparent;
    padding: 0;
    border: none;
    margin: 10px 0 0 0;
}
.metric-item { display: flex; flex-direction: column; }
.metric-label { font-size: 12px; color: #70757a; }
.metric-value { font-size: 14px; color: #4d5156; }
.metric-value.highlight { color: #d93025; font-weight: 500; }

.expanded-content {
    padding: 15px 20px;
    border: 1px solid #dfe1e5;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
}
.section-title { font-weight: 500; color: #202124; margin-bottom: 10px; margin-top: 15px; font-size: 16px;}
.section-title:first-child { margin-top: 0; }
.seo-box { background-color: transparent; border: none; padding: 0; border-radius: 0; color: #4d5156; }

.swot-list { list-style: none; padding: 0; margin: 0; }
.swot-list li { position: relative; padding-left: 20px; margin-bottom: 5px; }
.swot-list li::before { content: '✓'; position: absolute; left: 0; color: #0F9D58; font-weight: 700; }
.swot-list.risks li::before { content: '✕'; color: #DB4437; }

.doc-link { display: inline-block; text-decoration: none; margin-bottom: 3px; margin-right: 15px;}
.doc-link:hover { text-decoration: underline; }

.spinner-container {
    display: none;
    text-align: center;
    padding: 50px;
}

#loadingText {
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.loading-text-animate {
    opacity: 0;
    transform: translateY(5px);
}

#loadMoreBtn {
    display: none;
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 1px solid #dfe1e5;
    border-radius: 20px;
    color: var(--brand-blue);
    font-weight: 500;
    margin-bottom: 80px;
    transition: background-color 0.2s;
}
#loadMoreBtn:hover {
    background-color: #f8f9fa;
}

/* Dodatki footer */
.footer-link {
    color: #70757a;
    text-decoration: none;
}
.footer-link:hover {
    text-decoration: underline !important;
}

.landing-btn {
    background-color: #f8f9fa;
    border: 1px solid #f8f9fa;
    color: #3c4043;
    padding: 0 16px;
    height: 36px;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 400;
}
.landing-btn:hover {
    border-color: #dfe1e5;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    color: #202124;
}


/* --- Artykuły (O nas, Możliwości, Dla Firm itp.) --- */
.article-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.7;
}

.article-lead {
    font-size: 1.35rem;
    font-weight: 300;
    color: #5f6368;
    margin-bottom: 2.5rem;
    letter-spacing: -0.3px;
}

.article-content h2 {
    font-family: 'Product Sans', sans-serif;
    color: var(--brand-blue);
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3.5rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.5px;
}

.article-content h3 {
    font-family: 'Product Sans', sans-serif;
    color: #202124;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 2.2rem;
    margin-bottom: 1rem;
}

.article-content p {
    font-size: 1.15rem;
    color: #3c4043;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.article-content ul {
    font-size: 1.15rem;
    color: #3c4043;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 1rem;
}

.article-content li strong {
    font-weight: 600;
    color: #202124;
}

.hero-section {
    padding-top: 60px;
    padding-bottom: 30px;
}

/* Klasy do obrazków responsywnych */
.img-article {
    border-radius: 20px;
}

@media (max-width: 767.98px) {
    .img-article {
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
        margin: 20px 0 !important;
        display: block !important;
    }
}

@media (min-width: 768px) {
    .img-article-left {
        max-width: 250px;
        float: left;
        margin-top: 10px;
        margin-right: 30px;
        margin-bottom: 20px;
    }
    .img-article-right {
        max-width: 250px;
        float: right;
        margin-top: 10px;
        margin-left: 30px;
        margin-bottom: 20px;
    }
    .img-article-center {
        max-width: 250px;
        margin: 20px auto;
        display: block;
    }
}
