* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
}

.gallery-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    padding: 20px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.register-btn {
    padding: 10px 20px;
    background-color: #00ff88;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.register-btn:hover {
    background-color: #00cc6a;
    transform: translateY(-2px);
}

.gallery-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    border-radius: 20px;
    padding: 8px 15px;
    width: 400px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border-radius: 5px;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: white;
    font-size: 16px;
}

.search-bar i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.categories {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.category {
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #2a2a2a;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.category:hover {
    background-color: #3a3a3a;
}

.category.active {
    background-color: #4a4a4a;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 8px 16px;
    border-radius: 5px;
    background-color: #2a2a2a;
    border: 1px solid #333;
    color: white;
    cursor: pointer;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.item-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.item-card:hover {
    transform: translateY(-5px);
}

.item-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    padding: 15px;
}

.item-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.item-category {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.item-price {
    font-size: 14px;
    color: #00ff88;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
    background: #2a2a2a;
    padding: 10px 14px 0 0;
    border-top: 1px solid #333;
}

.edit-button, .delete-button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.edit-button {
    background-color: #1565C0;
    color: #ffffff;
}

.edit-button:hover {
    background-color: #0D47A1;
    transform: translateY(-2px);
}

.edit-button i {
    font-size: 16px;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-button {
    background-color: #ff5252;
    color: white;
}

.delete-button:hover {
    background-color: #ff1744;
    transform: translateY(-2px);
}

.delete-button i {
    font-size: 16px;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.item-tag {
    padding: 4px 8px;
    background-color: #3a3a3a;
    border-radius: 4px;
    font-size: 12px;
    color: #ccc;
}

.item-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.item-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-stats i {
    font-size: 14px;
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* 로딩 인디케이터 */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* 에러 메시지 */
.error-message {
    text-align: center;
    padding: 20px;
    color: #ff4444;
}

/* 빈 결과 메시지 */
.no-items {
    text-align: center;
    padding: 20px;
    color: #888;
} 