/* Existing chat styles remain unchanged */
.chat-container {
    height: 400px;
    overflow-y: auto;
    padding: 1rem;
}

.character-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-right: 1rem;
}

.character-item {
    display: flex;
    align-items: start;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    position: relative;
}

.character-info {
    flex: 1;
}

.message-wrapper {
    display: flex;
    align-items: start;
    margin-bottom: 1rem;
    max-width: 80%;
}

.message-wrapper.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0.5rem;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-bottom: 0.25rem;
}

.character-name {
    font-size: 0.8rem;
    color: var(--bs-secondary);
    white-space: nowrap;
}

.message {
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    position: relative;
}

.message-wrapper.user .message {
    background-color: var(--bs-primary);
}

.message-wrapper.ai .message {
    background-color: var(--bs-secondary);
}

.score-change {
    font-size: 0.8rem;
    color: var(--bs-success);
    margin-left: 0.5rem;
}

.score-display {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--bs-info);
}

.character-mood {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.mood-happy {
    background-color: var(--bs-success);
    color: white;
}

.mood-cheerful {
    background-color: var(--bs-info);
    color: white;
}

.mood-neutral {
    background-color: var(--bs-secondary);
    color: white;
}

.mood-uneasy {
    background-color: var(--bs-warning);
    color: var(--bs-dark);
}

.mood-unhappy {
    background-color: var(--bs-danger);
    color: white;
}

/* Tag Input System */
#tagContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    background-color: var(--bs-secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tag span[role="button"] {
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.tag span[role="button"]:hover {
    opacity: 1;
}

#tagInput {
    min-width: 200px;
    flex-grow: 1;
}

/* Landing Page Styles */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, var(--bs-dark) 0%, var(--bs-primary) 100%);
    opacity: 0.05;
    animation: gradientBG 15s ease infinite;
    background-size: 400% 400%;
}

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

.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    color: var(--bs-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: radial-gradient(circle at center, rgba(0,0,0,0.5) 0%, transparent 70%);
}

section {
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

section.bg-light {
    background-color: var(--bs-gray-900) !important;
}

.stats-section .display-4 {
    font-weight: bold;
    color: var(--bs-primary);
}

.stat-card {
    padding: 2rem;
    border-radius: 1rem;
    background-color: var(--bs-dark);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .bi {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--bs-primary);
}

.character-card {
    padding: 2rem;
    border-radius: 1rem;
    background-color: var(--bs-dark);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
}

.character-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.example-score-card {
    background-color: var(--bs-dark);
    border-radius: 1rem;
    padding: 2rem;
}

.sample-message {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--bs-light);
}

.score-breakdown {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-success);
}

.benefits-card {
    background-color: var(--bs-dark);
    border-radius: 1rem;
    padding: 2rem;
}

.benefit-group {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: rgba(255,255,255,0.05);
}

.benefit-group .bi {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--bs-primary);
}

.floating-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.footer {
    background-color: var(--bs-dark);
    color: var(--bs-light);
}

.footer .bi {
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--bs-primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-cta {
        width: 100%;
        bottom: 0;
        right: 0;
        padding: 1rem;
        background-color: var(--bs-dark);
        animation: none;
    }

    .floating-cta .btn {
        width: 100%;
    }
}