/* Common styles shared across all pages */
:root {
    --primary: #ff6b9d;
    --secondary: #4ecdc4;
    --accent: #8338ec;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --card-bg: #1a1a1a;
    --darker-bg: #141414;
    --gradient-primary: linear-gradient(90deg, #ff6b9d 0%, #8338ec 100%);
    --gradient-card: linear-gradient(90deg, #ff6b9d 0%, #8338ec 100%);
    --dark-bg: #0a0b0c;
    --card-hover: #22242a;
    --text-muted: #808080;
    --card-shadow: 0 8px 30px rgba(0,0,0,0.3);
    --hover-transform: translateY(-5px);
    --border-color: #2a2b2f;
    --gradient-accent: linear-gradient(45deg, var(--accent), var(--secondary));
    --neon-shadow: 0 0 10px rgba(255,107,157,0.5);
}

body {
    font-family: 'Comfortaa', sans-serif;
    line-height: 1.6;
    background: var(--dark-bg);
    min-height: 100vh;
    color: var(--text-primary);
}

body.dark-theme {
    background: #0a0a0a;
    color: var(--text-primary);
    font-family: 'Comfortaa', sans-serif;
    margin: 0;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: rainbow 5s infinite;
}

@keyframes rainbow {
    0% { color: #ff6b6b; }
    25% { color: #4ecdc4; }
    50% { color: #45b7d1; }
    75% { color: #96c93d; }
    100% { color: #ff6b6b; }
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.4rem;
    color: #666;
}

.message-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

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

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

.activity-card {
    background: var(--darker-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--gradient-card);
}

.card-emoji {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    z-index: 1;
}

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

.card-content {
    padding: 2rem;
    background: var(--darker-bg);
}

.card-content h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,107,157,0.3);
}

.game-container {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0.5;
}

#pet {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

#pet:hover {
    transform: scale(1.2);
}

.pet-controls {
    display: flex;
    gap: 1rem;
}

button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 15px;
    background: var(--gradient-primary);
    color: white;
    font-family: 'Comfortaa', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--neon-shadow);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,107,157,0.4);
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 1rem;
    resize: vertical;
    background: var(--darker-bg);
    color: var(--text-primary);
    font-family: 'Comfortaa', sans-serif;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255,107,157,0.2);
}

.affirmation {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #666;
    text-align: center;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .activities {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Pet Game Styles */
#pet-game {
    position: relative;
    min-height: 300px;
    background: linear-gradient(to bottom, #e1f5fe, #b3e5fc);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
}

#pet {
    font-size: 5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

#pet:hover {
    transform: scale(1.2) rotate(5deg);
}

.pet-stats {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 15px;
    margin-top: 1rem;
}

.pet-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1565c0;
    margin-bottom: 1rem;
    text-align: center;
}

.pet-progress {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.progress-fill.love {
    background: linear-gradient(45deg, #ff6b6b, #ff8787);
}

.progress-fill.hunger {
    background: linear-gradient(45deg, #ffd43b, #ffa94d);
}

.progress-fill.energy {
    background: linear-gradient(45deg, #69db7c, #38d9a9);
}

.pet-inventory {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    font-size: 1.2rem;
}

.pet-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.pet-button {
    padding: 1rem;
    border: none;
    border-radius: 15px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.pet-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.pet-emote {
    position: absolute;
    font-size: 2rem;
    animation: float-up 1s ease-out forwards;
    pointer-events: none;
}

#pet-message {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #666;
    min-height: 1.5em;
}

@keyframes float-up {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px) scale(1.5);
        opacity: 0;
    }
}

/* Navigation */
.main-nav {
    background: var(--card-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.nav-logo {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.rainbow-text {
    background: linear-gradient(45deg, #ff6b9d, #ffbe0b, #4ecdc4, #8338ec);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow 8s linear infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

.nav-links a.active {
    background: var(--gradient-primary);
}

.glow-button {
    background: var(--gradient-primary);
    animation: glow 2s ease-in-out infinite alternate;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--gradient-primary);
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Mood Tracker */
.mood-tracker {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 800px;
}

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

.mood-btn {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

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

.mood-btn.selected {
    background: var(--gradient-primary);
    border-color: transparent;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    margin-top: 4rem;
}

/* Animations */
@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px var(--primary),
                    0 0 10px var(--primary);
    }
    to {
        box-shadow: 0 0 10px var(--primary),
                    0 0 20px var(--primary);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .activities {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .mood-buttons {
        flex-direction: column;
    }
}

/* Dark Theme Specific */
.dark-theme {
    --card-shadow: 0 8px 30px rgba(0,0,0,0.5);
    background: var(--darker-bg);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

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

.mood-response {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: var(--darker-bg);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mood-response.show {
    opacity: 1;
    transform: translateY(0);
}

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

.mood-response p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Add these styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--primary);
}

.popup-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.discord-tag {
    background: var(--darker-bg);
    padding: 1rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.discord-tag code {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.copy-btn {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(255,107,157,0.3);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.back-home-btn {
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,107,157,0.3);
} 