* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

:root {
    --bg-color: #d4d4d9aa;
    --text-color: #000000;
    --header-bg: #cfa3a3aa;
    --button-primary: #b84040aa;
    --button-secondary: #7a7a7aaa;
    --modal-bg: rgba(200, 200, 210, 0.7);
    --post-bg: rgba(205, 205, 215, 0.6);
    --post-shadow: rgba(0,0,0,0.05);
    --input-bg: #d4d4d9aa;
    --input-border: #c5c5cbaa;
    --body-bg: #e0dfe0aa;
    --accent-color: #c23030aa;
    --border-color: #888888aa;
}

.dark-mode {
    --bg-color: #1f2937;
    --text-color: #f3f4f6;
    --header-bg: #7f1d1d;
    --button-primary: #ef4444;
    --button-secondary: #6b7280;
    --modal-bg: #1f2937;
    --post-bg: #374151;
    --post-shadow: rgba(0,0,0,0.3);
    --input-bg: #4b5563;
    --input-border: #6b7280;
    --body-bg: #111827;
    --accent-color: #f87171;
    --border-color: #4b5563;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: var(--body-bg);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
}

header {
    background: linear-gradient(135deg, var(--header-bg) 0%, #f8a5a5 100%);
    color: #ffffff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(248, 165, 165, 0.15);
    position: sticky;
    top: 0;
    z-index: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s;
}

.dark-mode header {
    background: linear-gradient(135deg, #7f1d1d 0%, #5a1515 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #000000;
}

.dark-mode header h1 {
    color: #ffffff;
}

#createPostLink {
    background: white;
    color: #dc2626;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    border: 2px solid rgba(220, 38, 38, 0.3);
    display: inline-block;
}

#createPostLink::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #dc2626;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

#createPostLink:hover::before {
    opacity: 1;
}

#createPostLink:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#menuBtn {
    background: rgba(255,255,255,0.15);
    color: #1f2937;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    font-weight: bold;
}

#menuBtn:hover {
    background: rgba(255,255,255,0.5);
}

#categoriesNav {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 250, 0.9) 100%);
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    backdrop-filter: blur(3px);
}

.dark-mode #categoriesNav {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.category-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.4rem 1rem;
    border-radius: 0;
    transition: all 0.2s;
    font-size: 0.9rem;
    border: none;
    border-bottom: 2px solid transparent;
    position: relative;
}

.category-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--button-primary);
    transition: width 0.25s ease;
}

.category-link:hover::after {
    width: 100%;
}

.category-link:hover {
    color: var(--button-primary);
    font-weight: 600;
}

.category-link.active {
    color: var(--button-primary);
    font-weight: 600;
}

.category-link.active::after {
    width: 100%;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 250, 0.95) 100%);
    box-shadow: -4px 0 15px rgba(248, 165, 165, 0.12);
    transition: right 0.3s ease-out;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.dark-mode .side-menu {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.98) 0%, rgba(15, 23, 42, 0.95) 100%);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
}

.side-menu.open {
    right: 0;
}

.close-menu {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
}

#menuContent {
    margin-top: 2rem;
}

#menuContent h3 {
    margin: 1.5rem 0 0.5rem 0;
    color: var(--button-primary);
    font-size: 1.1rem;
}

.menu-link {
    display: block;
    color: var(--text-color);
    text-decoration: none;
}

.menu-link:hover {
    color: var(--button-primary);
}

.menu-btn {
    width: 100%;
    margin-top: 1rem;
}

.profile-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--button-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.5rem;
    color: white;
}

#userInfo {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#userEmail {
    background: rgba(255,255,255,0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #1f2937;
}

button {
    border: none;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--button-primary);
    color: white;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--button-secondary);
    color: white;
    font-weight: 600;
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--modal-bg);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px var(--post-shadow);
    animation: slideDown 0.3s;
    position: relative;
}

@keyframes slideDown {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #9ca3af;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: var(--text-color);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--button-primary);
    font-size: 1.5rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input {
    padding: 0.8rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--input-bg);
    color: var(--text-color);
}

.modal-content input:focus {
    outline: none;
    border-color: var(--button-primary);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.form-footer {
    margin-top: 1rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--button-primary);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

main {
    max-width: 1800px;
    margin: 0rem auto;
    padding: 0 2rem;
}

/* Header hide-on-scroll state */
header.hidden {
    transform: translateY(-120%);
    opacity: 0;
}

/* Form subtitles and font selector styles */
#subtitlesContainer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.subtitle-input {
    padding: 0.6rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-weight: 700;
    font-family: Segoe UI, Roboto, Arial, sans-serif;
}

