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

html, body {
    height: 100%;
}

body {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-weight: 300;
    line-height: 1.4;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* Header Styles */
#branding {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav.main-navigation {
    justify-content: right;
}

#branding-inner {
    padding: 0.5rem 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

#site-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
}

#site-title a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

#site-title a:hover {
    color: #666;
}

/* Navigation Styles */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    
}

.main-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    color: #666;
    text-decoration: none;
    font-weight: 300;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
    display: block;
    font-size: 0.9rem;
}

.main-menu a:hover {
    color: #000;
}

/* Dropdown Styles */
.has-dropdown {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1001;
}

.has-dropdown:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    padding: 0.5rem 1rem;
    color: #666;
    font-weight: 300;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

.sub-menu a:hover {
    background: #f8f8f8;
    color: #000;
}

.sub-menu li:last-child a {
    border-bottom: none;
}

/* Search Styles */
.search-container {
    display: flex;
    align-items: center;
}

#searchform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-field {
    padding: 0.4rem 0.8rem;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    font-size: 0.85rem;
    width: 180px;
    transition: border-color 0.3s ease;
    font-weight: 300;
}

.search-field:focus {
    outline: none;
    border-color: #000;
}

.search-submit {
    background: #000;
    color: white;
    border: none;
    border-radius: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: #666;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #555;
}

/* Hero Section */
.hero {
    background: #f8f8f8;
    color: #333;
    padding: 40px 25px;
    margin: 2rem 0;
    border-bottom: 1px solid #e5e5e5;
}

.hero-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
}

.hero-text h2 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 0.75rem;
    color: #000;
}

.subheader {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.4;
    font-weight: 300;
}

.hero-sidebar {
    background: #fff;
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
}

.twitter a {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.twitter a:hover {
    color: #666;
}

#tweets {
    margin: 1rem 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 300;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.button:hover {
    background: #666;
    transform: none;
    box-shadow: none;
}

.full-width {
    width: 100%;
}

/* Filter Categories */
#filter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e5e5;
    list-style: none;
}

#filter .title {
    font-weight: 300;
    color: #000;
    margin-right: 1rem;
    font-size: 0.9rem;
}

#filter a {
    color: #666;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 300;
    font-size: 0.85rem;
}

#filter a:hover,
#filter a.active {
    background: #000;
    color: white;
}

/* Masonry Grid Layout */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.masonry-item.show {
    opacity: 1;
    transform: translateY(0);
}

.masonry-item.hidden {
    display: none;
}

/* Grid Layout (fallback) */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    list-style: none;
    margin-bottom: 3rem;
}

.post-item {
    background: white;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.post-item:hover {
    transform: none;
    border-color: #000;
}

.entry-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.post-item:hover .post-overlay {
    transform: translateY(0);
}

.entry-title {
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.entry-meta {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 300;
}

.post-categories {
    margin-top: 0.5rem;
}

.category-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 0.2rem 0.5rem;
    margin-right: 0.3rem;
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
    border-radius: 2px;
    text-transform: lowercase;
}

/* Pagination */
.paging-navigation {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.nav-previous a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 300;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-previous a:hover {
    background: #666;
    transform: none;
}

/* Footer */
#colophon {
    background: #f8f8f8;
    color: #666;
    padding: 1.5rem 0;
    margin-top: auto;
    border-top: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content-centered {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-menu {
        display: none;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-left: 1rem;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #filter {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content-centered {
        text-align: center;
    }
    
    .search-field {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .subheader {
        font-size: 1rem;
    }
    
    .search-field {
        width: 120px;
    }
}

/* Utility Classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.row {
    margin: 0 -15px;
}

#main.row {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.twelve.columns {
    width: 100%;
    padding: 0;
}

.full-width {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.post-item {
    animation: fadeIn 0.4s ease forwards;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 2rem 0;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Lazy loading for images */
.post-thumbnail {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.post-thumbnail.loaded {
    opacity: 1;
}

/* SPA Styles */
#dynamic-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 0;
}

.back-button {
    border: 1px solid black;
    display: inline;
    background: black;
    padding: 5px
}

.back-button a {
    color: white;
    text-decoration: none;
    font-weight: 300;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.back-button a:hover {
    color: #000;
}

.error-message {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

.error-message h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #000;
}

/* Active navigation state */
.main-menu a.active {
    color: #000;
    font-weight: 400;
}

/* Music Toggle Button */
.music-toggle {
    margin-left: 1rem;
}

.music-toggle a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #999;
}

.music-toggle a:hover {
    background: #f0f0f0;
    border-color: #999;
}

.music-icon {
    font-size: 1rem;
    font-weight: 300;
    transition: all 0.3s ease;
}

.music-toggle.playing a {
    background: #000;
    border-color: #000;
    color: #fff;
}

.music-toggle.playing .music-icon {
    animation: none;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth transitions */
.hero, .grid, #dynamic-content {
    transition: opacity 0.3s ease;
}

section#hero-section {
    max-width: 1080px;
    width: 100vw;
}

/* Post Page Styles */
.post {
    max-width: 1080px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    font-weight: 300;
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #000;
    margin: 2.5rem 0 1rem;
}

.post-content h3 {
    font-size: 1.4rem;
    font-weight: 300;
    color: #000;
    margin: 2rem 0 1rem;
}

.post-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-featured-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 2rem auto;
    display: block;
    border: 1px solid #e5e5e5;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-navigation a {
    color: #666;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-navigation a:hover {
    color: #000;
}

.prev-post {
    margin-right: auto;
}

.next-post {
    margin-left: auto;
}

/* About Page Styles for SPA */
.page-content {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 0;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
}

.about-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.about-content h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #000;
    margin: 2.5rem 0 1rem;
}

.about-content h3 {
    font-size: 1.4rem;
    font-weight: 300;
    color: #000;
    margin: 2rem 0 1rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 2rem auto;
    display: block;
    object-fit: cover;
    border: 1px solid #e5e5e5;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.interest-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    text-align: center;
    transition: border-color 0.3s ease;
}

.interest-card:hover {
    border-color: #000;
}

.interest-icon {
    font-size: 2.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.interest-title {
    font-size: 1.2rem;
    font-weight: 300;
    color: #000;
    margin-bottom: 1rem;
}

.interest-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

.contact-info {
    background: #f8f8f8;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid #e5e5e5;
}

.contact-info h3 {
    color: #000;
    margin-bottom: 1rem;
    font-weight: 300;
}

.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #000;
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #333;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #000;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    background: #000;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background: #333;
}

.success-message {
    background: #f0f8f0;
    border: 1px solid #4caf50;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.success-message h3 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.error-message {
    background: #fff5f5;
    border: 1px solid #f44336;
    border-radius: 4px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.error-message h3 {
    color: #d32f2f;
    margin-bottom: 1rem;
}

 