/* Post-specific styles */
.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-post {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.post-header {
    position: static !important;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(to bottom, var(--card-bg-light), var(--card-bg));
    border-bottom: 1px solid var(--border-color);
}

.post-meta {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.post-media {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.post-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.post-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    max-width: 70ch;
}

.post-content ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style-type: none;
}

.post-content li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.post-content li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.tech-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.tech-list li {
    background: var(--card-bg-light);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--accent-color);
}

.tech-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tech-list strong {
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.highlight-box {
    background: var(--card-bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.highlight-box h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.post-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    background: var(--card-bg-light);
}

.share-buttons {
    text-align: center;
}

.share-buttons h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-button i {
    margin-right: 0.5rem;
}

.share-button.twitter {
    background: #1DA1F2;
}

.share-button.linkedin {
    background: #0077B5;
}

.share-button.facebook {
    background: #4267B2;
}

/* Table of Contents */
.table-of-contents {
    background: var(--card-bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    
    top: 2rem;
}

.table-of-contents h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin: 0.5rem 0;
    padding: 0;
}

.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.table-of-contents a:hover {
    color: var(--accent-color);
}

.table-of-contents li::before {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-container {
        padding: 1rem;
    }

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

    .post-content {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .tech-list {
        grid-template-columns: 1fr;
    }

    .post-content h2 {
        font-size: 1.6rem;
    }

    .post-content h3 {
        font-size: 1.3rem;
    }
    
    /* Header adjustments for post pages */
    header {
        padding: 0.5rem 0;
    }
    
    header nav ul li a {
        padding: 3px 5px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .post-header h1 {
        font-size: 1.8rem;
    }

    .post-content h2 {
        font-size: 1.4rem;
    }

    .post-content h3 {
        font-size: 1.2rem;
    }

    .share-button {
        display: block;
        margin: 1rem auto;
        max-width: 200px;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Even smaller header for mobile devices */
    header {
        padding: 0.4rem 0;
    }
    
    header nav {
        padding: 0 0.5rem;
    }
    
    header nav ul {
        margin-top: 5px;
    }
    
    header nav ul li {
        margin: 2px;
    }
    
    header nav ul li a {
        padding: 2px 3px;
        font-size: 0.8rem;
    }
}

/* Navigation Links */
.portfolio-link, .blog-home {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.portfolio-link {
    color: var(--primary-color) !important;
    background-color: rgba(59, 130, 246, 0.1);
}

.blog-home {
    color: var(--accent-color) !important;
    background-color: rgba(59, 130, 246, 0.05);
}

.portfolio-link i, .blog-home i {
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.portfolio-link:hover {
    background-color: rgba(59, 130, 246, 0.2);
    transform: translateX(-5px);
}

.blog-home:hover {
    background-color: rgba(59, 130, 246, 0.15);
    transform: translateY(-3px);
}

.portfolio-link:hover i {
    transform: translateX(-5px);
}

.blog-home:hover i {
    transform: translateY(-3px);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-color);
        padding: 1rem;
        z-index: 1000;
    }
    
    header nav ul.active {
        display: flex;
    }
    
    .portfolio-link, .blog-home {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px !important;
    }
} 