:root {
    /* FizzMonkey Branding Variables */
    --color-primary-green: #A6ED39;
    --color-primary-blue: #1EC5E5;
    --color-accent-orange: #FF8C42;
    --color-charcoal: #2C2C2C;
    --color-soft-white: #F9F9F9;
    --color-light-grey: #E6E6E6;

    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-secondary);
    margin: 0;
    background-color: var(--color-soft-white);
    color: var(--color-charcoal);
}

h1, h2, h3 { 
    font-family: var(--font-primary);
    font-weight: 700;
    margin: 0;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: white;
    padding: 2rem;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.brand-logo {
    max-width: 140px;
    margin: 0 auto;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--color-charcoal);
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    background-color: var(--color-light-grey);
    color: var(--color-primary-blue);
}

.main-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.primary-btn {
    padding: 0.75rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--color-charcoal);
    background-color: var(--color-primary-green);
    border: none;
    border-radius: 16px; /* 2xl rounded */
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(166, 237, 57, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(166, 237, 57, 0.6);
}

.primary-btn:focus {
    outline: 3px solid var(--color-primary-blue);
    outline-offset: 2px;
}

.secondary-btn {
    padding: 0.6rem 1.2rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: white;
    background-color: var(--color-primary-blue);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(30, 197, 229, 0.4);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.post-card-content h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.post-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.post-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-light-grey);
    padding-top: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent-orange);
    transition: transform 0.2s;
    font-family: var(--font-secondary);
    font-weight: 600;
}

.icon-btn:hover {
    transform: scale(1.1);
}

/* Modal using Glassmorphism / backdrop-filters (Modern Web Guidance) */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: scale(1);
}

.input-field, .textarea-field {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-light-grey);
    border-radius: 12px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-field:focus, .textarea-field:focus {
    outline: none;
    border-color: var(--color-primary-blue);
}

.textarea-field {
    resize: vertical;
    min-height: 150px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
