:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --primary: #f43f5e;
    --primary-hover: #e11d48;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 40px 0;
}

/* Indian Soap Opera Effect (Ekta Kapoor Style) */
body.soap-opera {
    animation: blackAndWhite 2.5s infinite;
}

body.soap-opera .glass-card {
    animation: soapOperaZoom 2.5s ease-in-out infinite alternate;
}

@keyframes soapOperaZoom {
    0% { transform: scale(1); filter: drop-shadow(0 0 0px red); }
    10% { transform: scale(1.1) rotate(-3deg); filter: drop-shadow(0 0 20px red); }
    20% { transform: scale(1.05) rotate(5deg); }
    30% { transform: scale(1.15) rotate(-2deg); }
    40% { transform: scale(1.0) rotate(2deg); }
    100% { transform: scale(1); }
}

@keyframes blackAndWhite {
    0%, 100% { filter: grayscale(0%) contrast(100%); }
    20%, 80% { filter: grayscale(80%) contrast(150%) invert(5%); }
}

.dramatic-flash {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 9998;
}

.dramatic-flash.active {
    animation: flashBang 0.7s ease-out 2;
}

@keyframes flashBang {
    0% { opacity: 0.9; }
    50% { opacity: 0; }
    100% { opacity: 0.5; }
}

.background-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 12s infinite ease-in-out alternate;
}

.shape-1 {
    width: 450px;
    height: 450px;
    background: #f43f5e;
    top: -15%;
    left: -15%;
}

.shape-2 {
    width: 550px;
    height: 550px;
    background: #8b5cf6;
    bottom: -25%;
    right: -15%;
    animation-delay: -6s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

.container {
    width: 100%;
    max-width: 650px;
    padding: 20px;
    z-index: 10;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.7);
}

.header-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -15px;
}

.icon-button {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.icon-button.off {
    background: rgba(244, 63, 94, 0.2);
    color: #f43f5e;
}

h1 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-top: 15px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.bp-container {
    background: rgba(15, 23, 42, 0.6);
    padding: 18px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    text-align: left;
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.3);
}

.bp-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #cbd5e1;
    margin-bottom: 10px;
    font-weight: 600;
}

.bp-bar {
    width: 100%;
    height: 14px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.bp-fill {
    height: 100%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1), background-color 1s ease;
    border-radius: 10px;
    position: relative;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

input {
    width: 100%;
    padding: 20px 24px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 14px;
    color: #fff;
    font-size: 1.15rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #8b5cf6;
    background: rgba(15, 23, 42, 0.8);
}

button#askBtn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button#askBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(244, 63, 94, 0.6);
}

button#askBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.response-area {
    margin-top: 10px;
    padding: 30px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.4s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.response-area.hidden {
    display: none;
}

/* Parent Poke Feature */
.parent-icon-wrapper {
    position: relative;
}

.parent-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: float-icon 3s infinite ease-in-out;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}

.parent-icon:active {
    transform: scale(0.9);
}

.parent-icon::after {
    content: "Poke me!";
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.parent-icon:hover::after {
    opacity: 1;
}

.parent-icon.shocked {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) infinite;
}

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

@keyframes shake {
    10%, 90% { transform: translate3d(-2px, 0, 0); filter: hue-rotate(90deg) drop-shadow(0 0 15px red); }
    20%, 80% { transform: translate3d(5px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-10px, 0, 0); }
    40%, 60% { transform: translate3d(10px, 0, 0); }
}

#parentResponse {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.6;
    color: #f8fafc;
    animation: fade-in 0.5s ease forwards;
}

#parentResponse.hidden {
    display: none;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    animation: fade-in 0.5s ease forwards;
    width: 100%;
}

.action-buttons.hidden {
    display: none;
}

.action-buttons button {
    flex: 1;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    transition: all 0.2s;
}

button.danger {
    background: linear-gradient(135deg, #ef4444, #991b1b);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

button.danger:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6); }
button.danger:active { transform: translateY(1px); }

button.success {
    background: linear-gradient(135deg, #10b981, #047857);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

button.success:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6); }
button.success:active { transform: translateY(1px); }

/* Sharma Ji Section */
.sharma-ji-section {
    margin-top: 25px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 15px;
    width: 100%;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.typing-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 40px;
}

.typing-indicator.hidden {
    display: none;
}

.typing-indicator span {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: type 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes type {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5;}
    40% { transform: scale(1); opacity: 1; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Flying objects layer */
#flyingZone {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.chappal {
    position: absolute;
    font-size: 6rem;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.6));
    animation: throw 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes throw {
    0% { transform: translate(-20vw, 120vh) rotate(0deg) scale(0.5); }
    50% { transform: translate(50vw, 30vh) rotate(360deg) scale(2); }
    100% { transform: translate(120vw, -20vh) rotate(1080deg) scale(1); }
}

.floating-emoji {
    position: absolute;
    font-size: 3rem;
    animation: floatUp 3s ease-in forwards;
    opacity: 0;
}

@keyframes floatUp {
    0% { transform: translateY(50px) scale(0.8); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(-200px) scale(1.5); opacity: 0; }
}

.visitor-counter-wrapper {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.visitor-counter-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.counter-badge-container {
    background: rgba(15, 23, 42, 0.4);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
}

.counter-badge-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.3);
}

.counter-badge-container img {
    border-radius: 4px;
    display: block;
}

@media (min-width: 600px) {
    .input-group {
        flex-direction: row;
    }
    input {
        width: 65%;
    }
    button#askBtn {
        width: 35%;
    }
}
