* {
    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);
}

.ar-board-search-button {
    display: flex;
    align-items: center;
}

.ar-board-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ar-board-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ar-board-btn i {
    font-size: 16px;
}

.ar-board-btn span {
    font-size: 14px;
}

.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: 40px;
    color: #888;
    font-size: 18px;
}

/* AR 마커 다이얼로그 스타일 */
#ar-marker-dialog {
    animation: fadeIn 0.3s ease-out;
}

#ar-marker-dialog .dialog-content {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 썸네일 호버 효과 */
.item-image img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* AR 마커 캔버스 스타일 */
#ar-marker-dialog canvas {
    transition: transform 0.3s ease;
}

#ar-marker-dialog canvas:hover {
    transform: scale(1.02);
}

/* 버튼 호버 효과 개선 */
#ar-marker-dialog button {
    position: relative;
    overflow: hidden;
}

#ar-marker-dialog button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#ar-marker-dialog button:hover::before {
    left: 100%;
} 