/* Minimalistic Design: Black background, flat blue buttons, no rounded corners */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}

.logout-wrapper {
    text-align: right;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Filter Section */
.filter-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #000000;
    border: 1px solid #333333;
}

.filter-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.search-input-wrapper input[type="text"] {
    flex: 1;
}

.search-input-wrapper .btn {
    white-space: nowrap;
    align-self: stretch;
}

.filter-group label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group select,
.filter-group input[type="text"] {
    padding: 10px 15px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #333333;
    font-size: 1em;
    min-width: 200px;
    box-sizing: border-box;
    line-height: 1.5;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #0066cc;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    background-color: #0066cc;
    color: #ffffff;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 1em;
    transition: background-color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.5;
    box-sizing: border-box;
}

.btn:hover {
    background-color: #0052a3;
}

.btn-secondary {
    background-color: #333333;
}

.btn-secondary:hover {
    background-color: #4d4d4d;
}

.btn-primary {
    background-color: #0080ff;
}

.btn-primary:hover {
    background-color: #0066cc;
}

.btn-disabled {
    background-color: #333333;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Gallery Grid - 4 columns x 10 rows per page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    background-color: #1a1a1a;
    overflow: hidden;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    display: block;
    background-color: #1a1a1a;
}

.gallery-item-info {
    padding: 15px;
}

.poster-code {
    font-size: 0.85em;
    color: #0066cc;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.poster-author {
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: bold;
}

.poster-title {
    font-size: 1em;
    color: #cccccc;
    font-weight: normal;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
}

.page-info {
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* Detail View */
.detail-view {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    min-height: 80vh;
}

.detail-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.detail-info {
    flex: 0 0 280px;
    background-color: #000000;
    padding: 20px;
    border: 1px solid #333333;
}

.detail-info h1 {
    font-size: 1.3em;
    margin-bottom: 20px;
    text-align: left;
}

.info-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #333333;
    padding-bottom: 10px;
}

.info-item label {
    display: block;
    font-size: 0.8em;
    color: #0066cc;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-item span {
    display: block;
    font-size: 0.95em;
}

.detail-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.detail-nav .btn {
    width: 100%;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1000px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-view {
        flex-direction: column;
    }
    
    .detail-info {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group select,
    .filter-group input[type="text"] {
        width: 100%;
    }
}
