/* Panels Module Styles */

/* Statistics Panel */
.statistics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.statistics-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #444;
    display: flex;
    justify-content: space-between;
}

.statistics-list li:last-child {
    border-bottom: none;
}

.statistics-list span {
    color: #007bff;
    font-weight: bold;
}

/* Achievements Panel */
#achievements-count {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #3a3a3a;
    border-radius: 5px;
}

#achievements-count span {
    color: #ffd700;
    font-weight: bold;
}

/* Wizard Rank Display */
.wizard-rank-section {
    background: linear-gradient(135deg, #2a2a4a 0%, #3a3a5a 100%);
    border: 2px solid #6a5acd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.wizard-rank-section p {
    margin: 8px 0;
    font-size: 1.1em;
}

.wizard-rank-section strong {
    color: #9b8ed4;
}

#wizard-rank-name {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2em;
}

#magic-proficiency {
    color: #00ff88;
    font-weight: bold;
}

#rank-progress {
    color: #aaa;
    font-style: italic;
    font-size: 0.95em;
}

.achievements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.achievement-item {
    background-color: #4a4a4a;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
}

.achievement-item .achievement-name {
    display: block;
    font-size: 1.2em;
    color: #ffd700;
    margin-bottom: 5px;
}

.achievement-item .achievement-description {
    display: block;
    font-size: 0.9em;
    color: #ccc;
}

/* Production Panel */
.production-upgrades {
    background-color: #3a3a3a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.production-upgrades p {
    margin: 5px 0;
}

.production-upgrades span {
    color: #9b59b6;
    font-weight: bold;
}

#production-container h3 {
    color: #007bff;
    margin-bottom: 10px;
}

.production-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.production-building-item {
    padding: 12px 15px;
    background-color: #4a4a4a;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.production-building-item .building-name {
    color: #007bff;
    font-weight: bold;
    font-size: 1.1em;
}

.production-building-item .building-production {
    color: #4CAF50;
    font-size: 0.95em;
}

.no-buildings {
    color: #888;
    font-style: italic;
    padding: 15px;
}

/* Prestige Panel */
.prestige-description {
    color: #ccc;
    margin-bottom: 15px;
}

.prestige-note {
    color: #888;
    font-style: italic;
    font-size: 0.9em;
}

.prestige-button {
    background-color: #9b59b6;
    font-size: 1.2em;
    padding: 15px 30px;
    margin-top: 15px;
}

.prestige-button:hover:not(:disabled) {
    background-color: #8e44ad;
}

.prestige-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

#prestige-container p {
    margin: 10px 0;
}

#prestige-container hr {
    border: none;
    border-top: 1px solid #555;
    margin: 15px 0;
}

#prestige-countdown,
#prestige-next-countdown {
    color: #ffd700;
    font-weight: bold;
}

#prestige-pending-crystals,
#prestige-current-crystals,
#prestige-store-crystals {
    color: #9b59b6;
    font-weight: bold;
}

#prestige-bonus,
#times-prestiged {
    color: #4CAF50;
    font-weight: bold;
}

#prestige-gain-info {
    font-size: 1.1em;
    background-color: #3a3a3a;
    padding: 10px 15px;
    border-radius: 5px;
    border-left: 4px solid #9b59b6;
}

/* Prestige Store Panel */
#prestige-store-panel {
    background-color: #2a2a2a;
}

#prestige-store-container {
    padding: 15px;
}

#prestige-store-container > p {
    font-size: 1.2em;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #3a3a3a;
    border-radius: 5px;
}

.prestige-store-note {
    color: #888;
    font-style: italic;
}

/* Prestige Upgrades */
#prestige-upgrades-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prestige-upgrade-item {
    background-color: #3a3a3a;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #9b59b6;
}

.prestige-upgrade-item.purchased {
    border-left-color: #4CAF50;
    opacity: 0.8;
}

.prestige-upgrade-name {
    font-size: 1.2em;
    color: #9b59b6;
    font-weight: bold;
    margin-bottom: 8px;
}

.prestige-upgrade-item.purchased .prestige-upgrade-name {
    color: #4CAF50;
}

.prestige-upgrade-description {
    color: #fff;
    margin-bottom: 8px;
}

.prestige-upgrade-flavor {
    color: #888;
    font-style: italic;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.prestige-upgrade-cost {
    color: #ffd700;
    font-weight: bold;
    margin-bottom: 10px;
}

.prestige-upgrade-cost span {
    color: #9b59b6;
}

.prestige-upgrade-button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.prestige-upgrade-button.can-afford {
    background-color: #9b59b6;
    color: white;
}

.prestige-upgrade-button.can-afford:hover {
    background-color: #8e44ad;
}

.prestige-upgrade-button.cannot-afford {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
}

/* Finish Prestige Button */
#finish-prestige-container {
    text-align: center;
    padding: 15px;
}

#finish-prestige-button {
    background-color: #9b59b6;
    color: white;
    font-size: 1.3em;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#finish-prestige-button:hover {
    background-color: #8e44ad;
}

/* Changelog Panel */
#current-version {
    color: #4CAF50;
    font-weight: bold;
}

.changelog-entry {
    background-color: #3a3a3a;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.changelog-entry h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
}

.changelog-date {
    color: #888;
    font-size: 0.85em;
    font-weight: normal;
    margin-left: 10px;
}

.changelog-entry p {
    margin: 5px 0;
    color: #ccc;
}

.changelog-entry ul {
    margin: 0;
    padding-left: 20px;
}

.changelog-entry li {
    margin: 5px 0;
    color: #ccc;
}

/* Options Panel */
.option-group {
    background-color: #3a3a3a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.option-group h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 15px;
}

.option-group button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.danger-zone {
    border: 1px solid #dc3545;
}

.danger-zone h3 {
    color: #dc3545;
}

.danger-button {
    background-color: #dc3545;
}

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

/* Wishing Well Panel */
.wishing-well-status {
    background-color: #3a3a3a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.wishing-well-status p {
    margin: 8px 0;
    font-size: 1.1em;
}

#wishing-well-coins {
    color: #ffd700;
    font-weight: bold;
}

#wishing-well-max-coins {
    color: #888;
}

#wishing-well-level {
    color: #9b59b6;
    font-weight: bold;
}

.wishing-well-effects {
    background-color: #3a3a3a;
    padding: 15px;
    border-radius: 8px;
}

.wishing-well-effects h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 10px;
}

.wishing-well-coming-soon {
    color: #888;
    font-style: italic;
}
