/* Global Styles - Clean & Minimalist */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #fff;
}

/* Header & Title */
header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

header2 {
    margin-left: 50%;
    /* border-bottom: 1px solid #eee; */
    padding-left: 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: inherit;
}

.no-link-formatting {
    text-decoration: none;
    color: inherit;
}

/* Navigation Tabs */
nav {
    display: flex;
    gap: 20px;
}

nav button {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    padding: 5px 0;
    color: #666;
    position: relative;
    transition: color 0.2s ease;
    text-decoration: none;
}

nav button:hover {
    color: #000;
}

nav button.active {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

/* Active Tab Indicator (Underline) */
nav button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333;
}

/* Content Sections */
.tab-content {
    display: none; /* Hidden by default */
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block; /* Shown when active */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ABOUT TAB STYLES */
.about-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-img {
    width: 200px;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}

.bio {
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .about-container {
        flex-direction: column;
    }
    .profile-img {
        width: 100%;
        max-width: 300px;
    }
}

/* WRITING TAB STYLES */
.writing-list {
    list-style: none;
    padding: 0;
}

.writing-item {
    margin-bottom: 25px;
}

.writing-title {
    display: block;
    font-size: 1.3rem;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
}

.writing-header {
    font-size: 1.2rem;
    text-align: center;
    color: 000000;
    font-weight: 700;
}

.writing-title:hover {
    text-decoration: underline;
}

.writing-meta {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
}

/* PHOTOS TAB STYLES */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.photo-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    border-radius: 4px;
    transition: transform 0.2s ease;
    overflow: hidden;
}

.photo-placeholder:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LIGHTBOX STYLES */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

/* The Image inside the Lightbox */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* The Close Button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-btn:hover,
.close-btn:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Simple fade animation */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* STORY STYLES */
/* Specific styles for reading stories */
.back-link {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}
.back-link:hover {
    color: #000;
    text-decoration: underline;
}
article {
    margin-top: 20px;
}
.story-meta {
    color: #888;
    margin-bottom: 30px;
    font-style: italic;
}
.story-body p {
    margin-bottom: 1.5em;
    font-size: 1.1rem;
    line-height: 1.8;
}
hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 40px 0;
}
