/* style-blog.css */

/* 1. Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, #5b5b9a 0%, #b0b0dd 100%) fixed;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
}

/* 2. Header */
header {
    background: linear-gradient(145deg, #2a2a72 0%, #7d00ff 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.header-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    flex-wrap: wrap;
}
.profile-pic {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}
.header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-badge {
    font-size: 0.9rem;
    font-weight: bold;
    background-color: #FF6347;
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: max-content;
}
.blog-title {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
}
.blog-subtitle {
    font-size: 1rem;
    color: #ffffff;
    margin: 0.3rem 0 0 0;
}

/* 3. Main & Layout */
main {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 4. Markdown Content Styling */
#readme-content {
    background: #fff;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}
#readme-content h1,
#readme-content h2,
#readme-content h3,
#readme-content h4 {
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    line-height: 1.3;
}
#readme-content h1 { font-size: 2.5rem; }
#readme-content h2 { font-size: 2rem; }
#readme-content h3 { font-size: 1.75rem; }
#readme-content h4 { font-size: 1.5rem; }

#readme-content p {
    margin-bottom: 1rem;
}
#readme-content ul,
#readme-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
#readme-content li {
    margin-bottom: 0.5rem;
}
#readme-content a {
    color: #667eea;
    text-decoration: none;
}
#readme-content a:hover {
    text-decoration: underline;
}
#readme-content img {
    max-width: 100%;
    border-radius: 4px;
    margin: 1rem 0;
}
#readme-content pre {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
#readme-content code {
    background: #f4f4f4;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #d6336c;
}
#readme-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    color: #555;
    margin: 1rem 0;
    background: #f9f9f9;
}
#readme-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}
#readme-content th,
#readme-content td {
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
}
#readme-content th {
    background-color: #f0f0f0;
}

/* 5. Feature Categories (if used) */
.feature-category {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #6366f1;
}
.feature-category h3 {
    font-size: 1.4rem;
    color: #4f46e5;
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.feature-category ul {
    list-style: none;
    padding-left: 0;
    line-height: 1.7;
    font-size: 1.05rem;
}
.feature-category ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.6rem;
}
.feature-category ul li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 0;
}

/* 6. Call to Action Button */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    margin-top: 2rem;
}
.cta-button:hover {
    background-color: #4b63c7;
}

/* 7. Footer */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #666;
    font-size: 0.9rem;
}
footer a {
    color: #667eea;
}
footer a:hover {
    text-decoration: underline;
}

/* 8. Responsive */
@media (max-width: 768px) {
    header .header-container {
        justify-content: center;
        text-align: center;
    }
    .header-text h1 {
        font-size: 1.8rem;
    }
    #readme-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-pic {
        width: 80px;
        height: 80px;
    }

    header {
        padding: 2rem 1rem;
    }

    header .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
    }

    .header-text {
        align-items: center;
    }

    .blog-badge {
        font-size: 0.9rem;
        padding: 6px 12px;
        border-radius: 12px;
        margin-bottom: 0.5rem;
    }

    .blog-title {
        font-size: 2rem;
        font-weight: 800;
    }

    .blog-subtitle {
        font-size: 1.2rem;
        font-weight: 500;
        margin-top: 0.3rem;
    }

    #readme-content {
        padding: 1rem;
        font-size: 0.95rem;
    }

    #readme-content h1 { font-size: 1.8rem; }
    #readme-content h2 { font-size: 1.5rem; }
    #readme-content h3 { font-size: 1.25rem; }
    #readme-content h4 { font-size: 1.1rem; }

    .feature-category h3 {
        font-size: 1.2rem;
    }

    .feature-category ul {
        font-size: 0.95rem;
    }

    .header-text {
        align-items: center;
        text-align: center;
        width: 100%;
    }
}