.development-input {
    padding: 0.6rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-color);
    font-family: Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 400;
}

#fontSelector {
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

/* Comments (YouTube-like) */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--button-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.comment-avatar.small { width: 34px; height: 34px; font-size: 0.9rem; }

.comment-main { flex: 1; }

.comment-meta { font-size: 0.95rem; color: var(--text-color); opacity: 0.9; display: flex; align-items: center; gap: 0.3rem; }
.comment-time { font-weight: 400; color: #333333; margin-left: auto; padding-left: 1rem; font-size: 0.85rem; }
.dark-mode .comment-time { color: #ffffff; }
.comment-body { margin-top: 0.35rem; color: var(--text-color); }
.comment-footer { margin-top: 0.6rem; display: flex; gap: 1rem; padding-top: 0.4rem; border-top: 1px solid transparent; }
.btn-link { background: none; border: none; color: var(--text-color); cursor: pointer; padding: 0; font-size: 0.9rem; text-decoration: none; position: relative; transition: all 0.2s ease; }
.btn-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--button-primary); transition: width 0.25s ease; }
.btn-link:hover::after { width: 100%; }
.dark-mode .btn-link:hover::after { background: var(--accent-color); }

.comment-input-row { display:flex; gap:0.6rem; align-items:flex-start; }
.comment-input-row textarea { flex:1; padding:0.6rem; border-radius:8px; border:1px solid var(--input-border); background:var(--input-bg); }

/* Slight transparent card for each comment */
.comment-item {
    background: rgba(255,255,255,0.5);
    padding: 0.75rem;
    border-radius: 10px;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.18s ease;
}
.dark-mode .comment-item {
    background: rgba(17,24,39,0.25);
    border: 2px solid transparent;
}
.comment-item:hover {
    border: 2px solid #333333;
    background: rgba(255,255,255,0.75);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.dark-mode .comment-item:hover {
    border: 2px solid #555555;
    background: rgba(40,50,60,0.4);
}
.comment-main { padding-left: 0.25rem; }

.inline-reply { margin-left: 54px; }

/* space between comments */
.comments-list { gap: 1rem; }

/* Posts list transitions for category changes */
#postsList {
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.posts-transition-out {
    opacity: 0;
    transform: translateX(-12px);
}
.posts-transition-in {
    animation: postsIn 0.34s ease forwards;
}
@keyframes postsIn {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

#formSection {
    background: linear-gradient(135deg, var(--post-bg) 0%, rgba(255, 250, 250, 0.8) 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(248, 165, 165, 0.08);
    border: 1px solid var(--border-color);
}

.dark-mode #formSection {
    background: linear-gradient(135deg, var(--post-bg) 0%, rgba(31, 41, 55, 0.8) 100%);
    border: 1px solid var(--border-color);
}

#formSection h2 {
    color: var(--button-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

#postForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#postForm input,
#postForm textarea,
#postForm select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--text-color);
}

#postForm input:focus,
#postForm textarea:focus,
#postForm select:focus {
    outline: none;
    border-color: var(--button-primary);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}



#formSection.form-blog {
    border-left: 5px solid #3b82f6;
    background: rgba(59, 130, 246, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
}

#formSection.form-blog h2::before {
    content: "📝 ";
}

#formSection.form-quick {
    border-left: 5px solid #f59e0b;
    background: rgba(245, 158, 11, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
}

#formSection.form-quick h2::before {
    content: "⚡ ";
}

#formSection.form-media {
    border-left: 5px solid #10b981;
    background: rgba(16, 185, 129, 0.02);
    padding: 1.5rem;
    border-radius: 8px;
}

#formSection.form-media h2::before {
    content: "🖼️ ";
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.form-buttons button {
    flex: 1;
    max-width: 200px;
}

.like-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.like-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.like-btn.liked {
    background: #fca5a5;
    color: #dc2626;
    border-color: #fca5a5;
    font-weight: 600;
}

.like-btn.liked:hover {
    background: #f87171;
}

.notification {
    position: fixed;
    top: 5rem;
    right: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background-color: #6b7280;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1500;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: 320px;
}

.notification.visible {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: #86efac;
    color: #14532d;
}

.notification.error {
    background-color: #fca5a5;
    color: #7f1d1d;
}

