/* ====================================
   재물·금전운 체크리스트 스타일
   메인 색상: #DEB564 (골드)
==================================== */

/* CSS Variables */
:root {
    --money-gold: #DEB564;
    --money-gold-light: #F5E6C4;
    --money-gold-dark: #8B6914;
    --money-success: #27ae60;
    --money-warning: #f39c12;
    --money-danger: #e74c3c;
    --money-gradient: linear-gradient(135deg, #8B6914 0%, #6B5210 100%);
}

/* Header */
.money-header {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, rgba(222, 181, 100, 0.15) 0%, rgba(139, 105, 20, 0.15) 100%);
    border-radius: 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.money-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: shimmer 8s linear infinite;
}

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

.money-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.money-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--money-gold-dark), var(--money-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.money-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Progress Section */
.progress-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(139, 105, 20, 0.1);
    position: sticky;
    top: calc(var(--nav-height) + 10px);
    z-index: 100;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-text {
    font-weight: 600;
    color: #333;
}

.progress-percent {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--money-gold-dark);
}

.progress-bar-container {
    height: 12px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--money-gradient);
    border-radius: 10px;
    transition: width 0.5s ease, background 0.3s ease;
}

.score-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(222, 181, 100, 0.1) 0%, rgba(139, 105, 20, 0.1) 100%);
    border-radius: 15px;
}

.score-label {
    color: #666;
    font-weight: 500;
}

.score-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--money-gold-dark);
    transition: all 0.3s ease;
}

.score-max {
    color: #999;
    font-size: 0.9rem;
}

/* Checklist Section */
.checklist-section {
    background: white;
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: #777;
    margin-bottom: 40px;
}

/* Checklist Category */
.checklist-category {
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.checklist-category:hover {
    border-color: rgba(222, 181, 100, 0.3);
    box-shadow: 0 5px 25px rgba(222, 181, 100, 0.15);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--money-gold-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px dashed rgba(222, 181, 100, 0.3);
}

.category-icon {
    font-size: 1.5rem;
}

/* Checklist Item */
.checklist-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.checklist-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.item-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.item-number {
    width: 32px;
    height: 32px;
    background: var(--money-gradient);
    color: #FFF5D6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.item-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    line-height: 1.5;
    padding-top: 4px;
}

/* Rating Group */
.rating-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.rating-option {
    flex: 1;
    min-width: 80px;
    max-width: 120px;
    cursor: pointer;
    text-align: center;
}

.rating-option input {
    display: none;
}

.rating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    background: #f0f0f0;
    border: 3px solid transparent;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    color: #999;
    transition: all 0.3s ease;
}

.rating-option:hover .rating-btn {
    background: rgba(222, 181, 100, 0.2);
    border-color: rgba(222, 181, 100, 0.5);
    color: var(--money-gold-dark);
}

.rating-option input:checked + .rating-btn {
    background: var(--money-gradient);
    border-color: var(--money-gold-dark);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(139, 105, 20, 0.3);
}

.rating-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
    transition: color 0.3s ease;
}

.rating-option input:checked ~ .rating-label {
    color: var(--money-gold-dark);
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.result-btn,
.reset-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.result-btn {
    background: var(--money-gradient);
    color: #FFF5D6;
    box-shadow: 0 8px 30px rgba(139, 105, 20, 0.3);
}

.result-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(139, 105, 20, 0.4);
}

.result-btn:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.reset-btn {
    background: white;
    color: var(--money-gold-dark);
    border: 2px solid var(--money-gold);
}

.reset-btn:hover {
    background: var(--money-gold-light);
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.2rem;
}

/* Result Section */
.result-section {
    background: white;
    border-radius: 30px;
    padding: 50px 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 60px rgba(139, 105, 20, 0.15);
    animation: slideUp 0.6s ease;
}

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

.result-header {
    text-align: center;
    margin-bottom: 40px;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

/* Score Display */
.score-display {
    text-align: center;
    margin-bottom: 50px;
}

.score-circle {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
}

.score-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 10;
}

.ring-progress {
    fill: none;
    stroke: var(--money-gold);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1.5s ease, stroke 0.5s ease;
}

.score-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.final-score {
    font-size: 3rem;
    font-weight: 800;
    color: var(--money-gold-dark);
}

.score-unit {
    font-size: 1.2rem;
    color: #666;
    margin-left: 3px;
}

.score-grade {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 10px 30px;
    border-radius: 30px;
    display: inline-block;
}

.score-grade.excellent {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
}

.score-grade.good {
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
    color: white;
}

.score-grade.average {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: #333;
}

.score-grade.poor {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
    color: white;
}

.score-grade.danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

/* Category Scores */
.category-scores {
    margin-bottom: 50px;
}

.category-title-sm {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.category-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.category-bar-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
}

.bar-score {
    color: var(--money-gold-dark);
    font-weight: 700;
}

.bar-track {
    height: 12px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 1s ease, background 0.3s ease;
}

