﻿* {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif !important;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    background-attachment: fixed;
    color: #fff;
    position: relative;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: transparent;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px #fff;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {
    0% {
        transform: scale(0.5);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }

    100% {
        transform: scale(0.5);
        opacity: 0.3;
    }
}

.shooting_star {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
    border-radius: 999px;
    filter: drop-shadow(0 0 6px rgba(105, 155, 255, 1));
    animation: shooting 3s ease-out infinite;
    transform-origin: left center;
}

@keyframes tail {
    0% {
        width: 0;
    }

    30% {
        width: 100px;
    }

    100% {
        width: 0;
    }
}

@keyframes shooting {
    0% {
        width: 0;
        transform: rotate(var(--angle)) translateX(0);
        opacity: 1;
    }

    10% {
        width: 100px;
    }

    100% {
        width: 0;
        transform: rotate(var(--angle)) translateX(400px);
        opacity: 0;
    }
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    text-shadow: 0 0 15px rgba(162, 155, 254, 0.5);
    display: flex;
    align-items: center;
}

    .header-logo span {
        margin-right: 8px;
        font-size: 1.8rem;
    }

.lang-switch {
    display: flex;
    gap: 10px;
}

    .lang-switch button {
        background: transparent;
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: rgba(255, 255, 255, 0.6);
        padding: 6px 14px;
        border-radius: 20px;
        margin-left: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.85rem;
        font-weight: bold;
    }

        .lang-switch button:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
        }

        .lang-switch button.active {
            background: #a29bfe;
            color: #fff;
            border-color: #a29bfe;
            box-shadow: 0 0 10px rgba(162, 155, 254, 0.5);
        }

.main-wrapper {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
    gap: 40px;
}

.content-container {
    width: 100%;
    max-width: 800px;
    color: #e0e0e0;
    text-align: center;
}

.container {
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 50px 4px 50px 4px;
    border: 1px solid rgba(162, 155, 254, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    overflow: visible !important;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5rem;
    background: linear-gradient(to right, #fff, #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(162, 155, 254, 0.5);
}

.subtitle {
    text-align: center;
    color: #a29bfe;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: left;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 1rem;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(162, 155, 254, 0.2) !important;
    border-radius: 10px;
    color: #fff !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    input:focus, select:focus, textarea:focus {
        background: rgba(0, 0, 0, 0.4) !important;
        border-color: #a29bfe !important;
        box-shadow: 0 0 15px rgba(162, 155, 254, 0.3);
        outline: none;
    }

::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    opacity: 1;
}

input:focus::placeholder, textarea:focus::placeholder {
    opacity: 0;
}

.row {
    display: flex;
    gap: 10px;
}

    .row > div {
        flex: 1;
    }

button#btnSubmit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
    transition: transform 0.2s;
    margin-bottom: 10px;
}

    button#btnSubmit:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
    }

