/* ============================================
   ARCADE - PROFILE PAGE STYLES
   ============================================
   Styles specific to the player profile page.
   Imports shared styles from styles.css
   ============================================ */

/* Profile Container */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Profile Header */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid var(--accent-color, #00ff88);
}

.player-info h1 {
    font-size: 2.5em;
    margin: 0 0 5px 0;
    color: var(--accent-color, #00ff88);
}

.member-since {
    color: #888;
    font-size: 0.9em;
    margin: 0;
}

.credits-box {
    text-align: center;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    padding: 20px 40px;
    border-radius: 10px;
    border: 2px solid gold;
}

.credits-label {
    display: block;
    font-size: 0.9em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credits-value {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: gold;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Daily Bonus Section */
.daily-bonus-section {
    margin-bottom: 30px;
}

.daily-bonus-card {
    background: linear-gradient(135deg, #1a3a1a, #0a2a0a);
    border: 2px solid var(--accent-color, #00ff88);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.daily-bonus-card h3 {
    margin: 0 0 10px 0;
    color: var(--accent-color, #00ff88);
}

.daily-bonus-card p {
    margin: 0 0 15px 0;
    color: #aaa;
}

.daily-bonus-card .btn {
    background: linear-gradient(135deg, var(--accent-color, #00ff88), #00cc66);
    color: #000;
    font-weight: bold;
}

.daily-bonus-card .btn:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

/* Stats Overview */
.stats-overview {
    margin-bottom: 30px;
}

.stats-overview h2 {
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-card {
    background: #222;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stat-value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-color, #00ff88);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.85em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Game Stats Section */
.game-stats-section {
    margin-bottom: 30px;
}

.game-stats-section h2 {
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.game-stats-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    border-radius: 10px;
    padding: 15px 20px;
    transition: background 0.2s;
}

.game-stat-item:hover {
    background: #2a2a2a;
}

.game-stat-name {
    font-weight: bold;
    color: #fff;
    font-size: 1.1em;
}

.game-stat-details {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.9em;
}

.game-stat-details span {
    white-space: nowrap;
}

.game-stat-details .wins {
    color: var(--accent-color, #00ff88);
}

.game-stat-details .losses {
    color: #ff6b6b;
}

.no-games-message,
.no-achievements-message {
    color: #666;
    text-align: center;
    padding: 40px;
    background: #1a1a1a;
    border-radius: 10px;
    font-style: italic;
}

/* Achievements Section */
.achievements-section {
    margin-bottom: 30px;
}

.achievements-section h2 {
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.achievement-card {
    background: linear-gradient(135deg, #2a2a1a, #1a1a0a);
    border: 2px solid gold;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
}

.achievement-card:hover {
    transform: scale(1.02);
}

.achievement-card.locked {
    background: #1a1a1a;
    border-color: #333;
    opacity: 0.6;
}

.achievement-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.achievement-name {
    font-weight: bold;
    color: gold;
    margin-bottom: 5px;
}

.achievement-card.locked .achievement-name {
    color: #666;
}

.achievement-description {
    font-size: 0.85em;
    color: #888;
}

.achievement-date {
    font-size: 0.75em;
    color: #555;
    margin-top: 10px;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 2px solid #333;
}

.btn-secondary {
    background: #444;
    color: #fff;
}

.btn-secondary:hover {
    background: #555;
}

.btn-danger {
    background: #8b0000;
    color: #fff;
}

.btn-danger:hover {
    background: #a00;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #222;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    border: 2px solid var(--accent-color, #00ff88);
}

.modal-content h2 {
    margin-top: 0;
    color: var(--accent-color, #00ff88);
}

.modal-content p {
    color: #ccc;
    line-height: 1.6;
}

.modal-content .warning {
    color: #ff6b6b;
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Register Modal */
.register-modal {
    max-width: 450px;
}

.register-modal h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.bonus-info {
    background: linear-gradient(135deg, #1a3a1a, #0a2a0a);
    border: 1px solid var(--accent-color, #00ff88);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.bonus-info strong {
    color: gold;
}

/* Form Elements */
.form-group {
    margin: 20px 0;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.1em;
    background: #1a1a1a;
    border: 2px solid #444;
    border-radius: 8px;
    color: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.text-input:focus {
    outline: none;
    border-color: var(--accent-color, #00ff88);
}

.text-input::placeholder {
    color: #555;
}

/* Responsive */
@media (max-width: 600px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .credits-box {
        width: 100%;
    }

    .game-stat-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .game-stat-details {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-actions {
        flex-direction: column;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions .btn {
        width: 100%;
    }
}
