:root {
    --primary-color: #28a745;
    --secondary-color: #21262d;
    --background-color: #0d1117;
    --text-color: #c9d1d9;
    --border-color: #30363d;
    --card-bg: #161b22;
    --button-hover: #2c3338;
    --button-active: #2ea44f;
    --stat-bg: #161b22;
    --accent-color: #28a745;
    --accent-hover: #2ea44f;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
}

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

header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

h1 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.title-logo {
    vertical-align: middle;
    margin-right: 12px;
    fill: var(--accent-color);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

h1:hover .title-logo {
    transform: rotate(20deg);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    background-color: var(--stat-bg);
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 1.2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.stat-label {
    color: #8b949e;
    margin-right: 0.5rem;
}

.clicker-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

#click-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.4rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.2rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#click-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.4);
}

#click-button:active {
    background-color: var(--accent-color);
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
}

.click-power {
    font-size: 0.9rem;
    color: #8b949e;
}

/* Add highlight animation for click power */
@keyframes clickPowerHighlight {
    0% {
        color: var(--text-color);
        transform: scale(1);
    }
    50% {
        color: var(--accent-color);
        transform: scale(1.2);
    }
    100% {
        color: var(--text-color);
        transform: scale(1);
    }
}

.highlight {
    animation: clickPowerHighlight 1s ease;
    font-weight: bold;
}

.upgrades-section {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.upgrades-section h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.upgrade {
    background-color: var(--background-color);
    padding: 1.8rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.upgrade:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.upgrade:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Make it obvious when you can't afford */
.upgrade .cost {
    transition: color 0.2s;
}

.upgrade button:disabled ~ .cost {
    color: #ff7b72;
}

.upgrade h3 {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.upgrade p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #8b949e;
}

.buy-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    font-size: 1.05rem;
    font-weight: 500;
}

.buy-button:hover {
    background-color: var(--button-hover);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Style for disabled buttons */
.buy-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: var(--secondary-color);
    border-color: var(--border-color);
}

/* Locked upgrade styling */
.upgrade.locked {
    opacity: 0.7;
}

.upgrade.locked::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through */
}

/* Enable clicking through the overlay */
.upgrade.locked * {
    position: relative;
    z-index: 2;
}

.level-required {
    color: #8b949e;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    pointer-events: none;
}

.notification {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    animation: slideIn 0.3s ease-out;
    pointer-events: auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
    transition: opacity 0.3s ease;
    position: relative;
}

.notification-message {
    font-weight: 600;
    font-size: 1.1rem;
}

.notification-details {
    font-size: 0.95rem;
    color: #8b949e;
    border-top: 1px solid rgba(48, 54, 61, 0.5);
    padding-top: 10px;
    margin-top: 4px;
}

.notification-details ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.notification-details li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 24px;
}

.notification-details li:before {
    content: "→";
    position: absolute;
    left: 0;
}

.notification-details li:last-child {
    margin-bottom: 0;
}

.notification.level-up {
    background-color: var(--accent-color);
    color: white;
    border: none;
}

