:root {
    --primary-color: #2b6cb0;
    --text-color: #1a202c;
    --bg-color: #f7fafc;
    --border-color: #e2e8f0;
    --sidebar-width: 200px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 20%),
        url("sitaram.jpeg");
    background-repeat: no-repeat;
    background-position: right top;
    background-size: cover;
    opacity: 1;
    z-index: -1;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
}

header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    max-width: 800px;
    margin: 0 0 0 2rem;
}

.menu-btn, .search-btn, .login-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
}

h1 {
    margin: 0 auto 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.container {
    display: flex;
    max-width: 800px;
    margin: 60px 2rem 0;
    padding: 1rem;
    position: relative;
    z-index: 1;
    transition: margin 0.3s ease;
}


.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    padding-right: 2rem;
    transition: all 0.3s ease;
    margin-right: 2rem;
    overflow: hidden;
    visibility: visible;
}

.sidebar.hidden {
    transform: translateX(-100%);
    width: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
    visibility: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.nav-item:hover {
    background: rgba(0,0,0,0.05);
}

.nav-item.active {
    background: rgba(0,0,0,0.05);
}

.nav-item a {
    text-decoration: none;
    color: var(--text-color);
    display: block;
    width: 100%;
}

.nav-item:hover {
    background: rgba(0,0,0,0.05);
}

.nav-item.active {
    background: rgba(0,0,0,0.05);
}

.nav-item a:active,
.nav-item a:visited {
    color: var(--text-color);
}

/* Photo Gallery Styles */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    background: white;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.photo-info {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
}

.photo-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.photo-credit {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.description {
    margin-bottom: 2rem;
    color: #666;
}

/* Rest of existing styles */
.post-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-filters button {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
}

.post-filters button.active {
    background: #4a5568;
    color: white;
}

.post {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.post:first-of-type {
    position: relative;
    background: transparent;
    padding: 2rem;
}

.post:first-of-type .post-content {
    max-width: 100%;
}

.post-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

.post time {
    display: inline-block;
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    margin-left: 10px;
}

.post-author {
    display: block;
    margin: 0.5rem 0 1rem;
    font-size: 0.875rem;
}

.post-author a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.post-author a:hover {
    opacity: 0.8;
}

.post-content h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.post-content h2 a:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .post .post-content {
        padding: 1rem;
    }

    .post h2 {
        font-size: 1.5rem;
    }

    .container {
        flex-direction: column;
        margin: 60px 1rem 0;
    }
    
    .sidebar {
        width: 100%;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    nav {
        margin: 0 1rem;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem 0;
    }
}
