/* NPC Token - Modern Purple Theme 2025 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --purple-primary: #8B5CF6;
    --purple-dark: #6D28D9;
    --purple-light: #A78BFA;
    --accent: #EC4899;
    --bg-dark: #0F0F23;
    --bg-darker: #050510;
    --card-bg: #1A1A2E;
    --text-primary: #FFFFFF;
    --text-secondary: #C4C4FF;
    --border: #2D2D44;
    --success: #10B981;
    --error: #EF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Comic Neue', cursive;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--bg-darker) 0%, var(--bg-dark) 25%, var(--purple-dark) 50%, var(--bg-dark) 75%, var(--bg-darker) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
    opacity: 0.3;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loading-text {
    font-size: 1.5rem;
    color: var(--purple-light);
    margin-bottom: 1rem;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: var(--card-bg);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar-fill {
    height: 100%;
    background: var(--purple-primary);
    animation: fillBar 2s ease-in-out;
    border-radius: 2px;
}

@keyframes fillBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Navigation */
.navbar {
    background: var(--bg-dark);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--purple-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.1);
}

.token-symbol {
    background: var(--purple-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--card-bg);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--purple-primary);
    color: var(--text-primary);
}

.social-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.twitter-btn {
    background: #1DA1F2;
    color: white;
}

.telegram-btn {
    background: #0088CC;
    color: white;
}

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

.social-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Chat Container */
.chat-container {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.chat-header {
    background: var(--purple-primary);
    padding: 2rem;
    text-align: center;
}

.chat-avatar {
    width: 80px;  
    height: 80px;
    margin-bottom: 1rem;
}

.chat-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.chat-header p {
    color: var(--text-secondary);
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 2rem;
    background: var(--bg-dark);
}

.message {
    display: flex;
    margin-bottom: 1.5rem;
    gap: 1rem;
    align-items: flex-start;
    animation: slideIn 0.3s ease;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.message-content {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    flex: 1;
}

.message-content p {
    color: var(--text-primary);
    margin: 0;
}

.npc-message .message-content {
    background: var(--purple-dark);
    border-color: var(--purple-primary);
}

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

.user-message .message-content {
    background: var(--accent);
    border-color: var(--accent);
}

.chat-input-container {
    padding: 1.5rem;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chat-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-dark);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--purple-primary);
}

.chat-input::placeholder {
    color: var(--text-secondary);
}

.send-btn {
    padding: 1rem 2rem;
    background: var(--purple-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.send-btn:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
}

.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.quick-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Tokenomics */
.tokenomics-container {
    display: grid;
    gap: 2rem;
}

.token-info-card, .distribution-card, .features-card, .roadmap-card, .buy-info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.token-info-card h2, .distribution-card h2, .features-card h2, .roadmap-card h2, .buy-info-card h2 {
    color: var(--purple-light);
    margin-bottom: 1.5rem;
}

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

.info-item {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.label {
    color: var(--text-secondary);
    font-weight: 500;
}

.value {
    color: var(--purple-light);
    font-weight: 700;
}

.distribution-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-bar {
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    min-width: 80px;
}

.chart-bar .label {
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--purple-primary);
    transform: translateY(-2px);
}

.feature-item h3 {
    color: var(--purple-light);
    margin-bottom: 0.75rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-item {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--purple-primary);
}

.timeline-date {
    color: var(--purple-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-content {
    color: var(--text-secondary);
}

.buy-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.step {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.step:hover {
    border-color: var(--purple-primary);
    transform: translateY(-2px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--purple-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-content h3 {
    color: var(--purple-light);
    margin-bottom: 0.75rem;
}

/* Memes Page */
.memes-container {
    display: grid;
    gap: 2rem;
}

.meme-intro {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.meme-intro h2 {
    color: var(--purple-light);
    margin-bottom: 1rem;
}

.meme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.meme-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.meme-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple-primary);
}

.meme-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.meme-content {
    padding: 1.5rem;
}

.meme-content h3 {
    color: var(--purple-light);
    margin-bottom: 0.75rem;
}

.meme-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.meme-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meme-category {
    background: var(--purple-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.meme-date {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
}

.community-memes, .meme-philosophy, .meme-stats {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.community-memes h2, .meme-philosophy h2, .meme-stats h2 {
    color: var(--purple-light);
    margin-bottom: 1.5rem;
}

.submission-card {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    border: 2px dashed var(--purple-primary);
    margin-top: 1rem;
}

.submission-card h3 {
    color: var(--purple-light);
    margin-bottom: 1rem;
}

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

.submission-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.submission-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.philosophy-item {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.philosophy-item:hover {
    border-color: var(--purple-primary);
}

.philosophy-item h3 {
    color: var(--purple-light);
    margin-bottom: 0.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-item {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--purple-primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--purple-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* About Page */
.about-container {
    display: grid;
    gap: 2rem;
}

.story-section, .mission-section, .team-section, .technology-section, .community-section, .future-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.story-section h2, .mission-section h2, .team-section h2, .technology-section h2, .community-section h2, .future-section h2 {
    color: var(--purple-light);
    margin-bottom: 1.5rem;
}

.story-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.mission-item {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.mission-item:hover {
    border-color: var(--purple-primary);
}

.mission-item h3 {
    color: var(--purple-light);
    margin-bottom: 0.75rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.team-member {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    border-color: var(--purple-primary);
}

.member-avatar img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.member-role {
    display: block;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.team-note {
    text-align: center;
    font-style: italic;
    color: var(--text-secondary);
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 12px;
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--purple-primary);
}

.tech-item h3 {
    color: var(--purple-light);
    margin-bottom: 0.75rem;
}

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

.community-features {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.community-features h3 {
    color: var(--purple-light);
    margin-bottom: 1rem;
}

.community-features ul {
    list-style: none;
    padding: 0;
}

.community-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.community-features li:last-child {
    border-bottom: none;
}

.join-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.roadmap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.roadmap-item {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--purple-primary);
    transition: all 0.3s ease;
}

.roadmap-item:hover {
    transform: translateX(5px);
}

.roadmap-phase {
    color: var(--purple-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.roadmap-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--purple-dark);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.roadmap-item ul {
    list-style: none;
    padding: 0;
}

.roadmap-item li {
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--purple-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--purple-dark);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: var(--accent);
}

.cta-button.secondary:hover {
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-social {
    margin-top: 1.5rem;
}

.footer-social a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--purple-primary);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .chat-messages {
        height: 400px;
    }
    
    .meme-grid, .info-grid, .features-grid, .mission-grid, .team-grid, .tech-features, .buy-steps {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--purple-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-dark);
}

/* Typing Indicator */
.typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 0.5rem 1rem;
    background: var(--bg-dark);
    border-radius: 12px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--purple-primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

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

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