/* Find Your Deity Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.brand-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(118, 75, 162, 0.2);
}

.brand-logo {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.brand-subtitle {
    color: #666;
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    z-index: 1;
    position: relative;
}

.intro-section {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(118, 75, 162, 0.2);
}

.intro-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.intro-subtitle {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.selection-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid rgba(118, 75, 162, 0.2);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #764ba2;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
}

.section-title::before {
    content: "✨";
    font-size: 20px;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    border-radius: 16px;
    border: 2px solid rgba(118, 75, 162, 0.1);
}

.challenges-grid::-webkit-scrollbar {
    width: 10px;
}

.challenges-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.challenges-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
}

.challenge-card {
    background: white;
    border: 2px solid rgba(118, 75, 162, 0.2);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(118, 75, 162, 0.1), rgba(102, 126, 234, 0.1));
    transition: left 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(118, 75, 162, 0.25);
    border-color: #764ba2;
}

.challenge-card:hover::before {
    left: 0;
}

.challenge-card.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #764ba2;
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(118, 75, 162, 0.3);
}

.challenge-icon {
    font-size: 36px;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(118, 75, 162, 0.2));
}

.challenge-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-family: 'Playfair Display', serif;
}

.challenge-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.challenge-card.selected .challenge-name,
.challenge-card.selected .challenge-desc {
    color: rgba(255, 255, 255, 0.95);
}

.result-section {
    display: none;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.deity-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.deity-card {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 2px solid rgba(118, 75, 162, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.deity-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.05) 0%, rgba(255,255,255,0) 60%);
    z-index: 0;
    pointer-events: none;
}

.deity-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.deity-image {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    box-shadow: 0 15px 40px rgba(118, 75, 162, 0.3);
    position: relative;
    overflow: hidden;
}

.deity-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.deity-info {
    text-align: left;
    position: relative;
    z-index: 1;
}

.deity-name {
    font-size: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.deity-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    font-weight: 400;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 4px solid #764ba2;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.03), rgba(102, 126, 234, 0.03));
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #764ba2;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
}

.mantra-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(118, 75, 162, 0.3);
    border: none;
}

.mantra-text {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

.mantra-roman {
    font-size: 18px;
    opacity: 0.95;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 400;
}

.mantra-meaning {
    font-size: 15px;
    opacity: 0.9;
    text-align: center;
    font-style: italic;
    font-weight: 300;
}

.ritual-steps {
    list-style: none;
    counter-reset: step-counter;
    margin: 0;
    padding: 0;
}

.ritual-steps li {
    counter-increment: step-counter;
    margin-bottom: 16px;
    padding-left: 45px;
    position: relative;
    line-height: 1.6;
    font-size: 15px;
    color: #444;
}

.ritual-steps li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.3);
}

.yantra-content {
    text-align: center;
}

.yantra-image {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    margin: 0 auto 18px;
    border: 3px solid #764ba2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.yantra-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(118, 75, 162, 0.2);
}

.yantra-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.resolve-note {
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    border-left: 4px solid #667eea;
    padding: 28px;
    border-radius: 12px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.resolve-note h3 {
    color: #667eea;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

.resolve-note p {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(118, 75, 162, 0.2);
}

.footer-brand {
    font-size: 22px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.footer-text {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 968px) {
    .container {
        padding: 20px;
        border-radius: 16px;
    }
    
    .brand-logo {
        font-size: 36px;
    }
    
    .intro-title {
        font-size: 28px;
    }
    
    .challenges-grid {
        max-height: 400px;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
        padding: 12px;
    }

    .challenge-card {
        padding: 16px 12px;
    }
    
    .challenge-icon {
        font-size: 32px;
    }
    
    .deity-grid {
        gap: 20px;
    }
    
    .deity-card {
        padding: 24px;
    }
    
    .deity-image {
        width: 120px;
        height: 120px;
        font-size: 56px;
    }
    
    .deity-name {
        font-size: 28px;
    }
    
    .content-grid {
        gap: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .mantra-text {
        font-size: 24px;
    }
    
    .yantra-image {
        width: 120px;
        height: 120px;
        font-size: 56px;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    z-index: 1;
    position: relative;
}

.empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
    filter: drop-shadow(0 4px 8px rgba(118, 75, 162, 0.2));
}

.empty-state-text {
    font-size: 20px;
    color: #666;
    font-weight: 500;
}

.custom-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

.custom-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(118, 75, 162, 0.4);
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.button-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.back-button {
    background: white;
    color: #764ba2;
    border: 2px solid #764ba2;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #764ba2;
    color: white;
    transform: translateY(-2px);
}
/* Back to Home Button - Top Right */
/* Back to Home Button - Top Right */
.home-button {
    position: absolute;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 165, 0, 0.4);
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

@media (max-width: 768px) {
    .home-button {
        top: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 14px;
    }
}