/* style.css - Design inspirowany ExamAi */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #0a0a0c;       /* Bardzo ciemne tło */
    --card-bg: #13131a;       /* Nieco jaśniejsze karty */
    --card-border: #2d2d3a;   /* Obramowanie kart */
    --primary: #8b5cf6;       /* Fioletowy neon */
    --secondary: #ec4899;     /* Różowy neon */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --success: #10b981;
    --glass: rgba(255, 255, 255, 0.03);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* --- NAGŁÓWEK / NAWIGACJA --- */
.navbar {
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px); /* Efekt szkła */
    border-bottom: 1px solid var(--card-border);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--text-main); }

/* --- PRZYCISKI NEONOWE --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4); /* Fioletowa poświata */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

.btn-login {
    background: var(--glass);
    border: 1px solid var(--card-border);
    color: white;
}
.btn-login:hover { background: rgba(255,255,255,0.1); }

/* --- UKŁAD GŁÓWNY --- */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- GLOW EFFECT (Tło) --- */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    pointer-events: none;
}

/* --- KARTY KURSÓW --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-img-real, .card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #1f1f2e; /* Placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.card-body { padding: 25px; }

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.card-price {
    font-size: 1.1rem;
    color: var(--secondary); /* Różowy dla ceny */
    font-weight: 700;
    margin-bottom: 15px;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* --- TYPOGRAFIA NAGŁÓWKÓW --- */
h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}
.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* --- FORMULARZE (Login/Admin) --- */
input, select, textarea {
    background: var(--bg-dark);
    border: 1px solid var(--card-border);
    color: white;
    padding: 12px;
    border-radius: 6px;
    width: 100%;
    outline: none;
}
input:focus { border-color: var(--primary); }

/* --- DODATKI DLA PANELU ADMINA --- */
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th { text-align: left; padding: 15px; background: rgba(255,255,255,0.05); color: var(--text-main); border-bottom: 1px solid var(--card-border); }
td { padding: 15px; border-bottom: 1px solid var(--card-border); color: var(--text-muted); }
tr:hover td { background: rgba(255,255,255,0.02); }

.panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.admin-nav {
    background: rgba(20, 20, 25, 0.9);
    border-bottom: 1px solid var(--primary);
    padding: 15px 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dostosowanie linków w adminie */
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Poprawka dla selectów w adminie */
select option { background: var(--bg-dark); color: white; }
