* { box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background-color: #fce7f3; color: #2d1622; margin: 0; padding: 15px; position: relative; min-height: 100vh; overflow-x: hidden; }
.aurora-bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%); overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; mix-blend-mode: multiply; animation: float 20s infinite ease-in-out; }
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #f472b6; animation-duration: 25s; }
.blob-2 { bottom: -10%; right: -5%; width: 60vw; height: 60vw; background: #c084fc; animation-delay: -5s; animation-duration: 30s; }
.blob-3 { top: 40%; left: 50%; width: 45vw; height: 45vw; background: #fda4af; animation-delay: -10s; animation-duration: 22s; }
@keyframes float { 0% { transform: translate(0px, 0px) scale(1); } 33% { transform: translate(40px, -60px) scale(1.15); } 66% { transform: translate(-30px, 20px) scale(0.9); } 100% { transform: translate(0px, 0px) scale(1); } }
@keyframes heartbeat { 0% { transform: scale(1); } 14% { transform: scale(1.3); } 28% { transform: scale(1); } 42% { transform: scale(1.3); } 70% { transform: scale(1); } }
.love-heart { display: inline-block; cursor: pointer; animation: heartbeat 2s infinite; margin-left: 8px; font-size: 24px; }
h1 { color: #9d174d; font-size: 28px; font-weight: 800; margin-top: 5px; margin-bottom: 5px; text-align: center; letter-spacing: -0.5px; display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) { h1 { text-align: left; font-size: 34px; justify-content: flex-start; } }
h2 { color: #be185d; font-size: 19px; font-weight: 700; margin-top: 0; margin-bottom: 18px; border-left: 4px solid #f472b6; padding-left: 10px; }
.header-control-box { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 768px) { .header-control-box { flex-direction: row; justify-content: space-between; align-items: center; } }
.nav-bar, .season-bar { display: flex; gap: 8px; background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 5px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.5); }
.nav-btn, .season-btn { background: transparent; color: #db2777; border: none; padding: 8px 16px; font-size: 14px; font-weight: 700; border-radius: 12px; cursor: pointer; transition: all 0.25s ease; text-decoration: none; display: inline-flex; align-items: center; }
.nav-btn:hover, .season-btn:hover { background: rgba(255, 255, 255, 0.6); }
.nav-btn.active { background: linear-gradient(135deg, #f43f5e, #db2777); color: white; box-shadow: 0 4px 12px rgba(219, 39, 119, 0.15); }
.season-btn.active { background: linear-gradient(135deg, #7c3aed, #c084fc); color: white; box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15); }
.tag-filter-container { display: flex; gap: 8px; overflow-x: auto; padding: 5px 0 10px 0; width: 100%; -webkit-overflow-scrolling: touch; }
.tag-chip, .color-chip { background: rgba(255, 255, 255, 0.7); color: #4a373d; border: 1px solid #fbcfe8; padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.tag-chip:hover, .color-chip:hover { background: #fff; }
.tag-chip.active, .color-chip.active { background: #db2777; color: white; border-color: #db2777; }
.tag-chip.fav-filter-chip { background: rgba(255, 255, 255, 0.9); border-color: #f43f5e; color: #e11d48; font-weight: 800; }
.tag-chip.fav-filter-chip.active { background: #e11d48; color: white; border-color: #e11d48; }
.container { display: flex; flex-direction: column; gap: 20px; max-width: 1400px; margin: 20px auto 0 auto; }
@media (min-width: 768px) { .container { flex-direction: row; align-items: flex-start; } }
.panel { background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); padding: 24px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 10px 30px -5px rgba(219, 39, 119, 0.08); width: 100%; }
.main-panel { flex: 2.5; }
.outfit-panel { flex: 1; min-width: 330px; display: flex; flex-direction: column; align-items: center; }
.upload-section { background: rgba(255, 245, 247, 0.5); padding: 18px; border-radius: 18px; margin-bottom: 30px; border: 1px dashed rgba(244, 114, 182, 0.5); }
.upload-form { display: flex; flex-direction: column; gap: 12px; }
.upload-btn-group { display: flex; gap: 10px; width: 100%; }
@media (min-width: 1024px) { .upload-form { grid-template-columns: 1fr 1fr 1fr 1fr; display: grid; gap: 15px; align-items: center; } .upload-btn-group { grid-column: 1 / -1; display: flex; gap: 15px; } }
@media (max-width: 580px) { .upload-btn-group { flex-direction: column; gap: 8px; } }
input[type="file"] { display: none !important; }
.custom-file-upload { border: 2px dashed #f472b6; display: inline-block; padding: 14px; cursor: pointer; border-radius: 14px; background-color: rgba(255, 255, 255, 0.9); text-align: center; color: #db2777; font-weight: 600; transition: all 0.25s ease; flex: 1; width: 100%; margin: 0; }
.custom-file-upload:hover { background-color: #fff; }
.custom-file-upload.has-file { background-color: #f0fdf4; border-color: #4ade80; color: #166534; }
select { padding: 14px; border-radius: 14px; border: 1px solid #fbcfe8; background-color: rgba(255, 255, 255, 0.9); color: #4a373d; font-size: 15px; font-weight: 600; outline: none; cursor: pointer; width: 100%; transition: all 0.2s; margin: 0; }
button.submit-btn, .random-btn { background: linear-gradient(135deg, #f43f5e, #db2777); color: white; border: none; padding: 14px 24px; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.25s ease; width: 100%; margin: 0; }
.random-btn { background: linear-gradient(135deg, #ec4899, #be185d); }
.clear-btn { background: rgba(255, 255, 255, 0.8); color: #e11d48; border: 1px solid #fbcfe8; border-radius: 14px; padding: 0 18px; font-size: 18px; cursor: pointer; transition: all 0.25s ease; box-shadow: 0 4px 10px rgba(225, 29, 72, 0.1); display: inline-flex; align-items: center; justify-content: center; }
.clear-btn:hover { background: #ffe4e6; transform: translateY(-2px); border-color: #fda4af; }
button:active { transform: scale(0.96); }
.wardrobe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px; }
@media (min-width: 480px) { .wardrobe-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 20px; } }
.wardrobe-item { border: 1px solid rgba(252, 231, 243, 0.7); border-radius: 18px; padding: 12px; text-align: center; cursor: pointer; background: rgba(255, 255, 255, 0.85); position: relative; transition: all 0.3s ease; }
.wardrobe-item:hover { transform: translateY(-5px); border-color: #f472b6; background: #fff; }
.wardrobe-item img { max-width: 100%; height: 110px; object-fit: contain; border-radius: 10px; }
.wardrobe-item p { margin: 10px 0 0 0; font-size: 11px; color: #83636e; font-weight: 700; text-transform: uppercase; line-height: 1.3; }
.tag-badge { background: #fbcfe8; color: #9d174d; padding: 2px 6px; border-radius: 8px; font-size: 9px; display: inline-block; margin-top: 3px; margin-right: 2px; }
.color-badge { background: #fff; border: 1px solid #fbcfe8; color: #4a373d; padding: 1px 5px; border-radius: 8px; font-size: 9px; display: inline-block; margin-top: 3px; }
.item-delete-btn { position: absolute; top: -6px; right: -6px; background: #fff; color: #f43f5e; border: 1px solid #fecdd3; border-radius: 50%; width: 26px; height: 26px; font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: 0 4px 8px rgba(0,0,0,0.06); text-decoration: none; }
.item-fav-btn { position: absolute; top: -6px; left: -6px; background: #fff; border: 1px solid #fbcfe8; border-radius: 50%; width: 26px; height: 26px; font-size: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: 0 4px 8px rgba(0,0,0,0.06); text-decoration: none; transition: transform 0.2s; }
.item-fav-btn:hover { transform: scale(1.15); }
.manage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.manage-item { background: rgba(255, 255, 255, 0.9); border: 1px solid #fbcfe8; border-radius: 20px; padding: 15px; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: space-between; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.01); }
.manage-item img {
    width: 100%;
    height: 130px;
    object-fit: contain;
    border-radius: 12px;
    background: transparent;
    padding: 0;
    cursor: zoom-in;
    transition: transform 0.2s;
}
.manage-item img:hover { transform: scale(1.03); }
.manage-edit-form { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 10px; margin-bottom: 5px; }
select.manage-select { padding: 6px 8px; font-size: 11px; border-color: #f472b6; background-color: #fff; width: 100%; height: 32px; border-radius: 10px; }
.btn-save { background: #10b981; color: white; border: none; padding: 8px; border-radius: 10px; font-weight: bold; font-size: 11px; cursor: pointer; transition: all 0.2s; width: 100%; }
.btn-save:hover { background: #059669; }
.manage-delete-btn { background: #fff5f5; color: #e11d48; border: 1px solid #fecdd3; padding: 8px; border-radius: 10px; width: 100%; font-weight: 700; font-size: 11px; cursor: pointer; transition: all 0.2s; text-align: center; text-decoration: none; display: block; }
.manage-delete-btn:hover { background: #e11d48; color: white; border-color: #e11d48; }
.body-view { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 330px; background: linear-gradient(180deg, rgba(252, 231, 243, 0.6) 0%, rgba(251, 207, 232, 0.6) 100%); border-radius: 24px; padding: 16px; border: 1px solid rgba(255, 255, 255, 0.4); }
.slot { width: 100%; display: flex; justify-content: center; align-items: center; border: 2px dashed rgba(244, 114, 182, 0.6); margin-bottom: 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(5px); position: relative; overflow: hidden; height: 150px; }
.slot-top { height: 160px; } .slot-bottom { height: 200px; } .slot-shoes { height: 100px; margin-bottom: 0; }
@media (min-width: 768px) { .slot-top { height: 210px; } .slot-bottom { height: 260px; } .slot-shoes { height: 120px; } }
.slot img { max-width: 100%; max-height: 100%; object-fit: contain; position: relative; z-index: 2; animation: appPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes appPop { from { opacity: 0; transform: scale(0.85) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0px); } }
.slot::before { content: attr(data-label); position: absolute; color: #db2777; opacity: 0.4; font-size: 15px; font-weight: 700; z-index: 1; }
@media (max-width: 767px) { .outfit-panel { order: -1; margin-bottom: 5px; padding: 18px; } .body-view { max-width: 100%; flex-direction: row; gap: 10px; border-radius: 20px; } .slot { margin-bottom: 0; height: 135px; flex: 1; border-radius: 14px; } }
.fullscreen-modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(45, 22, 34, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 99999; justify-content: center; align-items: center; cursor: zoom-out; }
.fullscreen-modal img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); animation: zoomEffect 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.close-modal-btn { position: absolute; top: 20px; right: 25px; color: white; font-size: 35px; font-weight: bold; cursor: pointer; background: rgba(255,255,255,0.1); border: none; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
@keyframes zoomEffect { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.info-box { background: linear-gradient(135deg, #ffffff, #fdf2f8); padding: 30px; border-radius: 24px; max-width: 400px; width: 90%; text-align: center; position: relative; box-shadow: 0 20px 40px rgba(0,0,0,0.2); cursor: default; border: 2px solid #fbcfe8; animation: zoomEffect 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }