:root {
    --primary-gold: #D4AF37;
    --dark-bg: #1A1A1A;
    --soft-white: #F9F9F9;
    --gray-text: #666666;
    --accent-color: #E6B800;
}

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

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--soft-white);
    color: var(--dark-bg);
    line-height: 1.6;
}

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

header {
    background-color: var(--dark-bg);
    color: var(--soft-white);
    padding: 60px 0;
    text-align: center;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    letter-spacing: 5px;
    color: var(--primary-gold);
}

header p {
    font-weight: 300;
    opacity: 0.8;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-gold);
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

section {
    padding: 80px 0;
}

.gallery {
    background-color: #fff;
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.style-item {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.style-item:hover, .style-item.active {
    border-color: var(--primary-gold);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    transform: translateY(-5px);
}

.style-item svg {
    width: 100%;
    height: auto;
    max-height: 40px;
}

.style-item p {
    font-size: 0.8rem;
    margin-top: 10px;
    font-weight: bold;
}

.studio-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.drop-zone {
    width: 100%;
    max-width: 400px;
    min-height: 250px;
    border: 2px dashed var(--primary-gold);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: rgba(212, 175, 55, 0.05);
}

.drop-zone-content {
    text-align: center;
    padding: 20px;
}

.upload-btn, .camera-btn {
    display: block;
    width: 200px;
    padding: 12px;
    margin: 10px auto;
    background-color: var(--primary-gold);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.camera-btn {
    background-color: var(--dark-bg);
}

.upload-btn:hover, .camera-btn:hover {
    transform: scale(1.02);
}

.capture-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: red;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.drop-zone.dragover {
    background-color: rgba(212, 175, 55, 0.2);
}

.canvas-container {
    width: 100%;
    max-width: 600px;
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

canvas {
    width: 100%;
    display: block;
}

.controls {
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.control-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.control-group label {
    width: 100px;
    font-size: 0.9rem;
}

.control-group input {
    flex-grow: 1;
}

#reset-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--dark-bg);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

footer {
    background-color: var(--dark-bg);
    color: var(--soft-white);
    text-align: center;
    padding: 60px 0;
}

footer h3 {
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.kakao-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #FEE500;
    color: #000;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 30px;
    transition: transform 0.2s;
}

.kakao-btn:hover {
    transform: scale(1.05);
}

.kakao-btn img {
    width: 24px;
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    opacity: 0.5;
}

@media (min-width: 768px) {
    .studio-layout {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }
    
    .drop-zone {
        flex: 0 0 300px;
        height: 300px;
    }
}
