/* =========================
   GLOBAL
========================= */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f5f5f7;
    margin: 0;
    padding: 0;
    color: #1f2937;
}

a {
    color: #2563eb;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   HEADER
========================= */
.header {
    background-color: #111827;
    color: #ffffff;
    padding: 22px 20px;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-header {
    max-width: 120px;
}

.subtitle {
    text-align: center;
    margin-top: 8px;
    font-size: 16px;
    color: #d1d5db;
}

/* =========================
   HERO
========================= */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 20px;
    background:
        linear-gradient(135deg, rgba(15,23,42,0.85), rgba(30,64,175,0.85)),
        url('car-bg.png') center / cover no-repeat;
    color: #ffffff;
    gap: 30px;
}

.hero-left {
    max-width: 520px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-text {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: #e5e7eb;
}

.search-section {
    display: flex;
    max-width: 100%;
}

#searchInput {
    flex: 1;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-radius: 8px 0 0 8px;
    outline: none;
}

#searchBtn {
    padding: 14px 26px;
    font-size: 16px;
    border: none;
    background-color: #2563eb;
    color: #ffffff;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

#searchBtn:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
}

.hero-right .hero-image {
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

/* =========================
   ABOUT
========================= */
.about {
    max-width: 1100px;
    margin: 70px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.about-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.about-icon {
    max-width: 90px;
    margin-bottom: 18px;
}

.about-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.about-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
}

/* =========================
   PARTNERS
========================= */
.partners {
    background-color: #eef2f7;
    padding: 60px 20px;
    text-align: center;
}

.partners h2 {
    font-size: 28px;
    margin-bottom: 35px;
}

.partner-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.partner-card {
    background: #ffffff;
    width: 190px;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-6px);
}

.partner-logo {
    max-width: 90px;
    margin-bottom: 12px;
}

/* =========================
   RESULTS – NOWE KAFELKI
========================= */
.result-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.result-card {
    background: linear-gradient(180deg, #ffffff, #f9fafb);
    padding: 26px 24px;
    margin-bottom: 22px;
    border-radius: 18px;
    box-shadow:
        0 10px 25px rgba(0,0,0,0.10),
        inset 0 1px 0 rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 22px;
    border-left: 6px solid #2563eb;
    animation: fadeInCard 0.6s forwards;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 16px 40px rgba(0,0,0,0.16),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.platform-logo {
    max-width: 90px;
    min-width: 90px;
    object-fit: contain;
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.result-info strong {
    font-size: 18px;
    letter-spacing: 0.4px;
    display: block;
    margin-bottom: 6px;
}

.result-desc {
    font-size: 14px;
    color: #4b5563;
}

.result-link {
    margin-left: auto;
    padding: 12px 22px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #ffffff;
    font-weight: 700;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37,99,235,0.45);
    text-decoration: none;
}

/* === SUGESTIA === */
.result-card.suggestion {
    border-left-color: #22c55e;
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
}

/* === BŁĄD === */
.result-card.error {
    border-left-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

/* =========================
   FOOTER
========================= */
.footer {
    background-color: #111827;
    color: #ffffff;
    text-align: center;
    padding: 26px 20px;
}

.footer-links a {
    color: #fbbf24;
    margin: 0 6px;
}

/* =========================
   TOAST – BRAK WYNIKÓW
========================= */
.toast-warning {
    position: fixed;
    top: 120px;
    right: -420px;
    width: 360px;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: #fff;
    padding: 18px 20px;
    border-radius: 12px 0 0 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    z-index: 9999;
    display: flex;
    gap: 14px;
    animation: slideInToast 0.6s ease forwards;
}

.toast-warning.hide {
    animation: slideOutToast 0.6s ease forwards;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInToast {
    from { right: -420px; }
    to { right: 0; }
}

@keyframes slideOutToast {
    from { right: 0; }
    to { right: -420px; }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 720px) {
    .result-card {
        flex-direction: column;
        text-align: center;
    }

    .result-link {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}






