/* Frontend Styles for Etalase Produk Skripsi */

.eps-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filter Bar */
.eps-filter-bar {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.eps-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.eps-filter-group {
    flex: 1;
    min-width: 200px;
}

.eps-filter-group input,
.eps-filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.eps-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
}

.eps-btn-primary {
    background: #2563eb;
    color: white;
}

.eps-btn-primary:hover {
    background: #1d4ed8;
    color: white;
}

.eps-btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.eps-btn-secondary:hover {
    background: #d1d5db;
    color: #1f2937;
}

/* Grid Layout for Archive */
.eps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.eps-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f3f4f6;
}

.eps-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.eps-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.eps-card-image {
    height: 180px;
    background: #f3f4f6;
    overflow: hidden;
}

.eps-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eps-placeholder-image-small {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eps-card-content {
    padding: 20px;
}

.eps-card-meta {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.eps-card-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #111827;
    line-height: 1.4;
}

.eps-card-author {
    font-size: 14px;
    color: #4b5563;
}

/* Pagination */
.eps-pagination {
    margin-top: 40px;
    text-align: center;
}

.eps-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-decoration: none;
    color: #374151;
}

.eps-pagination .page-numbers.current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Single Product View */
.eps-single-product .eps-header {
    margin-bottom: 30px;
    text-align: center;
}

.eps-single-product .eps-title {
    font-size: 32px;
    color: #111827;
    margin-bottom: 15px;
}

.eps-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    margin: 0 5px;
}

.eps-badge.eps-jenis {
    background: #dbeafe;
    color: #1e40af;
}

.eps-badge.eps-bidang {
    background: #f3e8ff;
    color: #6b21a8;
}

.eps-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.eps-image-column {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.eps-details-column {
    flex: 2;
    min-width: 300px;
}

.eps-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.eps-placeholder-image {
    width: 100%;
    padding-top: 75%;
    background: #f3f4f6;
    border-radius: 8px;
    position: relative;
}

.eps-placeholder-image span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9ca3af;
}

.eps-download-box {
    margin-top: 20px;
    text-align: center;
}

.eps-download-box .eps-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.eps-section {
    margin-bottom: 40px;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f3f4f6;
}

.eps-section h2 {
    font-size: 20px;
    color: #111827;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.eps-table {
    width: 100%;
    border-collapse: collapse;
}

.eps-table th, .eps-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.eps-table th {
    width: 30%;
    color: #4b5563;
    font-weight: 600;
    background: #f9fafb;
}

.eps-table tr:last-child th,
.eps-table tr:last-child td {
    border-bottom: none;
}

.eps-status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.eps-status-prototipe {
    background: #fef3c7;
    color: #b45309;
}

.eps-status-uji-coba {
    background: #e0e7ff;
    color: #4338ca;
}

.eps-status-digunakan {
    background: #d1fae5;
    color: #047857;
}

@media (max-width: 768px) {
    .eps-content-wrapper {
        flex-direction: column;
    }
    
    .eps-image-column {
        max-width: 100%;
    }
    
    .eps-table th, .eps-table td {
        display: block;
        width: 100%;
    }
    
    .eps-table th {
        background: transparent;
        padding-bottom: 4px;
    }
    
    .eps-table td {
        padding-top: 0;
        margin-bottom: 10px;
    }
}