.notification.level-up .notification-details {
    color: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.notification.level-up .notification-details li:before {
    content: "✓";
}

.notification.error {
    background-color: #da3633;
    color: white;
    border: none;
}

.notification.error .notification-details {
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 2px 6px;
    line-height: 1;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.upgrade-count {
    color: #8b949e;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.upgrade.locked .upgrade-count {
    opacity: 0.7;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Replace GitHub button styles with GitHub corner styles */
.github-corner {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 999;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 50%;
    background-color: #24292e;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.github-corner:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.github-icon-container {
    padding: 8px;
    background-color: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.github-corner svg {
    fill: white;
}

.settings-button {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.settings-button:hover {
    background-color: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-color);
}

.close-button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

.modal-body {
    padding: 1rem;
}

.settings-option {
    margin-bottom: 1rem;
}

.settings-option h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.settings-option p {
    color: #ff7b72;
    margin-bottom: 1rem;
}

.danger-button {
    background-color: #da3633;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.danger-button:hover {
    background-color: #b62825;
}

/* Export button styling */
.button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: "⬇️";
    margin-right: 8px;
    font-size: 0.9rem;
}

.button:hover {
    background-color: #2d3748;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Add animation for export action */
@keyframes downloadPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 111, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(31, 111, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(31, 111, 235, 0);
    }
}

.button.active {
    animation: downloadPulse 1.5s;
}

@media (max-width: 768px) {
    .game-container {
        padding: 1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .upgrades-grid {
        grid-template-columns: 1fr;
    }
    
    .active-multiplier {
        max-width: 100%;
    }
    
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .header-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .repository-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .repo-stat {
        min-width: 100px;
        max-width: calc(50% - 1rem);
        padding: 0.6rem 0.8rem;
    }
    
    .repo-progress {
        width: 100%;
        max-width: 300px;
    }
    
    .repositories-section {
        padding: 1.5rem 1rem;
    }
    
    .create-repo-button {
        width: 100%;
        max-width: 300px;
    }
    
    .github-corner {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
    }
    
    .github-corner svg {
        width: 28px;
        height: 28px;
    }
    
    .settings-button {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

.xp-container {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 500px;
    margin: 1.5rem auto;
}

.xp-bar-container {
    width: 100%;
    height: 12px;
    background-color: var(--background-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.7rem;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.xp-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
    position: relative;
    overflow: hidden;
}

.xp-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2s infinite;
    transform: skewX(-20deg);
}

@keyframes shimmer {
    0% { transform: translateX(-100%) skewX(-20deg); }
    100% { transform: translateX(200%) skewX(-20deg); }
}

.xp-text {
    text-align: center;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Remove the centered level-up animation */
/* .level-up {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: bold;
    animation: levelUp 2s ease-out;
    z-index: 1000;
} */

/* Keep the animation keyframes for reference but we won't use them */
@keyframes levelUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
}

/* Add styles for visually disabled buttons */
.buy-button.visually-disabled {
    opacity: 0.7;
    background-color: var(--secondary-color);
    border-color: var(--border-color);
    cursor: pointer;
}

.buy-button.visually-disabled:hover {
    background-color: var(--button-hover);
    transform: translateY(-1px);
}

/* Style for cost that's too high */
.cost-too-high {
    color: #ff7b72 !important; /* GitHub's red color for errors */
    font-weight: 500;
}

/* Style for level that's too low */
.level-too-low {
    color: #ff7b72 !important; /* GitHub's red color for errors */
}

/* Styles for active multipliers display */
.active-multipliers {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.active-multiplier {
    background-color: var(--card-bg);
    border: 1px solid var(--accent-color);
    border-radius: 6px;
    padding: 0.75rem;
    width: 100%;
    max-width: 250px;
    position: relative;
    animation: pulseEffect 2s infinite;
}

.multiplier-description {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.multiplier-timer {
    background-color: var(--border-color);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.multiplier-progress {
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.1s linear;
}

.multiplier-time-left {
    font-size: 0.9rem;
    color: #8b949e;
    text-align: right;
}

/* Style for on-cooldown buttons */
.on-cooldown {
    background-color: #30363d !important;
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    color: #8b949e !important;
    border-color: var(--border-color) !important;
}

.cooldown {
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Pulse animation for active multipliers */
@keyframes pulseEffect {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 111, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(31, 111, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(31, 111, 235, 0);
    }
}

/* Style for boost notifications */
.notification.boost {
    background-color: #238636;
    color: white;
    border: none;
}

.notification.boost .notification-details {
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Empty state for active multipliers */
.active-multipliers:empty::before {
    content: "No active multipliers";
    display: block;
    color: #8b949e;
    font-style: italic;
    padding: 1rem;
    text-align: center;
    width: 100%;
}

/* Section spacing */
.upgrades-section h2 {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.upgrades-section h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Repository Styles */
.repositories-section {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section-desc {
    color: #8b949e;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.repositories-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.repository-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.repo-stat {
    background-color: var(--stat-bg);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.repo-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.repo-progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.repo-progress-bars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    min-height: 60px;
}

.repo-progress {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.repo-progress:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.repo-name {
    font-size: 0.9rem;
    color: var(--text-color);
    text-align: left;
    font-weight: 500;
}

.repo-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.repo-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 0 4px rgba(40, 167, 69, 0.5);
}

.repo-time {
    font-size: 0.8rem;
    color: #8b949e;
    text-align: right;
}

.create-repo-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.create-repo-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(40, 167, 69, 0.4);
}

.create-repo-button:active {
    background-color: var(--accent-color);
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.create-repo-button:disabled {
    background-color: var(--secondary-color);
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive adjustments for mobile */
@media (max-width: 480px) {
    .repo-stat {
        min-width: calc(50% - 1rem);
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }
    
    .repo-progress-bars {
        gap: 0.8rem;
    }
    
    .repo-progress {
        padding: 0.8rem;
    }
} 