/* TrudneSlowa.pl - Complete Professional Styles */

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

:root {
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent: #1e40af;
    --accent-hover: #1e3a8a;
    --accent-light: #3b82f6;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --success: #059669;
    --danger: #dc2626;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* Header & Navigation */
header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.02em;
    text-decoration: none;
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.8;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-auth {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-login {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    border: 1px solid var(--border);
    background: var(--bg-white);
    white-space: nowrap;
}

.btn-login:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-signup {
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
    display: inline-block;
}

.btn-signup:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

/* Hero Sections */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Main Content Area */
main {
    flex: 1;
}

/* Generator Section */
.generator-section {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 56px;
    max-width: 900px;
    margin: 60px auto 80px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.step-indicator {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
    justify-content: center;
}

.step {
    height: 3px;
    width: 70px;
    background: var(--border);
    border-radius: 10px;
    transition: all 0.3s;
}

.step.active {
    background: var(--accent);
}

.form-group {
    margin-bottom: 40px;
}

.form-group.hidden {
    display: none;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-primary);
}

/* Quick Start Tags */
.quick-start-container {
    position: relative;
    margin-bottom: 16px;
}

.quick-start-tags {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.quick-start-tags::-webkit-scrollbar {
    height: 6px;
}

.quick-start-tags::-webkit-scrollbar-track {
    background: transparent;
}

.quick-start-tags::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.quick-start-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 8px;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--bg-white));
    pointer-events: none;
}

.quick-tag {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.quick-tag:hover {
    border-color: var(--accent);
    background: var(--bg-white);
    color: var(--accent);
}

/* Situation Grid */
.situation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.situation-btn {
    padding: 20px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: inherit;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.situation-btn:hover {
    border-color: var(--accent);
    background: var(--bg-light);
    box-shadow: var(--shadow-sm);
}

.situation-btn.selected {
    border-color: var(--accent);
    background: var(--bg-light);
    box-shadow: var(--shadow-md);
}

.situation-btn strong {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.situation-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
    flex-shrink: 0;
}

/* Form Elements */
textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: all 0.2s;
}

textarea::placeholder {
    color: var(--text-muted);
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: var(--bg-white);
    color: var(--text-primary);
    transition: all 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.relationship-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

/* Tone Options */
.tone-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tone-btn {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
}

.tone-btn:hover {
    border-color: var(--accent);
    background: var(--bg-light);
}

.tone-btn.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

/* Buttons */
.generate-btn,
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 32px;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.generate-btn:hover:not(:disabled),
.submit-btn:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

.generate-btn:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

.generate-btn.loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.trust-signal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-secondary);
}

.trust-signal svg {
    width: 14px;
    height: 14px;
    color: var(--success);
}

/* Results */
.results {
    display: none;
    margin-top: 48px;
}

.results.show {
    display: block;
}

.result-free {
    background: var(--bg-light);
    padding: 28px;
    border-radius: 8px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
}

.result-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.copy-btn {
    padding: 8px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text-primary);
}

.copy-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Premium Teaser */
.premium-teaser {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.premium-teaser::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.95) 50%);
    z-index: 1;
}

.blurred-previews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 28px;
    filter: blur(6px);
    opacity: 0.5;
}

.blurred-preview {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.premium-cta-content {
    position: relative;
    z-index: 2;
}

.premium-cta-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.premium-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}

.premium-cta-btn:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

/* Pricing Page */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 60px auto 80px;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--accent);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 20px 0;
    line-height: 1;
}

.pricing-card .price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin: 24px 0 32px;
}

.pricing-features li {
    padding: 12px 0;
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-features li svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pricing-btn.primary {
    background: var(--accent);
    color: white;
}

.pricing-btn.primary:hover {
    background: var(--accent-hover);
}

.pricing-btn.secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.pricing-btn.secondary:hover {
    background: var(--bg-white);
    border-color: var(--accent);
}

/* Security Page */
.security-content {
    max-width: 800px;
    margin: 60px auto 80px;
    background: var(--bg-white);
    padding: 56px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.security-feature {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.security-feature:last-child {
    border-bottom: none;
}

.security-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.security-feature h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.security-feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Knowledge Base */
.kb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 60px auto 80px;
}

.kb-article {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
    cursor: pointer;
}

.kb-article:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.kb-category {
    display: inline-block;
    background: var(--bg-light);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.kb-article h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.kb-article p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.kb-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Contact Form */
.contact-content {
    max-width: 700px;
    margin: 60px auto 80px;
    background: var(--bg-white);
    padding: 56px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-field {
    margin-bottom: 24px;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Footer */
footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent);
    color: white;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 968px) {
    .situation-grid,
    .tone-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid,
    .kb-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 32px;
    }

    .main-nav {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .generator-section,
    .security-content,
    .contact-content {
        padding: 32px 20px;
    }

    .situation-grid,
    .tone-options,
    .blurred-previews,
    .pricing-grid,
    .kb-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .pricing-badge {
        top: 20px;
        right: 20px;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
}
