/* Talk to Krushna Page Specific Styles - Extracted from inline styles for better performance */

/* Enhanced styles for Talk to Krushna page - Traditional Krishna Colors */
body {
    background: #1e3a8a;
    font-family: 'Georgia', serif;
    padding: 0;
    margin: 0;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.15) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 153, 51, 0.15) 100%);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,223,0,0.3);
    margin-top: 10px;
    margin-bottom: 10px;
    backdrop-filter: blur(20px) saturate(1.2);
    border: 2px solid rgba(255, 223, 0, 0.5);
    position: relative;
    transform: translateY(0);
    transition: all 0.3s ease;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.main-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,223,0,0.4), 0 0 0 3px rgba(255, 223, 0, 0.4);
}

.page-title {
    text-align: center;
    color: #ffdf00;
    font-size: clamp(1.0em, 3vw, 1.6em);
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6), 0 0 20px rgba(255,223,0,0.8);
    font-weight: 600;
    background: linear-gradient(135deg, #ffdf00, #ffd700, #ff9933, #ffdf00);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow {
    0% { text-shadow: 2px 2px 4px rgba(0,0,0,0.6), 0 0 20px rgba(255,223,0,0.8); }
    100% { text-shadow: 2px 2px 4px rgba(0,0,0,0.6), 0 0 30px rgba(255,153,51,1); }
}

.divine-separator {
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffdf00, #ff9933, #ffdf00, transparent);
    border: none;
    margin: 10px 0;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(255, 223, 0, 0.6);
}

.krushna-image {
    display: block;
    margin: 15px auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 0 5px rgba(255, 223, 0, 0.7), 0 0 0 10px rgba(255, 153, 51, 0.4);
    transition: all 0.3s ease;
    max-width: 250px;
    height: auto;
    position: relative;
    filter: brightness(1.1) saturate(1.2);
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><circle cx='16' cy='16' r='15' fill='%23ffdf00' stroke='%231e3a8a' stroke-width='1'/><text x='16' y='20' font-size='16' text-anchor='middle' fill='%23ff9933'>🙏</text></svg>") 16 16, auto;
}

.krushna-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 45px rgba(0,0,0,0.5), 0 0 0 8px rgba(255, 223, 0, 0.8), 0 0 0 15px rgba(255, 153, 51, 0.5);
    filter: brightness(1.2) saturate(1.3);
}

/* Krushna Image Container and Hover Poem */
.krushna-container {
    position: relative;
    display: inline-block;
    margin: 10px auto;
}

.consciousness-poem {
    position: absolute;
    top: 60%;
    left: calc(100% + 15px);
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(250,250,255,0.96) 50%, rgba(255,253,248,0.96) 100%);
    backdrop-filter: blur(20px);
    padding: 15px;
    border-radius: 12px;
    border: 2px solid rgba(156, 39, 176, 0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2), 0 0 0 2px rgba(156, 39, 176, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    min-width: 300px;
    max-width: 350px;
    text-align: left;
    transform-origin: left center;
    scale: 0.8;
}

.krushna-container:hover .consciousness-poem {
    opacity: 1;
    visibility: visible;
    scale: 1;
    transform: translateY(-30%);
}

.consciousness-poem h3 {
    color: #8b4513;
    font-family: 'Georgia', serif;
    font-size: 1.1em;
    margin-bottom: 8px;
    margin-top: 0px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
    font-weight: 600;
    text-align: center;
}

.consciousness-poem .poem-text {
    font-family: 'Georgia', serif;
    font-size: 0.85em;
    line-height: 1.4;
    color: #2d3748;
    font-style: italic;
    text-align: left;
}

