/* Import czcionki Inter zgodnie ze style guide  */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

:root {
    /* Color Palette [cite: 33, 34, 35] */
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --electric-blue: #3b82f6;
    --neon-blue: #00f2ff;
    --plate-yellow: #facc15;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --danger-red: #ef4444;
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Background Effect - Dynamiczne tlo */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 255, 0.05) 0%, transparent 40%);
    z-index: -1;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    padding: 2rem 10%;
    align-items: center;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.btn-nav {
    background: linear-gradient(135deg, var(--neon-blue), var(--electric-blue));
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: #fff !important;
    font-weight: 700;
    margin-left: 2rem;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    text-decoration: none;
    display: inline-block;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.menu-toggle {
    display: none;
    /* Hidden on desktop */
}

/* Hero Section */
.hero {
    padding: 8rem 10% 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Common Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.section-header p {
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Glassmorphism Cards [cite: 38, 40] */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 10%;
}

.feature-item {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: var(--electric-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.feature-item:hover::after {
    transform: translateX(100%);
}

.icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Risk Gauges - Wizualizacja 0-100 Score  */
.score-demo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid var(--success-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 1rem auto;
    color: var(--success-green);
}

/* Testimonials / Reviews */
.testimonials {
    padding: 6rem 10%;
    background: rgba(15, 23, 42, 0.5);
}

.review-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--plate-yellow);
    margin-bottom: 1.5rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: 0.2s;
}

.delete-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.approve-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: 0.2s;
}

.approve-btn:hover {
    transform: scale(1.2);
    opacity: 1;
}

.pending-review {
    border-left: 4px solid var(--warning-orange);
    background: rgba(245, 158, 11, 0.1);
}

.status-badge {
    font-size: 0.7rem;
    background: var(--warning-orange);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Buttons */
/* Buttons */
.btn-primary {
    background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    text-transform: none;
    letter-spacing: 0.5px;
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #fcd34d 0%, #fbbf24 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}



/* Nowoczesny formularz "Share your experience" */
.glass-form-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.add-review-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 30px;
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.add-review-glass h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.glass-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 15px;
    border-radius: 12px;
    width: 100%;
    transition: 0.3s;
}

.glass-input:focus {
    border-color: var(--electric-blue);
    outline: none;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.btn-secondary-neon {
    background: transparent;
    border: 2px solid var(--plate-yellow);
    color: var(--plate-yellow);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 1rem;
    width: 100%;
    transition: 0.3s;
}

.btn-secondary-neon:hover {
    background: var(--plate-yellow);
    color: #000;
    box-shadow: 0 0 20px var(--plate-yellow);
}

/* Comparison Table Styles */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    color: #e2e8f0;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 700;
    color: var(--neon-blue);
}

.price {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 1rem 0;
}

.badge {
    background: var(--neon-blue);
    color: var(--bg-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 900;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {

    /* Navigation */
    nav {
        flex-direction: row;
        /* Keep row for logo and toggle */
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 1rem 5%;
        background: rgba(15, 23, 42, 0.95);
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 101;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 3px;
        transition: 0.3s;
    }

    .nav-links {
        display: none;
        /* Hide by default */
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-top: 1.5rem;
        width: 100%;
        padding-bottom: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 2rem;
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
    }

    .nav-links a {
        margin-left: 0;
        font-size: 1.2rem;
    }

    .btn-nav {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 5% 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
        /* Smaller font for mobile */
    }

    .hero p {
        font-size: 1rem;
    }

    /* Features & Grid */
    .features-grid {
        grid-template-columns: 1fr;
        /* Stack columns */
        padding: 2rem 5%;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

    /* Comparison Table (Horizontal Scroll) */
    .glass-form-container {
        overflow-x: auto;
        display: block;
        /* Allow block for scrolling */
        padding: 1rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }

    /* Buttons in table */
    .price {
        font-size: 2rem;
    }

    /* Review Form */
    .add-review-glass {
        padding: 1.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    .glass-input {
        width: 100%;
    }
}