.bar-fill.high {
    background: linear-gradient(90deg, #27ae60, #2ecc71);
}

.bar-fill.medium {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.bar-fill.low {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

/* Fortune Advice */
.fortune-advice {
    background: linear-gradient(135deg, rgba(222, 181, 100, 0.1) 0%, rgba(139, 105, 20, 0.1) 100%);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid rgba(222, 181, 100, 0.3);
}

.advice-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--money-gold-dark);
    text-align: center;
    margin-bottom: 25px;
}

.advice-content {
    text-align: center;
}

.advice-main {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.advice-detail {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
}

/* Lucky Elements */
.lucky-elements {
    margin-bottom: 40px;
}

.lucky-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
}

.lucky-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.lucky-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.lucky-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.lucky-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.lucky-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--money-gold-dark);
}

.lucky-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Tips Section */
.tips-section {
    background: white;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 40px;
    border: 2px solid #f0f0f0;
}

.tips-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #fafafa;
    border-radius: 15px;
    border-left: 4px solid var(--money-gold);
    transition: all 0.3s ease;
}

.tip-item:hover {
    background: rgba(222, 181, 100, 0.1);
    transform: translateX(5px);
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tip-content {
    flex: 1;
}

.tip-title-sm {
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.tip-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.retry-btn,
.share-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.retry-btn {
    background: white;
    border: 2px solid #C9A246;
    color: #8B6914;
}

.retry-btn:hover {
    background: linear-gradient(135deg, #8B6914 0%, #6B5210 100%);
    color: #FFF5D6;
    border-color: #8B6914;
}

.share-btn {
    background: linear-gradient(135deg, #8B6914 0%, #6B5210 100%);
    color: #FFF5D6;
    box-shadow: 0 5px 25px rgba(107, 82, 16, 0.3);
}

.share-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #9B7916 0%, #7B6212 100%);
    box-shadow: 0 10px 35px rgba(107, 82, 16, 0.4);
}

/* Fortune Timeline */
.fortune-timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.timeline-item {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    border-left: 4px solid var(--money-gold);
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--money-gold-dark);
    margin-bottom: 15px;
}

.timeline-content {
    color: #555;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Category Feedback */
.category-feedback {
    margin-bottom: 40px;
}

.feedback-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
}

.category-feedback-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-feedback-item {
    background: white;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.category-feedback-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.category-feedback-item.high {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.05) 0%, white 100%);
}

.category-feedback-item.medium {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.05) 0%, white 100%);
}

.category-feedback-item.low {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, white 100%);
}

.feedback-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #333;
}

.feedback-comment {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.feedback-advice {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 15px;
    background: rgba(222, 181, 100, 0.1);
    border-radius: 12px;
}

/* Lucky Elements Detailed */
.lucky-grid-detailed {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.lucky-item-detailed {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lucky-item-detailed:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.lucky-item-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.lucky-meaning {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
    margin-top: 5px;
}

/* Action Items Section */
.action-items-section {
    background: linear-gradient(135deg, var(--money-gold-light) 0%, rgba(222, 181, 100, 0.3) 100%);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid rgba(222, 181, 100, 0.4);
}

.action-items-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--money-gold-dark);
    text-align: center;
    margin-bottom: 25px;
}

.action-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.action-item:hover {
    transform: translateX(8px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.action-number {
    width: 35px;
    height: 35px;
    background: var(--money-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.action-text {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .money-header {
        padding: 40px 20px;
    }

    .money-title {
        font-size: 1.8rem;
    }

    .money-icon {
        font-size: 3rem;
    }

    .progress-section {
        padding: 20px;
        position: relative;
        top: 0;
    }

    .checklist-section {
        padding: 25px 20px;
    }

    .checklist-category {
        padding: 20px;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .checklist-item {
        padding: 20px 15px;
    }

    .item-question {
        font-size: 0.95rem;
    }

    .rating-group {
        gap: 8px;
    }

    .rating-option {
        min-width: 55px;
        max-width: 65px;
    }

    .rating-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .rating-label {
        font-size: 0.65rem;
    }

    .result-section {
        padding: 30px 20px;
    }

    .score-circle {
        width: 150px;
        height: 150px;
    }

    .final-score {
        font-size: 2.5rem;
    }

    .lucky-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lucky-grid-detailed {
        grid-template-columns: repeat(2, 1fr);
    }

    .fortune-timeline {
        grid-template-columns: 1fr;
    }

    .category-feedback-item {
        padding: 20px;
    }

    .action-items-section {
        padding: 25px 20px;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

    .result-btn,
    .reset-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .retry-btn,
    .share-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .money-title {
        font-size: 1.5rem;
    }

    .category-bars {
        gap: 15px;
    }

    .category-bar-item {
        padding: 15px;
    }

    .fortune-advice {
        padding: 25px 20px;
    }

    .advice-main {
        font-size: 1.1rem;
    }

    .tips-section {
        padding: 25px 15px;
    }

    .tip-item {
        padding: 15px;
    }

    .lucky-grid-detailed {
        grid-template-columns: 1fr;
    }

    .lucky-item-detailed {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 20px;
    }

    .timeline-item {
        padding: 20px;
    }

    .action-item {
        padding: 15px 20px;
    }

    .action-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .feedback-advice {
        padding: 12px;
    }
}

