/* =============================================================================
   UCHENNA IGWE - MAIN STYLESHEET
   Product architect. Politics is just another product.
   ============================================================================= */

/* RESET & BASE STYLES
   ========================================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

/* TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

h1 { font-size: 32px; margin-bottom: 20px; }
h2 { font-size: 24px; margin: 40px 0 20px 0; }
h3 { font-size: 20px; margin: 30px 0 15px 0; }
h4 { font-size: 18px; margin: 25px 0 12px 0; }

p {
    margin-bottom: 20px;
    line-height: 1.7;
}

a {
    color: #27ae60;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #2ecc71;
    text-decoration: underline;
}

/* LAYOUT CONTAINERS
   ========================================================================== */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container-wide {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container-narrow {
    max-width: 750px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* HEADER COMPONENTS
   ========================================================================== */

.header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e1e8ed;
}

.site-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.site-title a {
    color: #2c3e50;
    text-decoration: none;
}

.site-title a:hover {
    color: #27ae60;
}

.site-subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 20px;
}

.tagline {
    font-style: italic;
    margin-top: 15px;
    color: #7f8c8d;
    font-size: 15px;
    text-align: left;
}

/* NAVIGATION
   ========================================================================== */

.nav-menu {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover, 
.nav-link.active {
    color: #27ae60;
}

.back-link {
    color: #27ae60;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
    display: inline-block;
}

.back-link:hover {
    text-decoration: underline;
}

/* PROFILE SECTION (Homepage)
   ========================================================================== */

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3);
}

.profile-intro {
    flex: 1;
}

.profile-intro h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: left;
}

.profile-intro p {
    font-size: 16px;
    color: #666;
    text-align: left;
}

/* SECTION HEADERS
   ========================================================================== */

.section-header {
    font-size: 14px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 50px 0 30px 0;
    font-weight: 600;
}

/* CARDS & GRIDS
   ========================================================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.articles-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.project-card,
.article-card {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e1e8ed;
}

.project-card:hover,
.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.project-title,
.article-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-description,
.article-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* SPECIAL CARD TYPES
   ========================================================================== */

.gated-content,
.featured-post {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: 2px solid #27ae60;
}

.gated-content .project-title,
.gated-content .project-description,
.featured-post .article-title,
.featured-post .article-excerpt {
    color: white;
}

.featured-post .article-title a {
    color: white;
}

.unlock-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* STATUS INDICATORS
   ========================================================================== */

.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #27ae60;
    border-radius: 50%;
    margin-right: 8px;
}

/* ARTICLE COMPONENTS
   ========================================================================== */

.article {
    background: white;
    border-radius: 8px;
    padding: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e1e8ed;
    margin-bottom: 40px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
}

.article-category {
    background: #27ae60;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 12px;
}

.article-date,
.reading-time {
    color: #95a5a6;
}

.article-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
    font-style: italic;
}

.article-content {
    font-size: 17px;
    line-height: 1.7;
    color: #444;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin: 40px 0 20px 0;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 30px 0 15px 0;
}

.article-content blockquote {
    border-left: 4px solid #27ae60;
    padding: 20px 30px;
    margin: 30px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.article-content ul {
    margin: 20px 0 20px 30px;
}

.article-content li {
    margin-bottom: 8px;
}

.read-more {
    color: #27ae60;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

/* DATA HIGHLIGHTS
   ========================================================================== */

.data-highlight {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.data-highlight h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: white;
}

.data-highlight ul {
    margin-left: 20px;
}

.data-highlight li {
    margin-bottom: 8px;
    color: rgba(255,255,255,0.95);
}

/* CATEGORIES & TAGS
   ========================================================================== */

.categories {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tag {
    background: #27ae60;
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.category-tag:hover {
    background: #2ecc71;
}

.category-tag.inactive {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e1e8ed;
}

.category-tag.inactive:hover {
    background: #e9ecef;
}

/* BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #27ae60;
    color: white;
}

.btn-primary:hover {
    background: #2ecc71;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-secondary {
    background: white;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.btn-secondary:hover {
    background: #27ae60;
    color: white;
}

/* ELSEWHERE BUTTONS
   ========================================================================== */

.elsewhere-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.elsewhere-button {
    background: #27ae60;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #27ae60;
}

.elsewhere-button:hover {
    background: #2ecc71;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

/* SHARE BUTTONS
   ========================================================================== */

.share-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e1e8ed;
    text-align: center;
    margin-bottom: 40px;
}

.share-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-button {
    background: #27ae60;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.share-button:hover {
    background: #2ecc71;
    transform: translateY(-1px);
}

/* NEWSLETTER SIGNUP
   ========================================================================== */

.newsletter-signup {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin: 50px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e1e8ed;
    text-align: center;
}

.newsletter-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.newsletter-description {
    color: #666;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.newsletter-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: #2ecc71;
}

/* PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination-link {
    padding: 8px 16px;
    color: #666;
    text-decoration: none;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.pagination-link:hover,
.pagination-link.active {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

/* RELATED POSTS
   ========================================================================== */

.related-posts {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e1e8ed;
}

.related-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.related-post {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.related-post:last-child {
    border-bottom: none;
}

.related-post-title {
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 5px;
}

.related-post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #27ae60;
}

.related-post-meta {
    font-size: 13px;
    color: #666;
}

/* FOOTER
   ========================================================================== */

.footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e1e8ed;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.footer-link:hover {
    color: #27ae60;
}

/* BLOG SPECIFIC
   ========================================================================== */

.blog-header {
    margin-bottom: 40px;
}

.blog-title {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.blog-description {
    font-size: 16px;
    color: #666;
    max-width: 600px;
}

/* UTILITY CLASSES
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.color-primary { color: #27ae60; }
.color-secondary { color: #666; }
.color-muted { color: #95a5a6; }

/* RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .container,
    .container-wide,
    .container-narrow {
        padding: 30px 15px;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-intro h1,
    .profile-intro p,
    .tagline {
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .elsewhere-buttons,
    .share-buttons {
        gap: 10px;
    }
    
    .elsewhere-button,
    .share-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .categories {
        justify-content: center;
    }
    
    .article {
        padding: 30px 20px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    h1 { font-size: 28px; }
    h2 { font-size: 22px; }
    h3 { font-size: 18px; }
}

@media (max-width: 480px) {
    .container,
    .container-wide,
    .container-narrow {
        padding: 20px 10px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .blog-title {
        font-size: 28px;
    }
    
    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
}