/* PresentClic Help Center - Complete Styling */

/* Variables - PresentClic Brand Colors */
:root {
    --primary-blue: #3b82f6;
    --primary-blue-hover: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --secondary-blue: #1e40af;
    --accent-orange: #f59e0b;

    --text-color: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;

    --light-bg: #f3f4f6;
    --medium-gray: #e5e7eb;
    --dark-gray: #6b7280;
    --white: #ffffff;

    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    --shadow: rgba(0,0,0,0.1);
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-full: 9999px;

    --border-color: #e5e7eb;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Header */
.help-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    text-align: left;
    margin-bottom: 1rem;
}

.btn-back {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: white;
}

.btn-back i {
    margin-right: 0.5rem;
}

.help-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.help-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Language Selector */
.language-selector-help {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
}

.current-lang {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-weight: 500;
}

.current-lang:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s;
    z-index: 10001;
}

.lang-dropdown.show {
    max-height: 500px;
    opacity: 1;
    overflow-y: auto;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid var(--light-bg);
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--light-bg);
}

.lang-option .flag {
    font-size: 1.2rem;
}

.lang-option.active {
    background: var(--primary-blue);
    color: white;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background-color: var(--light-bg);
    padding-top: 180px;
    padding-bottom: 2rem;
    overflow-y: auto;
    transition: transform 0.3s;
    z-index: 100;
}

.sidebar ul {
    list-style: none;
}

.sidebar > ul > li {
    margin-bottom: 0.5rem;
}

.sidebar a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    background-color: var(--primary-blue);
    color: white;
    padding-left: 2rem;
}

.sidebar ul ul {
    margin-left: 1rem;
    margin-top: 0.25rem;
}

.sidebar ul ul a {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
}

/* Main Content */
.content {
    margin-left: 250px;
    padding: 2rem;
    max-width: 1000px;
}

.section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--medium-gray);
}

.section:last-child {
    border-bottom: none;
}

.section h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.section h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-color);
}

.section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.section ul,
.section ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.section li {
    margin-bottom: 0.5rem;
}

/* Platform Boxes */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.platform-box {
    background: var(--light-bg);
    border: 2px solid var(--medium-gray);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.platform-box.windows {
    border-left: 4px solid #0078d4;
}

.platform-box.macos {
    border-left: 4px solid #000000;
}

.platform-box.web {
    border-left: 4px solid #4285f4;
}

.platform-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Highlight aktualnej platformy */
.platform-windows .platform-box.windows,
.platform-macos .platform-box.macos {
    background: #f0f8ff;
    border: 3px solid var(--primary-blue);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Platform Warnings */
.platform-warning {
    background: #fff3cd;
    border: 2px solid var(--warning-color);
    border-left: 4px solid #ff9800;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
}

.platform-warning.windows-only {
    background: #fff3cd;
}

.platform-warning strong {
    color: #d84315;
    display: block;
    margin-bottom: 0.5rem;
}

.platform-notice {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-left: 4px solid #1976d2;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: var(--radius-md);
}

.platform-notice.macos-warning {
    background: #e3f2fd;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Steps */
.steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Info Boxes */
.info-box, .tip-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.tip-box {
    border-left-color: var(--accent-orange);
}

.info-box i, .tip-box i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.tip-box i {
    color: var(--accent-orange);
}

/* Requirements List */
.requirements {
    list-style: none;
    margin: 1rem 0;
}

.requirements li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.requirements i {
    color: var(--success-color);
}

/* Code blocks */
code {
    background: var(--light-bg);
    padding: 0.2rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

pre code {
    display: block;
    padding: 1rem;
    overflow-x: auto;
    background: #1f2937;
    color: #e5e7eb;
    border-radius: var(--radius-md);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow);
}

th {
    background: var(--primary-blue);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

tr:hover {
    background: var(--light-bg);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.screenshot-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
}

/* FAQ */
.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: var(--radius-md);
}

.faq-item h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    margin-top: 0;
}

/* Troubleshooting */
.troubleshoot-item {
    background: var(--light-bg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-md);
}

.troubleshoot-item h3 {
    color: var(--error-color);
    margin-bottom: 1rem;
    margin-top: 0;
}

.solution {
    margin-top: 1rem;
}

.solution h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-option {
    padding: 1.5rem;
}

.contact-option i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-option h3 {
    margin: 0.5rem 0;
}

.contact-option p {
    margin: 0.5rem 0;
}

.contact-option a {
    color: var(--primary-blue);
    text-decoration: none;
}

.contact-option a:hover {
    text-decoration: underline;
}

.response-time,
.description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.company-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

/* Footer */
.help-footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-left: 250px;
    margin-top: 4rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    transform: scale(1.1);
    background: var(--primary-blue-hover);
}

.back-to-top.show {
    display: flex;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1002;
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.2rem;
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
}

html[dir="rtl"] .content {
    margin-left: 0;
    margin-right: 250px;
}

html[dir="rtl"] .help-footer {
    margin-left: 0;
    margin-right: 250px;
}

html[dir="rtl"] ul,
html[dir="rtl"] ol {
    margin-left: 0;
    margin-right: 2rem;
}

html[dir="rtl"] .sidebar a:hover,
html[dir="rtl"] .sidebar a.active {
    padding-left: 1.5rem;
    padding-right: 2rem;
}

html[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

html[dir="rtl"] .language-selector-help {
    right: auto;
    left: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
    }

    html[dir="rtl"] .sidebar {
        transform: translateX(100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .content {
        margin-left: 0;
        padding: 1rem;
    }

    html[dir="rtl"] .content {
        margin-right: 0;
    }

    .help-footer {
        margin-left: 0;
    }

    html[dir="rtl"] .help-footer {
        margin-right: 0;
    }

    .help-header h1 {
        font-size: 2rem;
    }

    .language-selector-help {
        position: static;
        margin: 1rem auto;
        display: flex;
        justify-content: center;
    }

    .steps {
        flex-direction: column;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .platform-grid,
    .feature-grid,
    .contact-options {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }

    .content {
        margin-left: 200px;
    }

    .help-footer {
        margin-left: 200px;
    }

    html[dir="rtl"] .sidebar {
        width: 200px;
    }

    html[dir="rtl"] .content {
        margin-right: 200px;
        margin-left: 0;
    }

    html[dir="rtl"] .help-footer {
        margin-right: 200px;
        margin-left: 0;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .back-to-top,
    .header,
    .language-selector-help,
    .mobile-menu-toggle {
        display: none;
    }

    .content {
        margin-left: 0;
        max-width: 100%;
    }

    .section {
        page-break-inside: avoid;
    }
}


/* ===== DOWNLOAD BUTTONS ===== */
.download-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.download-buttons .btn-primary {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.download-buttons .btn-primary i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
    }

    .download-buttons .btn-primary {
        width: 100%;
    }
}

/* ===== HEADER FIXES ===== */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    text-align: left;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo:hover {
    opacity: 0.9;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.header-title {
    text-align: center;
    margin-top: 1rem;
}

.header-title h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.header-title .subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* Sidebar adjustment for sticky header - removed, handled in main .sidebar rule */

/* Mobile fixes */
@media (max-width: 768px) {
    .help-header {
        padding: 1rem 0;
    }

    .header-top {
        flex-direction: column;
        gap: 1rem;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-back {
        width: 100%;
        text-align: center;
    }

    .header-title h1 {
        font-size: 1.5rem;
    }

    .header-title .subtitle {
        font-size: 0.9rem;
    }

    .sidebar {
        top: 0;
        height: 100vh;
        padding-top: 1rem;
    }
}
