/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Optima, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #EBEBEB;
    min-height: 100vh;
}

/* Landing page styles */
.landing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.profile-section {
    text-align: center;
    width: 600px;
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-picture {
    margin-bottom: 2rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #333;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.about {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.thoughts-button {
    appearance: button;
    background-color: #EF7722;
    border: solid transparent;
    border-radius: 16px;
    border-width: 0 0 4px;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    font-family: Optima, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .8px;
    line-height: 20px;
    margin: 0;
    outline: none;
    overflow: visible;
    padding: 13px 16px;
    text-align: center;
    text-transform: uppercase;
    touch-action: manipulation;
    transform: translateZ(0);
    transition: filter .2s;
    user-select: none;
    -webkit-user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    width: 100%;
    text-decoration: none;
}

.thoughts-button:after {
    background-clip: padding-box;
    background-color: #d6631a;
    border: solid transparent;
    border-radius: 16px;
    border-width: 0 0 4px;
    bottom: -4px;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}

.thoughts-button,
.thoughts-button:focus {
    user-select: auto;
}

.thoughts-button:hover:not(:disabled) {
    filter: brightness(1.1);
    -webkit-filter: brightness(1.1);
}

.thoughts-button:disabled {
    cursor: auto;
}

.thoughts-button:active {
    border-width: 4px 0 0;
    background: none;
}

/* Thoughts page styles */
.header {
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.back-link {
    color: #0BA6DF;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #0890c3;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.thoughts-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.post-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.post-content {
    color: #444;
    line-height: 1.5;
}

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

/* Post interaction styles */
.post {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* Loading and error states */
.loading, .error, .no-posts {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.error {
    color: #d32f2f;
}

.no-posts {
    color: #666;
}

/* Full post styles */
.full-post {
    cursor: default;
    max-width: none;
}

.full-post:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* Responsive design */
@media (max-width: 768px) {
    .landing-container {
        padding: 1rem;
    }

    .profile-section {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .name {
        font-size: 2rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .thoughts-container {
        padding: 1rem;
    }

    .header {
        padding: 1rem 1.5rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .post {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.3rem;
    }
}
