/* ===================================================================================

* Theme Name: Appilo Child
* Theme URI: https://themeforest.net/item/appilo-app-landing-wordpress-theme/22358661
* Author: ThemeXriver
* Author URI: https://themeforest.net/user/themexriver
* Description: Appilo One Page App Landing WordPress Theme
* Version: 7.0.0
* Template: appilo
* Text Domain: appilo-child
* License: GNU General Public License version 3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Tags: one-column, right-sidebar, left-sidebar, custom-menu, featured-images, post-formats, sticky-post, translation-ready

* We encourage you to create Child theme for any modifications you will want to do.

* Why use Child theme?

* Because of appilo updates we may provide for this theme that will overwrite your
* modifications and all your custom work.

* If you are not familiar with Child Themes, you can read about it here:
* http://codex.wordpress.org/Child_Themes
* http://wp.tutsplus.com/tutorials/theme-development/child-themes-basics-and-creating-child-themes-in-wordpress/

====================================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Simple Post Layout - tylko header, tekst i stopka */
.simple-post-layout {
    background: #f8f9fa;
    padding: 2rem 0;
    min-height: 80vh;
}

.simple-post {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem auto;
    padding: 3rem;
    max-width: 800px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.simple-post .post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.simple-post .post-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-weight: 800;
    line-height: 1.2;
}

.simple-post .post-meta {
    color: #666666;
    font-weight: 600;
    font-size: 1.1rem;
}

.simple-post .post-meta .post-date {
    margin-right: 1rem;
}

/* Spis treści - lewa kolumna */
.post-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.post-toc h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333333;
}

.post-toc .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-toc .toc-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.post-toc .toc-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: #333333;
    border-radius: 50%;
}

.post-toc .toc-list a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.2rem 0;
}

.post-toc .toc-list a:hover {
    color: #000000;
}

.post-toc .toc-list a.active {
    color: #000000;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    margin: 0 -0.5rem;
}

.post-toc .toc-list .toc-h2 {
    font-weight: 600;
}

.post-toc .toc-list .toc-h3 {
    padding-left: 1rem;
    font-size: 0.9rem;
}

.post-toc .toc-list .toc-h4 {
    padding-left: 2rem;
    font-size: 0.85rem;
}

.simple-post .post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.simple-post .post-content h1,
.simple-post .post-content h2,
.simple-post .post-content h3,
.simple-post .post-content h4,
.simple-post .post-content h5,
.simple-post .post-content h6 {
    color: #2c3e50;
    font-weight: 700;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.simple-post .post-content h2 {
    font-size: 1.8rem;
    color: #333333;
    border-bottom: 2px solid #333333;
    padding-bottom: 0.5rem;
}

.simple-post .post-content h3 {
    font-size: 1.5rem;
    color: #333333;
}

.simple-post .post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.simple-post .post-content ul,
.simple-post .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.simple-post .post-content ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1rem;
}

.simple-post .post-content ul li::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.8rem;
    width: 6px;
    height: 6px;
    background: #333333;
    border-radius: 50%;
}

.simple-post .post-content blockquote {
    border-left: 4px solid #333333;
    background: #f8f9fa;
    padding: 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 0 8px 8px 0;
}

.simple-post .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.simple-post .post-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
}

.simple-post .post-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.simple-post .post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.simple-post .post-footer {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.simple-post .post-categories,
.simple-post .post-tags {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.simple-post .post-categories:last-child,
.simple-post .post-tags:last-child {
    margin-bottom: 0;
}

.simple-post .post-categories a,
.simple-post .post-tags a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.simple-post .post-categories a:hover,
.simple-post .post-tags a:hover {
    color: #000000;
}

/* Responsive */
@media (max-width: 1024px) {
    .simple-post {
        margin: 1rem;
        padding: 2rem;
    }
    
    .simple-post .post-title {
        font-size: 2rem;
    }
    
    .simple-post .post-content {
        font-size: 1rem;
    }
    
    /* Na mobile - zmiana kolejności kolumn */
    .simple-post-layout .row {
        display: flex;
        flex-direction: column;
    }
    
    .simple-post-layout .col-md-3 {
        order: -1; /* Spis treści na górze */
        margin-bottom: 1rem;
        width: 100%; /* Pełna szerokość na mobile */
        flex: 0 0 100%;
    }
    
    .simple-post-layout .col-md-9 {
        order: 1; /* Treść na dole */
        width: 100%; /* Pełna szerokość na mobile */
        flex: 0 0 100%;
    }
    
    /* Na mobile - spis treści na górze */
    .post-toc {
        position: static;
        margin-bottom: 1rem;
        background: #ffffff;
        padding: 2rem;
        margin-top: 3rem;
    }

    .simple-post-layout .col-md-3{
        max-width: 100%;
    }

    .simple-post-layout .col-md-9{
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .simple-post {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .simple-post .post-title {
        font-size: 1.75rem;
    }
    
    .post-toc {
        padding: 1rem;
    }
}