.consciousness-poem .poem-text p {
    margin-bottom: 6px;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.consciousness-poem .poem-text p:first-child {
    font-weight: 600;
    color: #8b4513;
}

.consciousness-poem .poem-text p:nth-child(3) {
    color: #1e3a8a;
    font-weight: 500;
}

.consciousness-poem .poem-text p:last-child {
    font-weight: 600;
    color: #d2691e;
}

.consciousness-poem::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ffdf00, #ffd700, #ff9933, #ffd700, #ffdf00);
    border-radius: 23px;
    z-index: -1;
    animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .consciousness-poem {
        left: calc(100% + 10px);
        min-width: 220px;
        max-width: 260px;
        padding: 12px;
        font-size: 0.8em;
    }
    
    .consciousness-poem h3 {
        font-size: 1em;
        margin-bottom: 6px;
    }
    
    .consciousness-poem .poem-text {
        font-size: 0.75em;
        line-height: 1.3;
    }
}

.interaction-section {
    background: linear-gradient(135deg, rgba(255,223,0,0.6), rgba(255,255,255,0.8), rgba(255,153,51,0.6));
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 20px;
    margin: 2px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
    border: 2px solid rgba(255, 223, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.interaction-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,223,0,0.2) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.input-container {
    display: flex;
    gap: 0px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.input-wrapper {
    position: relative;
    display: inline-block;
}

.number-input {
    padding: 15px 45px 15px 20px;
    font-size: 16px;
    width: 350px;
    border: 3px solid #ffdf00;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #8b4513;
    transition: all 0.3s ease;
    outline: none;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.clear-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 223, 0, 0.2), rgba(255, 153, 51, 0.2));
    border: 1px solid rgba(255, 223, 0, 0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.clear-icon:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff9933, #ff9900);
    border-color: rgba(255, 152, 0, 0.7);
    transform: translateY(-50%) scale(1.15) rotate(90deg);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.5), 0 0 20px rgba(255, 223, 0, 0.4);
}

.clear-icon:active {
    transform: translateY(-50%) scale(0.95);
    transition: transform 0.1s ease;
}

.clear-icon.show {
    opacity: 1;
    visibility: visible;
    animation: clearIconAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes clearIconAppear {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.3) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1) rotate(0deg);
    }
}

.number-input:focus {
    border-color: #ff9933;
    box-shadow: 0 0 20px rgba(255, 223, 0, 0.6);
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.02);
}

.number-input::placeholder {
    color: #888;
    font-style: italic;
}

.ask-button {
    padding: 15px 30px;
    font-size: 18px;
    background: linear-gradient(135deg, #ffdf00, #ffd700, #ff9933);
    background-size: 200% 200%;
    color: #1e3a8a;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(255, 223, 0, 0.4), 0 0 0 0 rgba(255, 152, 0, 0.5);
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: buttonGlow 3s ease-in-out infinite;
}

.ask-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(125, 89, 89, 0.3), transparent);
    transition: left 0.5s;
}

.ask-button:hover::before {
    left: 100%;
}

.ask-button:hover {
    background-position: 100% 0;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(255, 152, 0, 0.6), 0 0 0 4px rgba(255, 223, 0, 0.4);
}

.ask-button:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes buttonGlow {
    0%, 100% { box-shadow: 0 8px 20px rgba(255, 223, 0, 0.4), 0 0 0 0 rgba(255, 152, 0, 0.5); }
    50% { box-shadow: 0 8px 20px rgba(255, 152, 0, 0.6), 0 0 0 2px rgba(255, 223, 0, 0.5); }
}

/* Button group styles for side-by-side layout */
.button-group {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Random blessing button with different gradient */
.random-button {
    padding: 15px 30px;
    font-size: 18px;
    background: linear-gradient(135deg, #ff9933, #ff7f00, #ffd700);
    background-size: 200% 200%;
    color: #1e3a8a;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(255, 127, 0, 0.4), 0 0 0 0 rgba(255, 223, 0, 0.5);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: randomButtonGlow 3s ease-in-out infinite;
}

.random-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.random-button:hover::before {
    left: 100%;
}

.random-button:hover {
    background-position: 100% 0;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(255, 127, 0, 0.6), 0 0 0 4px rgba(255, 153, 51, 0.4);
}

.random-button:active {
    transform: translateY(-1px) scale(1.02);
}

@keyframes randomButtonGlow {
    0%, 100% { box-shadow: 0 8px 20px rgba(255, 127, 0, 0.4), 0 0 0 0 rgba(255, 223, 0, 0.5); }
    50% { box-shadow: 0 8px 20px rgba(255, 223, 0, 0.6), 0 0 0 2px rgba(255, 127, 0, 0.5); }
}

/* Random blessing indicator styles */
.random-indicator {
    font-size: 0.85em;
    color: #ff7f00;
    font-weight: normal;
    background: linear-gradient(135deg, rgba(255, 127, 0, 0.1), rgba(255, 223, 0, 0.2));
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 127, 0, 0.3);
    margin-left: 8px;
    animation: randomIndicatorGlow 2s ease-in-out infinite;
}

@keyframes randomIndicatorGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 127, 0, 0.3); }
    50% { box-shadow: 0 0 10px rgba(255, 127, 0, 0.6); }
}

