/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a148c;
    --secondary-color: #7b1fa2;
    --accent-color: #ce93d8;
    --text-color: #2c2c2c;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6a1b9a, #4a148c);
    color: var(--white);
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-stats span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.hero-image {
    flex: 1;
    min-width: 250px;
    display: flex;
    justify-content: center;
}

.character-placeholder {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    min-width: 250px;
}

.character-placeholder .emoji {
    font-size: 5rem;
    display: block;
    margin-bottom: 1rem;
}

/* Sections */
section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Character Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.info-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.info-card li:last-child {
    border-bottom: none;
}

/* Dialogue Section */
.dialogue-section {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
}

.dialogue-container {
    max-width: 800px;
    margin: 2rem auto;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.bot-message {
    flex-direction: row;
}

.user-message {
    flex-direction: row-reverse;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.bot-message .avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.user-message .avatar {
    background: linear-gradient(135deg, #757575, #616161);
}

.message-content {
    background: #f5f5f5;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    max-width: 70%;
}

.user-message .message-content {
    background: #e1bee7;
}

.character-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.user-message .character-name {
    color: var(--text-color);
}

.dialogue-note {
    background: #fff3e0;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ff9800;
    margin-top: 2rem;
}

/* Chat Section */
.chat-section {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
}

.chat-container {
    max-width: 800px;
    margin: 2rem auto;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 1.5rem;
    background: #fafafa;
}

.quick-replies {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.quick-reply {
    padding: 0.7rem 1.2rem;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.quick-reply:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.chat-input-container {
    display: flex;
    padding: 1rem;
    background: var(--white);
    border-top: 1px solid #e0e0e0;
}

#chatInput {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

#chatInput:focus {
    border-color: var(--primary-color);
}

#sendButton {
    margin-left: 1rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.3s;
}

#sendButton:hover {
    transform: scale(1.05);
}

.platform-links {
    text-align: center;
    margin-top: 3rem;
}

.platform-links h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.platform-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-btn {
    padding: 0.8rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
}

.platform-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Related Section */
.related-section {
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.related-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq-section {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
}

.faq-container {
    max-width: 800px;
    margin: 2rem auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.8;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tags span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .message-content {
        max-width: 85%;
    }

    .hero {
        padding: 2rem 1rem;
    }

    section {
        padding: 0 1rem;
        margin: 2rem auto;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-card, .related-card, .faq-item {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Guide Section */
.guide-section {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.guide-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    border: 2px solid var(--accent-color);
}

.guide-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.guide-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.guide-card ul {
    list-style: none;
    padding-left: 0;
}

.guide-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.guide-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.example-box, .warning-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.example-box {
    background: #e8f5e9;
    border-color: #4caf50;
}

.warning-box {
    background: #fff3e0;
    border-color: #ff9800;
}

/* Tips Section */
.tips-section {
    text-align: center;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.tip-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Best Dialogues Section */
.best-dialogues-section {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
}

.moments-container {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.moment-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
    position: relative;
}

.moment-rank {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: var(--shadow);
}

.moment-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.moment-setup {
    color: #666;
    margin-bottom: 0.5rem;
}

.moment-response {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-style: italic;
}

.moment-rating {
    color: var(--secondary-color);
    font-weight: bold;
}

/* Comparison Section */
.comparison-section {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow);
}

.comparison-table {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1rem;
    text-align: left;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.comparison-table tr:hover {
    background: var(--light-bg);
}

/* Additional Styles for Homepage and Search */
.hero-search {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-search input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.hero-search button {
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.hero-search button:hover {
    transform: translateY(-2px);
}

.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.character-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.character-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.character-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.character-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.rating {
    color: #f59e0b;
    font-weight: 600;
}

.type-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
}

.no-results p {
    color: #666;
    margin-bottom: 1rem;
}

.no-results button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
}

/* Character Detail Page */
.character-detail-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.character-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.character-detail-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.character-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.character-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.difficulty-easy { background: #10b981; }
.difficulty-medium { background: #f59e0b; }
.difficulty-hard { background: #ef4444; }

.rating-display {
    font-size: 1.2rem;
}

.stars {
    margin-right: 0.5rem;
}

/* Character Detail Main */
.character-detail-main {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.detail-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.detail-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #333;
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.traits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trait-badge {
    background: #e0e7ff;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.scenarios-list {
    list-style: none;
    padding: 0;
}

.scenarios-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f9fafb;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f3f4f6;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
}

.cta-box h3 {
    color: var(--white);
    margin: 0 0 1rem 0;
}

/* Sidebar */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.info-list li:last-child {
    border-bottom: none;
}

.rating-widget {
    text-align: center;
}

.stars-input {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.star {
    cursor: pointer;
    transition: color 0.2s;
}

.star:hover,
.star.active {
    color: #f59e0b;
}

.submit-rating {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* Related Characters */
.related-characters {
    padding: 4rem 2rem;
    background: #f9fafb;
}

.related-characters h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

/* Search Page */
.search-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.search-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.search-main {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.search-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.search-sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.search-box {
    margin-bottom: 2rem;
}

.search-box h3 {
    margin-bottom: 1rem;
    color: #333;
}

.search-box input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.filter-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.filter-section:last-of-type {
    border-bottom: none;
}

.filter-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"],
.rating-filter input[type="radio"] {
    cursor: pointer;
}

.rating-filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-filter label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-filter-btn {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tag-filter-btn:hover {
    background: #e5e7eb;
}

.tag-filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background: #e5e7eb;
    color: #333;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.search-results {
    min-height: 500px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
}

.results-info {
    font-weight: 600;
    color: #333;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-sort select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Search Tips */
.search-tips {
    padding: 4rem 2rem;
    background: var(--white);
    max-width: 1200px;
    margin: 0 auto;
}

.search-tips h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features {
    padding: 4rem 2rem;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content button {
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.cta-content button:hover {
    transform: scale(1.05);
}

.filters {
    background: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #555;
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.stats {
    padding: 3rem 2rem;
    background: var(--white);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

.characters-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.characters-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }

    .hero-search {
        flex-direction: column;
    }

    .filter-container {
        flex-direction: column;
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .detail-container {
        grid-template-columns: 1fr;
    }

    .search-container {
        grid-template-columns: 1fr;
    }

    .search-sidebar {
        position: static;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}