/* Neki Admin - Styles */
/* 브랜드 컬러: #FF5647 (Primary), #202227 (Dark) */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #202227;
    line-height: 1.6;
}

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

/* Header */
.header {
    background-color: #202227;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #FF5647;
}

/* Navigation */
.nav {
    background-color: white;
    border-bottom: 2px solid #e0e0e0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav .container {
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    overflow-x: auto;
}

.nav-btn {
    background-color: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    background-color: #f5f5f5;
    color: #202227;
}

.nav-btn.active {
    background-color: #FF5647;
    color: white;
}

/* Main Content */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.section {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #202227;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #FF5647;
}

/* Upload Area */
.upload-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.upload-info {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #FF5647;
}

.upload-info p {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #FF5647;
    color: white;
}

.btn-primary:hover {
    background-color: #e64537;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 86, 71, 0.3);
}

.btn-secondary {
    background-color: #202227;
    color: white;
}

.btn-secondary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 34, 39, 0.3);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Image Preview Container */
.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.image-preview-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.image-preview-item:hover {
    border-color: #FF5647;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.preview-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.preview-inputs label {
    font-size: 13px;
    font-weight: 600;
    color: #202227;
    margin-bottom: 4px;
    display: block;
}

.preview-inputs select,
.preview-inputs input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.preview-inputs select:focus,
.preview-inputs input:focus {
    outline: none;
    border-color: #FF5647;
}

.preview-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Pose List Container */
.pose-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.pose-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.pose-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #FF5647;
}

.pose-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.pose-info {
    padding: 15px;
}

.pose-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.pose-badge.one {
    background-color: #e3f2fd;
    color: #1976d2;
}

.pose-badge.two {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.pose-badge.three {
    background-color: #e8f5e9;
    color: #388e3c;
}

.pose-badge.four {
    background-color: #fff3e0;
    color: #f57c00;
}

.pose-badge.five_or_more {
    background-color: #fce4ec;
    color: #c2185b;
}

.pose-date {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 34, 39, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #FF5647;
}

.modal-content h2 {
    color: #202227;
    margin-bottom: 15px;
    font-size: 24px;
}

.modal-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(32, 34, 39, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #FF5647;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    color: white;
    margin-top: 20px;
    font-size: 18px;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .image-preview-container {
        grid-template-columns: 1fr;
    }

    .pose-list-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .pose-image {
        height: 180px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 20px 0;
    }

    .section {
        padding: 15px;
        border-radius: 8px;
    }

    .section-title {
        font-size: 18px;
    }

    .pose-list-container {
        grid-template-columns: 1fr;
    }
}
