* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --text-color: #2C3E50;
    --background-color: #F7F9FC;
    --input-bg: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    padding: 20px;
}

.container {
    text-align: center;
    padding: 2.5rem;
    background: var(--input-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    max-width: 800px;
    width: 100%;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px var(--shadow-color);
}

h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

/* Auth Form Styles */
.auth-container {
    margin: 2rem 0;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.form-group i {
    position: absolute;
    left: 15px;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
}

input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
}

input::placeholder {
    color: #A0A0A0;
}

/* Button Styles */
.start-button {
    background: linear-gradient(45deg, var(--primary-color), #FF8E8E);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.start-button:active {
    transform: translateY(0);
}

/* Game Container Styles */
.game-container {
    margin-top: 2rem;
}

.mode-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.mode-button {
    background: var(--accent-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 230, 109, 0.3);
}

/* Roast Container Styles */
.roast-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 2rem;
}

.roast-button {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.roast-button:hover {
    background: #3DBDB4;
    transform: translateY(-2px);
}

#roastDisplay {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
    padding: 1rem;
    background: #F8F9FA;
    border-radius: 10px;
    min-height: 100px;
}

/* Battle Mode Styles */
.battle-container {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 2rem;
}

.battle-players {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.battle-player {
    flex: 1;
    padding: 1.5rem;
    background: #F8F9FA;
    border-radius: 10px;
    box-shadow: 0 3px 10px var(--shadow-color);
}

.battle-roast {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    min-height: 100px;
}

/* Leaderboard Styles */
.leaderboard {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

#leaderboardList {
    margin-top: 1rem;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #E0E0E0;
    transition: background-color 0.3s ease;
}

.leaderboard-item:hover {
    background-color: #F8F9FA;
}

/* Sound Toggle Button */
.sound-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.sound-indicator:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .battle-players {
        flex-direction: column;
    }

    .mode-buttons {
        flex-direction: column;
    }

    .mode-button {
        width: 100%;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-container {
    animation: fadeIn 0.5s ease-out;
}

/* Fire Mode Styles */
body.fire-mode {
    background: linear-gradient(45deg, #FF4444, #FF6B6B);
}

.fire-mode .container {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

.fire-mode h1, .fire-mode h2 {
    color: #FF0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* God Mode Styles */
body.god-mode {
    background: linear-gradient(45deg, #000000, #333333);
}

.god-mode .container {
    background: rgba(0, 0, 0, 0.8);
    color: #FFFFFF;
}

.god-mode h1, .god-mode h2 {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Loading Animation */
.loading-animation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loading-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-out;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-size: 0.9rem;
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Messages */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.toast {
    background: white;
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: var(--primary-color);
    animation: progress 3s linear forwards;
}

.toast.success {
    border-left: 4px solid #4CAF50;
}

.toast.error {
    border-left: 4px solid #F44336;
}

.toast.warning {
    border-left: 4px solid #FFC107;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #4CAF50;
}

.toast.error i {
    color: #F44336;
}

.toast.warning i {
    color: #FFC107;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes progress {
    from { width: 100%; }
    to { width: 0; }
}

/* Error Message Styles */
.error-message {
    color: #F44336;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Funny Error Messages */
.funny-error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
    display: none;
}

.funny-error h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.funny-error p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.funny-error button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.funny-error button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

/* Analytics Dashboard Styles */
.analytics-dashboard {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-top: 2rem;
}

.analytics-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #F8F9FA;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.feature-usage {
    background: #F8F9FA;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.usage-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    background: white;
    padding: 0.8rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.usage-label {
    flex: 1;
    font-weight: 600;
    color: var(--text-color);
}

.usage-value {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}

.export-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.export-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(78, 205, 196, 0.3);
} 