/* artikel.css */

.artikel-page {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #0a1f13, #0d2a18, #0a1f13);
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

.artikel-main-container {
    max-width: 80rem; /* 7xl */
    margin: 0 auto;
    padding: 3rem 1rem; /* py-12 px-4 */
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .artikel-main-container { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 768px) {
    .artikel-main-container { padding: 5rem 4rem; } /* py-20 px-16 */
}

@media (min-width: 1024px) {
    .artikel-main-container { padding-left: 6rem; padding-right: 6rem; }
}

/* Header */
.artikel-header {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .artikel-header { margin-bottom: 3rem; }
}

.artikel-header h1 {
    font-size: 1.875rem; /* 3xl */
    line-height: 2.25rem;
    font-weight: 700;
    color: #FFFAE3;
    font-style: italic;
    margin: 0;
}

@media (min-width: 768px) {
    .artikel-header h1 { font-size: 2.25rem; line-height: 2.5rem; } /* 4xl */
}

/* Featured Grid */
.artikel-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .artikel-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
        margin-bottom: 4rem;
    }
}

.artikel-featured-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    cursor: pointer;
}

.artikel-featured-card:hover .artikel-featured-image-wrapper {
    transform: scale(1.02);
}

.artikel-featured-card:hover .artikel-title {
    color: #ffffff;
}

.artikel-featured-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    transition: transform 0.5s ease;
}

.artikel-featured-image-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

.artikel-date {
    color: #9ca3af; /* gray-400 */
    font-size: 0.75rem; /* xs */
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

@media (min-width: 768px) {
    .artikel-date { font-size: 0.875rem; } /* sm */
}

.artikel-title {
    font-size: 1.25rem; /* xl */
    line-height: 1.25;
    font-weight: 700;
    color: #FFFAE3;
    margin: 0 0 0.75rem 0;
    transition: color 0.3s ease;
}

@media (min-width: 768px) {
    .artikel-title { font-size: 1.5rem; } /* 2xl */
}

.artikel-excerpt {
    color: #FFFAE3;
    font-size: 0.75rem; /* xs */
    line-height: 1.625;
    opacity: 0.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .artikel-excerpt { font-size: 0.875rem; } /* sm */
}

/* Article List */
.artikel-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 56rem; /* 4xl */
}

@media (min-width: 768px) {
    .artikel-list-container { gap: 2rem; }
}

.artikel-list-card {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .artikel-list-card { gap: 1.5rem; }
}

.artikel-list-card:hover .artikel-list-image-wrapper {
    transform: scale(1.05);
}

.artikel-list-card:hover .artikel-list-content .artikel-title {
    color: #ffffff;
}

.artikel-list-image-wrapper {
    position: relative;
    width: 120px;
    aspect-ratio: 16 / 11;
    flex-shrink: 0;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.5s ease;
}

@media (min-width: 640px) {
    .artikel-list-image-wrapper { width: 150px; }
}

@media (min-width: 768px) {
    .artikel-list-image-wrapper { width: 180px; }
}

.artikel-list-image-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

.artikel-list-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.artikel-list-content .artikel-date {
    font-size: 10px;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .artikel-list-content .artikel-date { font-size: 0.75rem; } /* xs */
}

.artikel-list-content .artikel-title {
    font-size: 1rem; /* base */
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .artikel-list-content .artikel-title { font-size: 1.25rem; margin-bottom: 0.5rem; } /* xl */
}

.artikel-list-content .artikel-excerpt {
    font-size: 10px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

@media (min-width: 640px) {
    .artikel-list-content .artikel-excerpt {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (min-width: 768px) {
    .artikel-list-content .artikel-excerpt { font-size: 0.875rem; } /* sm */
}

.artikel-empty {
    color: #FFFAE3;
    opacity: 0.6;
    text-align: center;
    padding: 2.5rem 0;
    margin: 0;
}
