/* styles for the words list page */

#words-container {
    padding: 2em 4em;
    max-width: 1200px;
    margin: 0 auto;
}

.words-header {
    text-align: center;
    margin-bottom: 3em;
}

.words-header h1 {
    font-family: "Kanit", sans-serif;
    font-size: 3em;
    margin-bottom: 0.2em;
    font-weight: 800;
}

.back-link {
    display: inline-block;
    color: #EF9A0A;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.3s ease;
    margin-top: 0.5em;
}

.back-link:hover {
    color: #d68900;
    text-decoration: underline;
}

#post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2em;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-content h2 {
    font-family: "Kanit", sans-serif;
    margin: 0 0 0.5em 0;
    font-size: 1.5em;
}

.post-card-content .meta {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 1em;
}

.post-card-content p {
    flex-grow: 1;
    margin: 0 0 1.5em 0;
    line-height: 1.6;
}

.post-card-content .read-more {
    font-weight: bold;
    color: #EF9A0A;
    align-self: flex-end;
}

#load-more-container {
    text-align: center;
    margin-top: 3em;
}

#load-more {
    background-color: #222;
    border: none;
    color: white;
    font-size: 16px;
    text-transform: uppercase;
    padding: 0 1em;
    border-radius: 8px;
    width: 12em;
    height: 3.5em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#load-more:hover {
    background-color: #EF9A0A;
}

#load-more:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

@media screen and (max-width: 768px) {
    #words-container {
        padding: 1.5em;
    }
} 