/* 기본 스타일 및 폰트 설정 */
body {
    font-family: 'Pretendard', sans-serif;
    background-color: #FAF9F6;
    color: #36454F;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center; 
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    justify-content: center; 
}

header {
    text-align: center;
    padding: 20px 0;
}

footer {
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: #aaa;
}


.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #36454F;
    text-decoration: none;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.prompt-message {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 25px;
}

/* 입력창 */
.input-wrapper {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #EAEAEA;
    border-radius: 50px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#mood-input {
    flex-grow: 1;
    border: none;
    background: none;
    padding: 18px 25px;
    font-size: 1rem;
    outline: none;
    width: 100%;
}

#submit-btn {
    border: none;
    background-color: #A8D8B9;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submit-btn:hover {
    background-color: #8dbb9d; 
}

.result-container {
    justify-content: flex-start;
}

.result-intro {
    font-size: 1.1rem;
    color: #555;
    margin-top: 20px;
}

.result-card {
    background-color: white;
    border-radius: 15px;
    padding: 10px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    margin-top: 20px;
    text-align: left;
}

.result-item {
    padding: 25px 0;
    border-bottom: 1px solid #F0F0F0;
}

.result-item:last-child {
    border-bottom: none;
}

.item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
    display: block;
    margin-bottom: 8px;
}

.item-content {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.item-desc {
    font-size: 0.95rem;
    color: #666;
    margin-top: 10px;
    line-height: 1.5;
}

.color-item .item-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
}
.color-item .item-title { margin-bottom: 0; }
#color-name { font-weight: 600; font-size: 1rem; color: #555; }
#color-hex { font-family: monospace; color: #aaa; font-size: 0.9rem; }

#color-display, .color-display { 
    width: 100%; 
    height: 80px; 
    border-radius: 10px; 
    margin: 15px 0 10px;
    transition: background-color 0.5s ease;
}


.back-btn { 
    display: inline-block; 
    margin-top: 40px; 
    text-decoration: none; 
    background-color: #36454F;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: translateY(-2px);
}

.loader {
  width: 18px;
  height: 18px;
  border: 2px solid #FFF;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#app {
    width: 100%;
    height: 100vh; 
    display: flex;
    flex-direction: column;
}
.view-container {
    width: 100%;
    max-width: 600px; 
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.like-btn {
    display: inline-block;
    border: 1px solid #FFB6C1;
    background-color: white;
    color: #DB7093; 
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 15px; 
}
.like-btn:hover {
    background-color: #FFEFF2;
    transform: translateY(-2px);
}
.like-btn:disabled {
    cursor: default;
    opacity: 0.7;
}
.like-btn.success {
    background-color: #E6F9E6;
    border-color: #A8D8B9;
    color: #3B864F;
}

.feedback-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.feedback-btn:hover {
    background-color: #e0e0e0;
    color: #333;
    transform: translateY(-1px);
}

.result-actions {
    text-align: center;
    padding-top: 25px;
    margin-top: 20px;
    border-top: 1px solid #F0F0F0;
    display: flex; 
    justify-content: center; 
    gap: 10px;
}

