/* Alpine.js Version - Simplified CSS based on So Simple Theme */

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

html {
    font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #222;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: "Volkhov", serif;
    line-height: 1.2;
    margin: 0 0 1rem 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1.5rem 0;
}

a {
    color: #27ae60;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2ecc71;
    text-decoration: underline;
}

/* Navigation */
.navigation-wrapper {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

#site-nav {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 15px;
    padding: 0.25rem 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

#site-nav li {
    margin: 0;
}

#site-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 0.9rem;
}

#site-nav a:hover,
#site-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #27ae60;
}

/* Header/Masthead */
.masthead {
    text-align: center;
    padding: 10rem 2rem 4rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-top: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.site-logo img {
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.site-title {
    font-size: 3rem;
    margin: 1rem 0;
    font-weight: 700;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-description {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Main Content */
#main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.entry {
    margin: 4rem 0;
}

.entry-feature-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.entry-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

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

.entry-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

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

/* Footer */
.footer-wrapper {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Animations */
.animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.fadeIn {
    animation-name: fadeIn;
}

.fadeInDown {
    animation-name: fadeInDown;
}

.drop {
    animation-name: drop;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes drop {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* Alpine.js Transitions */
[x-cloak] {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }
    
    .navigation-wrapper {
        top: 0.5rem;
        left: 1rem;
        right: 1rem;
        transform: none;
    }
    
    #site-nav {
        padding: 0.25rem 0.5rem;
        border-radius: 12px;
    }
    
    #site-nav ul {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    #site-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .masthead {
        padding: 8rem 1rem 3rem;
    }
    
    .site-title {
        font-size: 2rem;
    }
    
    .site-description {
        font-size: 1.1rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .entry-feature-image {
        height: 250px;
    }
    
    #main {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.75rem;
    }
    
    .entry-title {
        font-size: 1.75rem;
    }
    
    .navigation-wrapper {
        top: 0.25rem;
        left: 0.5rem;
        right: 0.5rem;
    }
    
    #site-nav {
        padding: 0.25rem;
        border-radius: 10px;
    }
    
    #site-nav ul {
        flex-direction: column;
        gap: 0.1rem;
    }
    
    #site-nav a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        text-align: center;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }