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

/* Variables */
:root {
    --primary: #9d4edd;
    --primary-light: #c77dff;
    --primary-dark: #7b2cbf;
    --secondary: #240046;
    --dark: #10002b;
    --light: #f8f9fa;
    --gray: #a8a8a8;
    --border: rgba(255, 255, 255, 0.1);
}

/* Base Styles */
body {
    font-family: 'General Sans', sans-serif;
    line-height: 1.6;
    color: var(--light);
    background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
    min-height: 100vh;
}

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

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary);
}

ul {
    list-style-position: inside;
}

/* Header Styles */
header {
    background-color: rgba(16, 0, 43, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light);
    transition: all 0.3s ease;
}

/* Featured Image Styles */
.featured-image {
    margin: 30px 0 40px;
    background-color: rgba(16, 0, 43, 0.5); /* This creates the semi-transparent background */
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
/* Main Content */
main {
    padding: 50px 0;
}

.writeup-header {
    margin-bottom: 40px;
    text-align: center;
}

.writeup-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.writeup-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.category {
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.date {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Table of Contents */
.writeup-content {
    background-color: rgba(36, 0, 70, 0.3);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.toc {
    background-color: rgba(16, 0, 43, 0.5);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.toc h2 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.toc ul {
    list-style-type: none;
    text-decoration: underline;
    color: var(--primary);
    margin-left: 10px;
    margin-bottom: 20px;
}

.toc ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 15px;
}

.toc ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.toc ul li a {
    color: var(--light);
    font-weight: 500;
}

.toc ul li a:hover {
    color: var(--primary-light);
}

.toc-description {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
}

/* Content Sections */
.section {
    margin-bottom: 50px;
}

.section h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.section p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.breakdown-list,
.process-list,
.lessons-list {
    list-style-type: none;
}

.breakdown-list li,
.process-list li,
.lessons-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.breakdown-list li::before,
.process-list li::before,
.lessons-list li::before {
    content: "→";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.label {
    color: var(--primary-light);
    font-weight: 600;
    margin-right: 5px;
}

/* Contact Section */
.get-contact {
    background-color: rgba(16, 0, 43, 0.5);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    margin-top: 60px;
}

.get-contact p:first-child {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: rgba(16, 0, 43, 0.95);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--gray);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .writeup-header h1 {
        font-size: 2rem;
    }
    
    .writeup-content {
        padding: 25px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .writeup-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .writeup-header h1 {
        font-size: 1.8rem;
    }
    
    .section h2 {
        font-size: 1.6rem;
    }
}
