/*
Theme Name: Powiadamia
Theme URI: https://powiadamia.cz
Author: Powiadamia
Description: Motyw SaaS z czerwono-białym designem dla powiadamia.cz
Version: 1.0.0
Text Domain: powiadamia
*/

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --red:         #C8111A;
    --red-dark:    #A00E15;
    --red-light:   #E8313A;
    --white:       #FFFFFF;
    --gray-bg:     #F4F6F9;
    --gray-border: #E0E4EA;
    --gray-text:   #666;
    --dark:        #2C2C2C;
    --sidebar-w:   230px;
    --topbar-h:    60px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--gray-bg);
    color: var(--dark);
    font-size: 14px;
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ===== TOPBAR ===== */
.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--topbar-h);
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.topbar-logo {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-logo .logo-dot {
    display: inline-block;
    width: 10px; height: 10px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-right a {
    color: #fff;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.topbar-right a:hover { background: rgba(255,255,255,0.15); }

.topbar-right .btn-accent {
    background: rgba(0,0,0,0.2);
    font-weight: 700;
}

.topbar-right .topbar-sep {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.25);
    margin: 0 4px;
}

/* ===== LAYOUT (zalogowany) ===== */
.layout-wrap {
    display: flex;
    padding-top: var(--topbar-h);
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-w);
    background: #fff;
    border-right: 1px solid var(--gray-border);
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-nav { flex: 1; }

.sidebar-section { margin-bottom: 4px; }

.sidebar-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #aaa;
    padding: 10px 20px 4px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #444;
    font-size: 13.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.sidebar-nav li a:hover,
.sidebar-nav li.active a {
    background: #FFF0F0;
    color: var(--red);
    border-left-color: var(--red);
}

.sidebar-nav li.active a { font-weight: 600; }

.sidebar-nav li a .nav-icon {
    width: 18px;
    height: 18px;
    opacity: 0.65;
    flex-shrink: 0;
}

.sidebar-nav li a:hover .nav-icon,
.sidebar-nav li.active a .nav-icon { opacity: 1; }

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-border);
    font-size: 12px;
    color: #bbb;
}

/* ===== MAIN CONTENT (zalogowany) ===== */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 32px;
    min-width: 0;
}

.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 22px; font-weight: 700; }
.page-header p { color: var(--gray-text); margin-top: 4px; font-size: 13px; }

.card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-border);
}

/* ===== HOMEPAGE (wylogowany) ===== */
.home-page { padding-top: var(--topbar-h); min-height: 100vh; }

.hero {
    background: linear-gradient(135deg, var(--red) 0%, #8B0000 100%);
    color: #fff;
    padding: 80px 24px 120px;
    text-align: center;
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 17px;
    opacity: 0.88;
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #f2f2f2; transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-full { width: 100%; justify-content: center; }

/* Auth cards */
.auth-section {
    max-width: 880px;
    margin: -60px auto 0;
    padding: 0 20px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 640px) {
    .auth-section { grid-template-columns: 1fr; margin-top: 20px; }
    .hero h1 { font-size: 28px; }
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.09);
}

.auth-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.auth-card .auth-sub {
    font-size: 13px;
    color: var(--gray-text);
    margin-bottom: 24px;
}

/* Forms */
.form-group { margin-bottom: 14px; }

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--gray-border);
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(200,17,26,0.08);
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group { flex: 1; }

.form-footer {
    margin-top: 14px;
    font-size: 12.5px;
    color: #999;
    text-align: center;
}

.form-footer a { color: var(--red); font-weight: 600; }

.notice {
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 13px;
    margin-bottom: 14px;
}

.notice-error { background: #FFF0F1; border: 1px solid #FFBBBF; color: var(--red); }
.notice-success { background: #F0FFF5; border: 1px solid #BBF0CC; color: #2D7A44; }

/* Features section */
.features {
    padding: 60px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.features-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: 10px;
    padding: 28px;
    text-align: center;
}

.feature-icon {
    width: 50px; height: 50px;
    background: #FFF0F0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--red);
    font-size: 22px;
}

.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--gray-text); line-height: 1.6; }

/* Footer */
.site-footer {
    background: var(--dark);
    color: #aaa;
    text-align: center;
    padding: 24px;
    font-size: 12.5px;
}

.site-footer a { color: var(--red); }

/* Responsywność */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 20px; }
}
