* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.story-nav {
    background: #2c3e50;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.story-nav h1 {
    color: white;
    font-size: 1.5rem;
    margin-right: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.story-nav a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.story-nav a:hover {
    background: #34495e;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.welcome-banner {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.story-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-cover {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.story-info {
    padding: 1.5rem;
}

.story-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.story-info p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.badge {
    display: inline-block;
    background: #ecf0f1;
    color: #2c3e50;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin: 0.25rem;
}

.read-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s;
    margin-top: 1rem;
}

.read-btn:hover {
    background: #2980b9;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.story-footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .story-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
    }
}


/* Auth Buttons */
.auth-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1rem;
    background: var(--secondary);
}

.auth-buttons a {
    text-decoration: none;
    color: var(--text-light);
    background: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.auth-buttons a:hover {
    background: var(--accent);
}

/* Updated Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* subtle overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.auth-modal-content {
    background: #fff; /* or use a variable like var(--surface) */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.auth-modal-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2C4A3E; /* example primary color */
    color: #F5F7F3;    /* example text light */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.auth-modal-button:hover {
    background: #356B55; /* example accent color */
}