/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables - Using MedoMocha's color scheme */
:root {
    /* Keep only the light theme variables */
    --primary-color: #6b4423;
    --accent-color: #c78550;
    --text-color: #333;
    --light-bg: #f0f0f0;
    --white: #ffffff;
    --text-secondary: #666;
    --bg-color: #f9f9f9;
    --card-bg: #ffffff;
    --border-color: #d1d1d1;
    --input-bg: #ffffff;
    --secondary-bg: #f5f5f5;
    --secondary-bg-hover: #ebebeb;
    --accent-color-light: #e67e22;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
nav {
    background-color: var(--primary-color);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-color);
}

/* Add these styles for the mobile nav */
.nav-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(107, 68, 35, 0.7), rgba(107, 68, 35, 0.7)),
                url('https://source.unsplash.com/random/1920x1080?coffee') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Sections */
section {
    padding: 5rem 2rem;
}

.section-light {
    background-color: #f0f0f0; /* Light grey */
}

.section-dark {
    background-color: #e5e5e5; /* Slightly darker grey */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(107, 68, 35, 0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #a66c3c;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

/* Update the mobile styles */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-color);
        transition: left 0.3s ease;
        z-index: 999;
        padding-top: 4rem;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav a {
        display: block;
        padding: 1rem;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Add overlay when nav is open */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .nav-overlay.active {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* OmO Section Styles */
.mascot-tag {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.omo-section {
    background-color: var(--white);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.15);
}

.omo-image {
    max-width: 300px;
    margin: 0 auto 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.2);
}

.omo-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.omo-image:hover img {
    transform: scale(1.05);
}

.omo-section:hover {
    animation: none;
}

.omo-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.omo-facts {
    margin-top: 2rem;
    text-align: left;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
}

.omo-facts h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.omo-facts ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.omo-facts li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.omo-facts li::before {
    content: "☕";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Animation for OmO section */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.omo-section:hover {
    animation: bounce 2s infinite ease-in-out;
}

/* Tools Section Styles */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(107, 68, 35, 0.1);
    transition: transform 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tool-card p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.tool-card .btn {
    display: inline-block;
    margin-top: 1rem;
}

/* Credits Section Styles */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.credit-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(107, 68, 35, 0.1);
    transition: transform 0.3s;
}

.credit-card:hover {
    transform: translateY(-5px);
}

.credit-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-color);
}

.credit-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.credit-card p {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-link:hover {
    background: var(--accent-color);
}

/* Mobile styles for credits */
@media (max-width: 768px) {
    .credits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .credit-card {
        padding: 1.5rem;
    }

    .credit-avatar {
        width: 100px;
        height: 100px;
    }
}

/* Game Progression Section Styles */
.game-progression {
    padding: 4rem 2rem;
    background: var(--bg-color);
}

.game-progression .container {
    max-width: 1200px;
    margin: 0 auto;
}

.game-progression h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.game-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.game-header h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
}

.game-genre {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.game-stats {
    margin-bottom: 1.5rem;
}

.hours-played {
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hours-played::before {
    content: "⏱";
}

.last-updated {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: block;
    opacity: 0.8;
    font-style: italic;
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
    line-height: 1.3;
}

.progress-bars {
    margin-bottom: 2rem;
}

.progress-item {
    margin-bottom: 1.2rem;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-item label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.progress-bar {
    height: 10px;
    background: var(--bg-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.level-bar {
    height: 12px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.level-bar .progress {
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.progress-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.achievements {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.achievement-icon {
    font-size: 1.8rem;
    cursor: help;
    transition: transform 0.3s ease;
}

.achievement-icon:hover {
    transform: scale(1.1);
}

.achievement-icon.completed {
    opacity: 1;
}

.achievement-icon.locked {
    opacity: 0.5;
}

.view-details {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.view-details:hover {
    background: var(--accent-color);
}

.game-stats-summary {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .game-progression {
        padding: 3rem 1rem;
    }

    .game-progression h2 {
        font-size: 2rem;
    }

    .game-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .game-cards {
        grid-template-columns: 1fr;
    }

    .game-stats-summary {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }
}

/* Game Progression Actions */
.game-progression-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.manage-games-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.manage-games-btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
}

.manage-games-btn i {
    font-size: 18px;
}

@media (max-width: 768px) {
    .game-progression-actions {
        margin-top: 16px;
    }
    
    .manage-games-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    color: #2ecc71;
    font-size: 20px;
}

.notification-content span {
    color: var(--text-color);
    font-size: 14px;
}

@media (max-width: 768px) {
    .notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

.game-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
}

.game-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-details {
    background: var(--primary-color);
    color: white;
}

.edit-game {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
}

.view-details:hover, .edit-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .game-actions {
        flex-direction: column;
    }
}

/* Game Details Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 1rem;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modal-fade-in 0.3s ease;
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--accent-color);
}

.game-details {
    color: var(--text-color);
}

.game-details h2 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(199, 133, 80, 0.3);
}

.game-info {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 0.5rem;
}

.game-info p {
    margin: 0.5rem 0;
}

.progress-details,
.achievements-details {
    margin-top: 2rem;
}

.progress-details h3,
.achievements-details h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.progress-item {
    margin-bottom: 1rem;
}

.progress-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    height: 1rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.progress-value {
    margin-top: 0.5rem;
    text-align: right;
    font-size: 0.9rem;
}

.achievements-details .achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: var(--white);
    border-radius: 0.5rem;
}

.achievements-details .achievement.completed {
    color: var(--accent-color);
}

.achievements-details .achievement.locked {
    opacity: 0.5;
}

.achievements-details .achievement i {
    font-size: 1.2rem;
}

/* Mobile Styles for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }

    .game-details h2 {
        font-size: 1.5rem;
    }

    .progress-details h3,
    .achievements-details h3 {
        font-size: 1.2rem;
    }
}

/* New styles for the game details modal */
.level-display, 
.hours-display, 
.custom-display {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(199, 133, 80, 0.1);
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
}

.level-display {
    color: #e67e22;
}

.hours-display {
    color: #3498db;
}

.custom-display {
    color: #9b59b6;
}

.game-info {
    background: var(--white);
}

/* Keep cards and elements white */
.card,
.tool-card,
.credit-card,
.omo-section,
.game-card,
.modal-content {
    background: var(--white);
}

/* Update progress bar background */
.progress-bar {
    background: var(--bg-color);
}

/* Update game stats summary */
.game-stats-summary {
    background: var(--white);
}

/* Update modal background */
.modal-content {
    background-color: var(--white);
}

/* Update notification background */
.notification {
    background: var(--white);
}

/* Update omo facts section */
.omo-facts {
    background-color: var(--white);
}

/* Update achievements section */
.achievements-details .achievement {
    background-color: var(--white);
}

/* Add subtle borders to white elements for better contrast */
.card,
.tool-card,
.credit-card,
.omo-section,
.game-card,
.modal-content,
.game-stats-summary {
    border: 1px solid var(--border-color);
}

/* Ensure smooth transitions */
html {
    transition: background-color 0.3s ease;
}
