/* ====================================
   행운 슬라임 키우기 - 전용 스타일시트
==================================== */

/* How to Play Section */
.how-to-play-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.how-to-toggle {
    width: 100%;
    padding: 20px 30px;
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border: none;
    border-bottom: 2px solid #DEB564;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    color: #5C4A1F;
}

.how-to-toggle:hover {
    background: linear-gradient(135deg, #FFEFD5, #FFE4B5);
}

.how-to-toggle.active .toggle-arrow {
    transform: rotate(180deg);
}

.toggle-icon {
    font-size: 1.3rem;
    margin-right: 10px;
}

.toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.how-to-content {
    padding: 30px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.how-to-content.hidden {
    display: none;
}

.how-to-content h3 {
    color: #5C4A1F;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.how-to-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #DEB564;
    transition: transform 0.2s;
}

.step-item:hover {
    transform: translateX(5px);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    color: #5C4A1F;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.step-content p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.how-to-tips {
    background: linear-gradient(135deg, #E8F8F5, #D5F5E3);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #27AE60;
}

.how-to-tips h4 {
    color: #16A085;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.how-to-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.how-to-tips li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: #2C3E50;
    line-height: 1.7;
}

.how-to-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27AE60;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Game Section */
.game-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Slime Container */
.slime-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Slime Display */
.slime-display {
    margin-bottom: 30px;
}

.slime-body {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    position: relative;
    animation: slime-bounce 2s ease-in-out infinite;
}

@keyframes slime-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* Slime States - Base */
.slime-body {
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    transition: all 0.5s ease;
}

/* Happy State */
.slime-body.happy {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

/* Normal State */
.slime-body.normal {
    background: linear-gradient(135deg, #98D8C8, #6ECCAF);
    box-shadow: 0 10px 40px rgba(152, 216, 200, 0.4);
}

/* Sleepy State */
.slime-body.sleepy {
    background: linear-gradient(135deg, #A8DADC, #457B9D);
    box-shadow: 0 10px 40px rgba(168, 218, 220, 0.4);
    animation: slime-sleep 3s ease-in-out infinite;
}

@keyframes slime-sleep {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(5px) scale(0.95); }
}

/* Excited State */
.slime-body.excited {
    background: linear-gradient(135deg, #FF6B9D, #FF8C42);
    box-shadow: 0 15px 50px rgba(255, 107, 157, 0.5);
    animation: slime-excited 1s ease-in-out infinite;
}

@keyframes slime-excited {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
    25% { transform: translateY(-15px) scale(1.1) rotate(-5deg); }
    75% { transform: translateY(-15px) scale(1.1) rotate(5deg); }
}

/* Level 2 - Sparkles */
.slime-body.level-2 {
    background: linear-gradient(135deg, #C77DFF, #9D4EDD);
    box-shadow: 0 10px 40px rgba(199, 125, 255, 0.4);
}

/* Level 3 - Rainbow */
.slime-body.level-3 {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4, #45B7D1, #FFA07A);
    background-size: 400% 400%;
    animation: rainbow 3s ease infinite;
    box-shadow: 0 15px 50px rgba(255, 107, 107, 0.4);
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Slime Face */
.slime-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 60px;
}

.slime-eyes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.eye {
    width: 20px;
    height: 20px;
    background: #333;
    border-radius: 50%;
    position: relative;
    animation: blink 3s infinite;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.eye.left {
    left: 5px;
}

.eye.right {
    right: 5px;
}

.slime-mouth {
    width: 30px;
    height: 15px;
    border: 3px solid #333;
    border-top: none;
    border-radius: 0 0 30px 30px;
    margin: 0 auto;
    position: relative;
}

/* Happy Mouth */
.slime-body.happy .slime-mouth {
    width: 35px;
    height: 20px;
    border-radius: 0 0 35px 35px;
}

/* Sleepy Eyes */
.slime-body.sleepy .eye {
    width: 25px;
    height: 3px;
    border-radius: 3px;
    background: #333;
    animation: none;
}

.slime-body.sleepy .slime-mouth {
    width: 20px;
    height: 10px;
    border-radius: 50%;
    border: 3px solid #333;
}

/* Excited Eyes */
.slime-body.excited .eye {
    width: 25px;
    height: 25px;
    animation: excited-blink 0.5s infinite;
}

@keyframes excited-blink {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.slime-body.excited .slime-mouth {
    width: 40px;
    height: 25px;
    border-radius: 0 0 40px 40px;
}

/* Sparkles */
.slime-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: sparkle-float 2s ease-in-out infinite;
    opacity: 0;
}

@keyframes sparkle-float {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-50px) scale(1); opacity: 0; }
}

.slime-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5C4A1F;
    margin-top: 15px;
}

/* Status Bars */
.status-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-label {
    font-weight: 600;
    color: #5C4A1F;
    min-width: 80px;
    text-align: left;
}

.status-bar {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

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

.status-fill.happiness {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.status-fill.energy {
    background: linear-gradient(90deg, #4ECDC4, #44A08D);
}

.status-value {
    font-weight: 700;
    color: #5C4A1F;
    min-width: 40px;
    text-align: right;
}

.level-display {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.level-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #8B6914;
}

.level-exp {
    font-size: 0.9rem;
    color: #666;
}

/* Action Section */
.action-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.action-title {
    text-align: center;
    color: #5C4A1F;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border: 2px solid #DEB564;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(222, 181, 100, 0.3);
    background: linear-gradient(135deg, #FFEFD5, #FFE4B5);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.action-btn:disabled .btn-icon {
    animation: none;
}

.btn-icon {
    font-size: 2.5rem;
    animation: float 2s ease-in-out infinite;
}

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

.btn-text {
    font-weight: 600;
    color: #5C4A1F;
    font-size: 0.95rem;
}

.action-hint {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

/* Fortune Display */
.fortune-display {
    background: linear-gradient(135deg, #FFF8DC, #FFEFD5);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #DEB564;
    animation: fadeInUp 0.5s ease;
}

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

.fortune-title {
    text-align: center;
    color: #8B6914;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

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

.fortune-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fortune-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: #5C4A1F;
    line-height: 1.8;
    margin-bottom: 15px;
}

.fortune-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.fortune-detail-item {
    padding: 15px;
    background: white;
    border-radius: 12px;
    text-align: center;
}

.fortune-detail-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.fortune-detail-value {
    display: block;
    font-weight: 700;
    color: #5C4A1F;
    font-size: 1.1rem;
}

/* Evolution Section */
.evolution-section {
    background: linear-gradient(135deg, #FF6B9D, #FF8C42);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    color: white;
    animation: evolution-glow 2s ease-in-out infinite;
    box-shadow: 0 15px 50px rgba(255, 107, 157, 0.4);
}

@keyframes evolution-glow {
    0%, 100% { box-shadow: 0 15px 50px rgba(255, 107, 157, 0.4); }
    50% { box-shadow: 0 20px 60px rgba(255, 107, 157, 0.6); }
}

.evolution-title {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.evolution-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Stats Section */
.stats-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.stats-title {
    text-align: center;
    color: #5C4A1F;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-weight: 700;
    color: #5C4A1F;
    font-size: 1.1rem;
}

/* Share Section */
.share-section {
    text-align: center;
}

.share-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #8B6914, #5C4A1F);
    color: #FFF8DC;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 105, 20, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .how-to-content {
        padding: 20px;
    }
    
    .step-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    .slime-body {
        width: 150px;
        height: 150px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .action-btn {
        flex-direction: row;
        justify-content: center;
        padding: 15px;
    }
    
    .btn-icon {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .fortune-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .slime-body {
        width: 120px;
        height: 120px;
    }
    
    .slime-face {
        width: 60px;
        height: 45px;
    }
    
    .eye {
        width: 15px;
        height: 15px;
    }
    
    .slime-mouth {
        width: 25px;
        height: 12px;
    }
}