.notification.info {
    background-color: #93c5fd;
    color: #1e3a8a;
}

#postsSection {
    max-width: 1800px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

#postsSection {
    max-width: 1168px;
    margin: 0 auto;
}

#postsSection h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    margin-top: -.5rem;
    font-weight: 600;
}



#postsList {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.post {
    background: var(--post-bg);
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 2px 12px var(--post-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    min-height: 280px;
    padding: 1.5rem;
    cursor: pointer;
    align-items: flex-start;
}

.post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--post-shadow);
    border-color: var(--button-primary);
}

.post img {
    width: 225px;
    height: 225px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.post-category {
    background: var(--button-primary);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.post h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    font-weight: 700;
}

.post-description {
    color: var(--text-color);
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    display: block;
}

.dark-mode .post img {
    background: #1f2937;
}

.post-content {
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    font-size: 0.8rem;
    display: block;
}

.view-more-link {
    color: var(--button-primary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    margin-left: 0.5rem;
}

.view-more-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}



.post-type-blog {
    border-left: 4px solid #3b82f6;
}

.post-type-blog:hover {
    border-left-color: #1e40af;
    box-shadow: inset 3px 0 0 rgba(59, 130, 246, 0.2), 0 12px 24px var(--post-shadow);
}

.post-type-quick {
    border-left: 4px solid #f59e0b;
}

.post-type-quick:hover {
    border-left-color: #b45309;
    box-shadow: inset 3px 0 0 rgba(245, 158, 11, 0.2), 0 12px 24px var(--post-shadow);
}

.post-type-media {
    border-left: 4px solid #10b981;
}

.post-type-media:hover {
    border-left-color: #047857;
    box-shadow: inset 3px 0 0 rgba(16, 185, 129, 0.2), 0 12px 24px var(--post-shadow);
}

/* Mobile - Responsive Post Layout */
@media (max-width: 768px) {
    .post {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .post img {
        width: 100%;
        height: auto;
        min-height: 200px;
    }
}

.post-content {
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    font-size: 0.8rem;
    display: block;
}

.post-meta {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    background: var(--bg-color);
}

.post-meta span {
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.7;
}

.post-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
}

.post-actions button {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

.loading {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
    font-size: 1rem;
    grid-column: 1 / -1;
}

/* Modal de estilos de post */
.post-styles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.post-style-card {
    background: var(--post-bg);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--post-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    cursor: pointer;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-style-card:hover {
    transform: translateY(-5px);
    border-color: var(--button-primary);
    box-shadow: 0 8px 20px var(--post-shadow);
}

.post-style-card h3 {
    color: var(--button-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    padding: 0;
}

.post-style-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.6;
    flex-grow: 1;
}

.post-style-card .btn-primary {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

#postStyleModal .modal-content {
    max-width: 850px;
    padding: 2.5rem;
}

#postStyleModal h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}



@media (max-width: 1400px) {
    main, #postsSection {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 1200px) {
    #postsList {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: minmax(200px, auto);
    }
    
    .post:nth-child(4n + 1) {
        grid-column: span 4;
        grid-row: span 2;
    }
    
    .post:nth-child(4n + 2) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .post:nth-child(4n + 3) {
        grid-column: span 3;
        grid-row: span 1;
    }
    
    .post:nth-child(4n + 4) {
        grid-column: span 3;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .header-logo {
        gap: 0.5rem;
    }
    
    .logo {
        height: 35px;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    #createPostLink {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    main, #postsSection {
        padding: 0.5rem 1rem;
    }

    #postsSection h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    #postsList {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 1.5rem;
    }
    
    .post {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: auto;
    }

    .post img {
        height: 300px !important;
        width: 100% !important;
    }

    .post h3 {
        font-size: 1rem !important;
        padding: 1rem 1rem 0.5rem;
    }

    .post-description {
        padding: 0 1rem 0.5rem;
        font-size: 0.85rem !important;
    }

    .post-content {
        padding: 0 1rem;
        font-size: 0.85rem !important;
    }

    .post-meta {
        padding: 0.75rem 1rem;
    }

    .post-meta span {
        font-size: 0.75rem;
    }

    .side-menu {
        width: 250px;
        right: -250px;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    #postStyleModal .modal-content {
        padding: 1.5rem;
    }
    
    .post-styles {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-style-card {
        min-height: auto;
        padding: 1.5rem;
    }
    
    #categoriesNav {
        padding: 0.5rem;
        gap: 0.25rem;
    }
    
    .category-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}