/* Blog post specific styles */

/* Language toggle styling to match main site */
.language-toggle {
    background: var(--glaucous);
    color: white;
    border: 1px solid var(--glaucous);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    line-height: 1;
    vertical-align: middle;
}

.language-toggle:hover {
    background: var(--rich-black);
    color: white;
    border-color: var(--rich-black);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Mobile menu toggle styling */
.mobile-menu-toggle {
    display: flex; /* Temporarily make it always visible for debugging */
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    padding: 0.5rem;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--glaucous);
}

.mobile-menu-toggle:active {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(0.95);
}

/* Post Header */
.post-header {
    padding: 140px 0 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.post-breadcrumb {
    margin-bottom: 1rem;
}

.post-breadcrumb a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.post-breadcrumb a:hover {
    color: #5a67d8;
}

.post-meta-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.post-meta-info .post-category {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.post-meta-info .post-date,
.post-meta-info .read-time {
    color: #718096;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.post-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-subtitle {
    font-size: 1.3rem;
    color: #4a5568;
    line-height: 1.6;
    max-width: 800px;
}

/* Post Category in Header */
.post-header .post-category {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: var(--glaucous);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    margin: 1rem 0;
}

/* Post Meta Information */
.post-meta {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.meta-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.read-time {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.post-date {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline;
}

.category-badge {
    background: #f7fafc;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s ease;
}

.category-badge:hover {
    background: #edf2f7;
    border-color: #a0aec0;
}

/* Category color variations for post header */
.post-header .post-category[data-en="Strategy"],
.post-header .post-category[data-es="Estrategia"] {
    background: rgba(102, 126, 234, 0.1);
    color: var(--glaucous);
}

.post-header .post-category[data-en="Growth"],
.post-header .post-category[data-es="Crecimiento"] {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.post-header .post-category[data-en="Leadership"],
.post-header .post-category[data-es="Liderazgo"] {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.post-header .post-category[data-en="International"],
.post-header .post-category[data-es="Internacional"] {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.post-header .post-category[data-en="Performance"],
.post-header .post-category[data-es="Desempeño"] {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.post-header .post-category[data-en="Social Impact"],
.post-header .post-category[data-es="Impacto Social"] {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}

/* Post Content */
.post-content {
    padding: 40px 0 80px;
    background: white;
}

/* Post Featured Image */
.post-featured-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.post-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body .lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 0 8px 8px 0;
}

.post-body h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 3rem 0 1.5rem 0;
    line-height: 1.2;
    position: relative;
    padding-bottom: 0.75rem;
}

.post-body h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--glaucous) 0%, var(--powder-blue) 100%);
    border-radius: 2px;
}

.post-body h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2d3748;
    margin: 2.5rem 0 1.25rem 0;
    line-height: 1.3;
    position: relative;
    padding-left: 1rem;
}

.post-body h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--glaucous) 0%, var(--powder-blue) 100%);
    border-radius: 2px;
}

.post-body h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #4a5568;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.post-body h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4a5568;
    margin: 1.5rem 0 0.75rem 0;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.post-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4a5568;
    border-radius: 0 8px 8px 0;
}

.post-body blockquote p {
    margin: 0;
    font-size: 1.2rem;
}

/* Post CTA */
.post-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.post-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}

.post-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.post-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.post-cta .btn {
    background: white;
    color: #667eea;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.post-cta .btn:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    color: #5a67d8;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 4rem 0;
    align-items: center;
}

.author-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.author-info h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.author-info p {
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    background: #f8f9fa;
    padding: 60px 0;
}

.related-posts h3 {
    text-align: center;
    color: #2d3748;
    margin-bottom: 3rem;
    font-size: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.related-post {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post h4 {
    margin-bottom: 1rem;
}

.related-post h4 a {
    color: #2d3748;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.related-post h4 a:hover {
    color: #667eea;
}

.related-meta {
    color: #718096;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-title {
        font-size: 2.5rem;
    }
    
    .post-subtitle {
        font-size: 1.1rem;
    }
    
    .post-body {
        font-size: 1rem;
    }
    
    .post-body h2 {
        font-size: 1.8rem;
    }
    
    .post-body h3 {
        font-size: 1.4rem;
        padding-left: 0.75rem;
    }
    
    .post-body h3::before {
        width: 3px;
        height: 20px;
    }
    
    .post-body h4 {
        font-size: 1.2rem;
    }
    
    .post-body h5 {
        font-size: 1rem;
    }
    
    .post-body .lead {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .post-meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .post-cta {
        padding: 2rem;
    }
    
    .post-cta h3 {
        font-size: 1.5rem;
    }
    
    .post-main-image {
        height: 300px;
    }
    
    .post-meta {
        margin-top: 1rem;
    }
    
    .meta-group {
        gap: 0.4rem;
    }
    
    .read-time {
        font-size: 0.85rem;
    }
    
    .category-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .post-header {
        padding: 120px 0 15px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-content {
        padding: 30px 0 60px;
    }
    
    .post-body {
        padding: 0 1rem;
    }
    
    .post-body h2 {
        font-size: 1.6rem;
    }
    
    .post-body h2::after {
        width: 40px;
        height: 2px;
    }
    
    .post-body h3 {
        font-size: 1.3rem;
        padding-left: 0.5rem;
    }
    
    .post-body h3::before {
        width: 3px;
        height: 18px;
    }
    
    .post-body h4 {
        font-size: 1.1rem;
    }
    
    .post-body h5 {
        font-size: 0.95rem;
    }
    
    .post-body blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .post-body blockquote p {
        font-size: 1.1rem;
    }
    
    .author-bio {
        padding: 1.5rem;
    }
    
    .related-posts {
        padding: 40px 0;
    }
    
    .post-main-image {
        height: 250px;
    }
    
    .post-meta {
        margin-top: 0.75rem;
    }
    
    .meta-group {
        gap: 0.3rem;
    }
    
    .read-time {
        font-size: 0.8rem;
    }
    
    .category-badge {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .post-cta,
    .related-posts,
    .footer {
        display: none;
    }
    
    .post-header {
        padding: 0 0 2rem 0;
        background: white;
    }
    
    .post-content {
        padding: 0;
    }
    
    .post-body {
        max-width: none;
    }
    
    .post-body h2 {
        page-break-after: avoid;
    }
    
    .post-body p {
        orphans: 3;
        widows: 3;
    }
}

/* Copy exact mobile menu CSS from working styles.css */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}