.message-display {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,248,220,0.9) 100%);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 223, 0, 0.8);
    border-radius: 20px;
    padding: 20px;
    margin-top: 5px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.message-display.typing {
    animation: messageGlow 2s ease-in-out infinite;
}

@keyframes messageGlow {
    0%, 100% { box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.6); }
    50% { box-shadow: 0 20px 45px rgba(255, 152, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.8); }
}

.message-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ffdf00, #ffd700, #ff9933, #ffd700, #ffdf00);
    border-radius: 20px 20px 0 0;
}

.message-display:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 152, 0, 0.4);
}

.krushna-says {
    font-weight: bold;
    color: #1e3a8a;
    font-size: 1.1em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.divine-message {
    color: #2c3e50;
    font-style: italic;
    font-size: 1em;
}

.instruction-text {
    text-align: center;
    color: #666;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-style: italic;
}

.om-symbol {
    text-align: center;
    font-size: 2em;
    color: #ffdf00;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.devotional-note {
    background: linear-gradient(135deg, rgba(255,223,0,0.3), rgba(255,255,255,0.6));
    padding: 15px;
    border-radius: 15px;
    margin-top: 15px;
    border-left: 5px solid #ff9933;
    color: #1e3a8a;
    font-style: italic;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 768px) {
    .main-container {
        margin: 5px;
        padding: 15px;
        min-height: calc(100vh - 20px);
    }
    
    .page-title {
        font-size: clamp(1em, 3.5vw, 1.5em);
        margin-bottom: 10px;
        white-space: normal;
        word-break: break-word;
        hyphens: auto;
    }
    
    .number-input {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
    
    .input-wrapper {
        width: 100%;
        max-width: 250px;
        margin-bottom: 10px;
    }
    
    .input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
    }
    
    .ask-button, .random-button {
        width: 100%;
        max-width: 250px;
        padding: 12px 25px;
        font-size: 16px;
        margin: 0 auto;
    }
    
    .random-indicator {
        font-size: 0.8em;
        margin-left: 5px;
        padding: 1px 6px;
    }
    
    .interaction-section {
        padding: 15px;
        margin: 10px 0;
    }
    
    .krushna-image {
        max-width: 200px;
        margin: 10px auto;
    }
}

.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: -1;
}

.floating-om {
    position: absolute;
    color: rgba(245, 158, 11, 0.18);
    font-size: 3em;
    animation: float 8s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(30, 58, 138, 0.25);
}

.floating-om:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; font-size: 2.5em; }
.floating-om:nth-child(2) { top: 20%; right: 10%; animation-delay: 2s; font-size: 3.5em; }
.floating-om:nth-child(3) { bottom: 20%; left: 15%; animation-delay: 4s; font-size: 3em; }
.floating-om:nth-child(4) { bottom: 10%; right: 15%; animation-delay: 1s; font-size: 2.8em; }
.floating-om:nth-child(5) { top: 50%; left: 5%; animation-delay: 6s; font-size: 2em; }
.floating-om:nth-child(6) { top: 60%; right: 5%; animation-delay: 3s; font-size: 2.2em; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.1; 
    }
    50% { 
        transform: translateY(-30px) rotate(5deg); 
        opacity: 0.25; 
    }
}