/* 
 * Custom CSS for GlowyAI application 
 */

/* Sun Character Animation */
.sun-character {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

.sun-body {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    box-shadow: 
        0 0 0 10px rgba(255, 165, 0, 0.2),
        0 0 30px rgba(255, 215, 0, 0.7),
        0 0 60px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 1;
}

.sun-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 7px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.5), #FFD700, rgba(255, 215, 0, 0.5));
    border-radius: 10px;
    transform-origin: 0 0;
    animation: ray-pulse 3s ease-in-out infinite;
    z-index: 0;
}

.sun-face {
    position: absolute;
    width: 60px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sun-eye {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: #333;
    border-radius: 50%;
    top: 10px;
}

.sun-eye.left {
    left: 10px;
}

.sun-eye.right {
    right: 10px;
}

.sun-mouth {
    position: absolute;
    width: 30px;
    height: 15px;
    border-radius: 0 0 30px 30px;
    background-color: #333;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.sun-blink .sun-eye {
    animation: blink 4s ease-in-out infinite;
}

/* Create 8 rays for the sun */
.sun-ray:nth-child(1) { transform: rotate(0deg) translateX(60px); }
.sun-ray:nth-child(2) { transform: rotate(45deg) translateX(60px); }
.sun-ray:nth-child(3) { transform: rotate(90deg) translateX(60px); }
.sun-ray:nth-child(4) { transform: rotate(135deg) translateX(60px); }
.sun-ray:nth-child(5) { transform: rotate(180deg) translateX(60px); }
.sun-ray:nth-child(6) { transform: rotate(225deg) translateX(60px); }
.sun-ray:nth-child(7) { transform: rotate(270deg) translateX(60px); }
.sun-ray:nth-child(8) { transform: rotate(315deg) translateX(60px); }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes ray-pulse {
    0%, 100% { transform-origin: 0 0; width: 40px; }
    50% { transform-origin: 0 0; width: 50px; }
}

@keyframes blink {
    0%, 95%, 100% { height: 14px; }
    97% { height: 1px; }
}

/* Chat interface */
.chat-container {
    max-height: 350px;
    overflow-y: auto;
    background-color: rgba(25, 25, 35, 0.7);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.chat-message {
    border-radius: 18px;
    padding: 10px 15px;
    margin: 8px;
    max-width: 80%;
    position: relative;
}

.user-message {
    background-color: #0d6efd;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.agent-message {
    background-color: #2a2a3a;
    color: white;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.agent-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.agent-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.chat-input-container {
    display: flex;
    margin-top: 10px;
}

.chat-input {
    flex-grow: 1;
    border-radius: 20px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(40, 40, 50, 0.8);
    color: white;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glow effect for elements */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #0d6efd, #40e0cf);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 0.6;
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.3; }
}



.progress-icon.completed {
    background-color: #198754;
    color: white;
}

.progress-content {
    flex-grow: 1;
}

.progress-title {
    font-weight: bold;
    margin-bottom: 0;
}

.progress-description {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Score improvement display */
.score-improvement {
    text-align: center;
    position: relative;
    padding: 20px;
}

.score-arrow {
    color: #198754;
    font-size: 2rem;
    margin: 0 10px;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.score-label {
    font-size: 0.875rem;
    color: #6c757d;
}

.score-original {
    color: #dc3545;
}

.score-improved {
    color: #198754;
}

/* Payment section */
.pricing-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.pricing-popular {
    position: absolute;
    top: 15px;
    right: -35px;
    background-color: #dc3545;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.pricing-header {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px 10px 0 0;
}

.pricing-price {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0;
}

.pricing-period {
    font-size: 1rem;
    opacity: 0.8;
}

.pricing-features {
    padding: 20px;
}

.pricing-feature {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-feature i {
    margin-right: 10px;
}

.pricing-feature.included {
    color: white;
}

.pricing-feature.excluded {
    color: #6c757d;
    text-decoration: line-through;
}

.pricing-action {
    padding: 20px;
    text-align: center;
}

/* Rotating Text Animation */
#rotating-text {
    position: relative;
    display: inline-block;
    min-width: 140px; /* Reserve space for longest word */
    text-align: left;
}

#rotating-text {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#rotating-text.fade-out {
    opacity: 0;
}

#rotating-text.fade-in {
    opacity: 1;
}

/* Growth Arrow Animation */
.growth-arrow {
    animation: arrowGrow 2s ease-in-out infinite;
}

@keyframes arrowGrow {
    0%, 100% { 
        transform: translateY(0);
        opacity: 1;
    }
    50% { 
        transform: translateY(-5px);
        opacity: 0.8;
    }
}

/* Arrow glow pulse */
.growth-arrow line[stroke="#28a745"] {
    animation: arrowGlow 3s ease-in-out infinite;
}

@keyframes arrowGlow {
    0%, 100% {
        filter: drop-shadow(0 0 3px #28a745);
    }
    50% {
        filter: drop-shadow(0 0 8px #28a745);
    }
}