#resultArea {
    display: none;
    margin-top: 30px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spinner {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.result-card {
    background: #fff;
    color: #333;
    padding: 25px;
    border-radius: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
}

    .result-card h3 {
        color: #4834d4;
        border-bottom: 2px solid #a29bfe;
        padding-bottom: 5px;
        margin-top: 25px;
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

        .result-card h3:first-child {
            margin-top: 0;
        }

    .result-card strong {
        color: #6c5ce7;
        background: #e0dcfc;
        padding: 0 4px;
        border-radius: 4px;
        font-weight: 700;
    }

    .result-card ul {
        padding-left: 0;
        list-style-type: none;
    }

    .result-card li {
        position: relative;
        padding-left: 20px;
        margin-bottom: 8px;
    }

        .result-card li::before {
            content: '✨';
            position: absolute;
            left: 0;
            font-size: 0.8rem;
            color: #6c5ce7;
        }

.coupang-notice {
    font-size: 0.75rem;
    color: #ccc;
    text-align: right;
    margin-top: 5px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.kakao-btn {
    width: 100%;
    padding: 15px;
    background: #FEE500;
    color: #3c1e1e;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

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

.dropdown-wrapper {
    position: relative;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    color: #333;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid rgba(0,0,0,0.1);
}

    .dropdown-list li {
        padding: 12px;
        cursor: pointer;
        border-bottom: 1px solid #eee;
        font-size: 0.95rem;
        text-align: left;
    }

        .dropdown-list li:hover {
            background-color: #f0f0f0;
            color: #6c5ce7;
            font-weight: bold;
        }

.info-section {
    background: transparent;
    padding: 0 20px;
    border: none;
}

    .info-section h2 {
        text-align: center;
        color: #a29bfe;
        font-size: 2rem;
        margin-bottom: 25px;
        text-shadow: 0 0 10px rgba(162, 155, 254, 0.3);
    }

    .info-section h3 {
        color: #fff;
        font-size: 1.2rem;
        margin-top: 30px;
        margin-bottom: 15px;
        opacity: 0.9;
    }

    .info-section p {
        margin-bottom: 15px;
        font-size: 1.1rem;
        line-height: 1.8;
        word-break: keep-all;
        color: #e0e0e0;
    }

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background: #0f0c29;
    border-top: 2px solid #6c5ce7;
    box-shadow: 0 -10px 40px rgba(108, 92, 231, 0.2);
    z-index: 10;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin: 0 10px;
    font-weight: normal;
    font-size: 0.85rem;
    transition: color 0.3s;
}

    .footer-links a:hover {
        color: #fff;
        text-shadow: 0 0 10px #fff;
    }

.copyright {
    margin-top: 15px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    .info-section h2 {
        font-size: 1.6rem;
    }

    .app-header {
        padding: 0 20px;
    }
}

#birthdate {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c5ce7'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zm-7 5h5v5h-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 24px;
    cursor: pointer;
}

.air-datepicker-global-container {
    z-index: 9999 !important;
}

.air-datepicker {
    background-color: #24243e;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: 'Pretendard', sans-serif;
    border-radius: 15px;
}

.air-datepicker-nav--title {
    color: #a29bfe !important;
    font-weight: bold;
}

.air-datepicker-nav--action path {
    stroke: #a29bfe;
}

.air-datepicker-cell.-current- {
    color: #a29bfe;
    font-weight: bold;
}

.air-datepicker-cell.-selected- {
    background: #6c5ce7;
    color: #fff;
}

.air-datepicker-body--day-name {
    color: #a29bfe;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.nebula-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

    .nebula-bg::before {
        content: '';
        position: absolute;
        bottom: -10%;
        left: -10%;
        width: 60vw;
        height: 60vh;
        background: radial-gradient(circle, rgba(255, 0, 150, 0.3) 0%, rgba(0,0,0,0) 70%);
        filter: blur(70px);
        animation: breathe 8s ease-in-out infinite alternate;
    }

    .nebula-bg::after {
        content: '';
        position: absolute;
        top: -10%;
        right: -10%;
        width: 60vw;
        height: 60vh;
        background: radial-gradient(circle, rgba(0, 255, 255, 0.3) 0%, rgba(0,0,0,0) 70%);
        filter: blur(70px);
        animation: breathe 10s ease-in-out infinite alternate-reverse;
    }

@keyframes breathe {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}}

.seo-content-wrapper {
    width: 100%;
    max-width: 800px; /* 메인 컨텐츠와 너비 맞춤 */
    margin: 40px 0; /* 위아래 여백 */
    padding: 0 20px;
}

.seo-card {
    background: rgba(0, 0, 0, 0.3); /* 배경을 어둡게 깔아서 글씨가 잘 보이게 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    color: #dcdde1; /* 눈이 편한 회색 톤 */
    text-align: left;
    line-height: 1.8;
}

    .seo-card h3 {
        color: #a29bfe; /* 포인트 컬러 (보라색) */
        font-size: 1.5rem;
        margin-top: 40px;
        margin-bottom: 20px;
        border-left: 4px solid #a29bfe;
        padding-left: 15px;
    }

        .seo-card h3:first-child {
            margin-top: 0;
        }

    .seo-card p {
        margin-bottom: 15px;
        font-size: 0.95rem;
        word-break: keep-all; /* 단어 단위 줄바꿈 */
    }

    .seo-card strong {
        color: #fff;
        font-weight: 700;
    }

.seo-divider {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

/* 12별자리 그리드 레이아웃 */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* 반응형 그리드 */
    gap: 20px;
    margin-top: 20px;
}

.zodiac-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
}

    .zodiac-item strong {
        display: block;
        color: #74b9ff; /* 별자리 이름은 하늘색 */
        margin-bottom: 8px;
        font-size: 1.05rem;
    }

    .zodiac-item p {
        font-size: 0.85rem;
        color: #ccc;
        margin: 0;
    }

/* FAQ 리스트 스타일 */
.faq-list {
    list-style: none;
    padding: 0;
}

    .faq-list li {
        margin-bottom: 25px;
        background: rgba(255, 255, 255, 0.03);
        padding: 20px;
        border-radius: 12px;
    }

    .faq-list strong {
        display: block;
        color: #ff7675; /* 질문은 핑크색 */
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .faq-list span {
        display: block;
        color: #e0e0e0;
    }

/* 모바일 대응 */
@media (max-width: 600px) {
    .seo-card {
        padding: 25px;
    }

    .zodiac-grid {
        grid-template-columns: 1fr;
    }
    /* 모바일에서는 한 줄로 */
}