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

body {
    background-color: #333333;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

/* Home Section */
#home {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    transition: opacity 0.3s ease;
}

h1 {
    font-family: 'Kalam', cursive;
    color: white;
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 30px;
}

/* Navigation */
nav {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

nav a:hover {
    opacity: 0.7;
}

/* Sections */
.section {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Inter', sans-serif;
    text-align: left;
    max-width: 600px;
    line-height: 1.8;
    opacity: 0;
}

#thoughts.section {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    height: calc(100vh - 160px);
    flex-direction: column;
    width: 100%;
    max-width: 600px;
}

#thoughts.section[style*="display: block"] {
    display: flex !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeInThoughts {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
}

@keyframes fadeOutThoughts {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* Animation Classes */
.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

#thoughts.animate-in {
    animation: fadeInThoughts 0.5s ease forwards;
}

.animate-out {
    animation: fadeOut 0.5s ease forwards;
}

#thoughts.animate-out {
    animation: fadeOutThoughts 0.5s ease forwards;
}

/* Section Typography */
.section h2 {
    font-family: 'Kalam', cursive;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.section p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Back Button */
.back {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 40px;
    display: inline-block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.back:hover {
    opacity: 1;
}

/* Social Icons */
.social-icons {
    margin-top: 50px;
}

.social-icons a {
    margin: 0 15px;
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.social-icons img {
    width: 30px;
    height: 30px;
}

.social-icons img[alt="Email"] {
    filter: invert(1);
}

/* Aside Text */
.aside {
    color: #999999;
    font-size: 0.9rem;
    font-style: italic;
}

/* Thoughts Section Specific */
.thoughts-container {
    flex: 1;
    overflow-y: auto;
    margin: 30px 0;
    padding: 0 20px;
}

.thoughts-back-container {
    padding: 20px 0;
    text-align: center;
}

.thought-item, .post-item {
    margin-bottom: 12px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.thought-item:hover, .post-item:hover {
    opacity: 0.7;
}

/* Thought expansion styles - minimal */
.item-wrapper {
    margin-bottom: 8px;
}

.thought-content-area {
    color: white;
    font-family: 'Inter', sans-serif;
}

/* Removed all unnecessary styling for minimalist look */

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 15px 0;
}

.pagination button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.pagination button:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.1);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#page-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Thought Detail */
#thought-detail-content h2 {
    font-family: 'Kalam', cursive;
    font-size: 2rem;
    margin-bottom: 20px;
}

#thought-detail-content .detail-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

#thought-detail-content .detail-body {
    line-height: 1.8;
    font-size: 1rem;
    white-space: pre-wrap;
}