/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: linear-gradient(to bottom right, #111827, #1f2937, #581c87);
    color: rgba(255, 255, 255, 0.87);
    min-height: 100vh;
    display: flex;
}

a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #c4b5fd;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 50;
    background: #2563eb;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: #3b82f6;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 320px;
    background: linear-gradient(to bottom, #1e3a8a, #1e1b4b, #0f172a);
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    z-index: 40;
    transition: transform 0.3s ease;
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar-logo {
    margin-bottom: 1.5rem;
    text-align: center;
}

.sidebar-logo img {
    max-width: 240px;
    width: 100%;
    margin: 0 auto;
}

.sidebar-tagline {
    text-align: center;
    margin-bottom: 1rem;
}

.sidebar-tagline p {
    color: white;
    font-size: 0.875rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-description {
    margin-bottom: 1.5rem;
}

.sidebar-description p {
    color: white;
    font-size: 0.75rem;
    line-height: 1.5;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(23, 37, 84, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #1d4ed8;
}

/* Download Section */
.download-section {
    margin-bottom: 1rem;
}

.download-btn {
    width: 100%;
    background: #1e40af;
    color: white;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.download-btn:hover:not(.disabled) {
    background: #1d4ed8;
}

.download-btn.disabled {
    background: #4b5563;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow {
    transition: transform 0.3s;
}

.arrow.rotated {
    transform: rotate(180deg);
}

.download-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0.5rem;
    background: rgba(23, 37, 84, 0.6);
    border-radius: 0.5rem;
}

.download-links.open {
    max-height: 500px;
}

.download-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.download-links a:hover {
    background: #1e40af;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 30;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 320px;
    padding: 2rem;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
}

/* Hero */
.hero {
    margin-bottom: 2rem;
    text-align: center;
}

.hero img {
    max-width: 512px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Blog Posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post {
    background: linear-gradient(to bottom right, #111827, #1f2937);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s;
}

.post:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.post-image {
    width: 100%;
    height: 256px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-meta {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #374151;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #7c3aed;
}

.author-name {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.author-name:hover {
    color: #a78bfa;
}

.post-date {
    color: #9ca3af;
    font-size: 0.75rem;
}

.post-content {
    padding: 1rem 1.25rem;
}

.post-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-body {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.75;
}

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

.post-body h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.post-body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.post-body li {
    margin-bottom: 0.25rem;
}

.signature {
    margin-top: 1rem;
    color: #9ca3af;
    font-style: italic;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .post-image {
        height: 192px;
    }

    .post-title {
        font-size: 1.25rem;
    }

    .hero img {
        max-width: 384px;
    }
}

@media (min-width: 769px) {
    .sidebar-content {
        padding-top: 0;
    }

    .sidebar-logo {
        margin-top: 0;
    }
}
