/* CODDB Profile System - Elements */

/* Profile Container */
.coddb-profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Profile Card */
.coddb-profile-card {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--profile-border-color);
    border-radius: var(--profile-radius);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Profile Avatar */
.coddb-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #000;
    font-weight: 900;
    border: 4px solid var(--profile-primary);
    box-shadow: 0 8px 24px rgba(255, 105, 0, 0.3);
    margin: 0 auto 20px;
    cursor: pointer;
    transition: var(--profile-transition);
    position: relative;
    overflow: hidden;
}

.coddb-profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(255, 105, 0, 0.5);
}

.coddb-profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Profile Username */
.coddb-profile-username {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--profile-text-primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Profile Status */
.coddb-profile-status {
    font-size: 1.1rem;
    color: var(--profile-primary);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* Profile Bio */
.coddb-profile-bio {
    font-size: 1.1rem;
    color: var(--profile-text-primary);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: italic;
}

/* Profile Stats */
.coddb-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.coddb-profile-stat {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid var(--profile-border-color);
    border-radius: var(--profile-radius);
    padding: 16px;
    text-align: center;
    transition: var(--profile-transition);
}

.coddb-profile-stat:hover {
    border-color: var(--profile-primary);
    transform: translateY(-2px);
}

.coddb-profile-stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--profile-text-primary);
    margin-bottom: 8px;
}

.coddb-profile-stat-label {
    font-size: 0.9rem;
    color: var(--profile-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Profile Actions */
.coddb-profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.coddb-profile-btn {
    padding: 12px 24px;
    border-radius: var(--profile-radius);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--profile-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.coddb-profile-btn.primary {
    background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-secondary) 100%);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
}

.coddb-profile-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 105, 0, 0.4);
}

.coddb-profile-btn.secondary {
    background: rgba(40, 40, 40, 0.9);
    color: var(--profile-text-primary);
    border: 1px solid var(--profile-border-color);
}

.coddb-profile-btn.secondary:hover {
    background: rgba(60, 60, 60, 0.9);
    border-color: var(--profile-primary);
}

/* Tooltips */
.coddb-tooltip {
    position: absolute;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid var(--profile-border-color);
    border-radius: var(--profile-radius);
    padding: 12px;
    color: var(--profile-text-primary);
    font-size: 0.9rem;
    max-width: 250px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tooltip-title {
    font-weight: 700;
    color: var(--profile-primary);
}

.tooltip-rarity {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}

.tooltip-rarity.legendary {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.tooltip-rarity.epic {
    background: rgba(153, 51, 255, 0.2);
    color: #9933ff;
}

.tooltip-rarity.rare {
    background: rgba(0, 102, 204, 0.2);
    color: #0066cc;
}

.tooltip-rarity.common {
    background: rgba(102, 102, 102, 0.2);
    color: #666;
}

.tooltip-content {
    line-height: 1.4;
    color: var(--profile-text-secondary);
}

/* Modals */
.coddb-achievement-modal,
.coddb-avatar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-modal-content,
.avatar-modal-content {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--profile-border-color);
    border-radius: var(--profile-radius);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.achievement-modal-close,
.avatar-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.5rem;
    color: var(--profile-text-secondary);
    cursor: pointer;
    transition: var(--profile-transition);
}

.achievement-modal-close:hover,
.avatar-modal-close:hover {
    color: var(--profile-primary);
}

.achievement-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.achievement-modal-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 105, 0, 0.1);
    border-radius: 50%;
    border: 2px solid var(--profile-primary);
}

.achievement-modal-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--profile-text-primary);
    margin-bottom: 8px;
}

.achievement-modal-rarity {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 6px;
}

.achievement-modal-body p {
    color: var(--profile-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.achievement-modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.achievement-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: var(--profile-radius);
    border: 1px solid var(--profile-border-color);
}

.achievement-stat .stat-label {
    color: var(--profile-text-secondary);
    font-size: 0.9rem;
}

.achievement-stat .stat-value {
    color: var(--profile-text-primary);
    font-weight: 600;
}

/* Avatar Modal */
.avatar-modal-content {
    text-align: center;
}

.avatar-modal-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #000;
    font-weight: 900;
    border: 6px solid var(--profile-primary);
    margin: 0 auto 20px;
    box-shadow: 0 12px 32px rgba(255, 105, 0, 0.3);
}

.avatar-modal-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--profile-text-primary);
    margin-bottom: 12px;
}

.avatar-modal-info p {
    color: var(--profile-text-secondary);
    line-height: 1.6;
}

/* Notifications */
.coddb-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--profile-border-color);
    border-radius: var(--profile-radius);
    padding: 16px;
    color: var(--profile-text-primary);
    font-size: 0.95rem;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-width: 300px;
}

.coddb-notification.success {
    border-color: #00ff00;
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(30, 30, 30, 0.95) 100%);
}

.coddb-notification.error {
    border-color: #ff0000;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(30, 30, 30, 0.95) 100%);
}

.coddb-notification.warning {
    border-color: #ff6600;
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1) 0%, rgba(30, 30, 30, 0.95) 100%);
}

.notification-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.notification-message {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: var(--profile-text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--profile-transition);
}

.notification-close:hover {
    color: var(--profile-primary);
}

/* Progress Bars */
.stat-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--profile-primary) 0%, var(--profile-secondary) 100%);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes flash {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

@keyframes legendary-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
}

@keyframes epic-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(153, 51, 255, 0.5); }
    50% { box-shadow: 0 0 25px rgba(153, 51, 255, 0.7); }
}

@keyframes rare-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 102, 204, 0.4); }
    50% { box-shadow: 0 0 20px rgba(0, 102, 204, 0.6); }
}

/* Profile Edit Container */
.coddb-profile-edit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.coddb-profile-edit-header {
    text-align: center;
    margin-bottom: 32px;
}

.coddb-profile-edit-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--profile-text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.coddb-profile-edit-subtitle {
    font-size: 1.1rem;
    color: var(--profile-text-secondary);
    font-style: italic;
}

/* Success and Error Messages */
.coddb-profile-edit-success {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    border-radius: var(--profile-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #00ff00;
    font-weight: 600;
    text-align: center;
}

.coddb-profile-edit-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    border-radius: var(--profile-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #ff0000;
    font-weight: 600;
    text-align: center;
}

/* Profile Edit Form */
.coddb-profile-edit-form {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--profile-border-color);
    border-radius: var(--profile-radius);
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.coddb-profile-edit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.coddb-profile-edit-section {
    background: rgba(40, 40, 40, 0.8);
    border: 1px solid var(--profile-border-color);
    border-radius: var(--profile-radius);
    padding: 24px;
    transition: var(--profile-transition);
}

.coddb-profile-edit-section:hover {
    border-color: var(--profile-primary);
}

.coddb-profile-edit-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--profile-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--profile-border-color);
    padding-bottom: 8px;
}

/* Form Fields */
.coddb-profile-edit-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.coddb-profile-edit-field {
    margin-bottom: 20px;
}

.coddb-profile-edit-field label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--profile-text-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.coddb-profile-edit-field input,
.coddb-profile-edit-field select,
.coddb-profile-edit-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--profile-border-color);
    border-radius: var(--profile-radius);
    color: var(--profile-text-primary);
    font-size: 1rem;
    transition: var(--profile-transition);
    box-sizing: border-box;
}

.coddb-profile-edit-field input:focus,
.coddb-profile-edit-field select:focus,
.coddb-profile-edit-field textarea:focus {
    outline: none;
    border-color: var(--profile-primary);
    box-shadow: 0 0 0 2px rgba(255, 105, 0, 0.2);
}

.coddb-profile-edit-field input::placeholder,
.coddb-profile-edit-field textarea::placeholder {
    color: var(--profile-text-secondary);
    opacity: 0.7;
}

.coddb-profile-edit-field textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.coddb-profile-edit-field select {
    cursor: pointer;
}

.coddb-profile-edit-field select option {
    background: rgba(20, 20, 20, 0.9);
    color: var(--profile-text-primary);
    padding: 8px;
}

/* Checkbox Styling */
.coddb-profile-edit-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--profile-text-primary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.coddb-profile-edit-checkbox-label input[type="checkbox"] {
    display: none;
}

.coddb-profile-edit-checkbox-label .checkmark {
    width: 20px;
    height: 20px;
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid var(--profile-border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--profile-transition);
    flex-shrink: 0;
}

.coddb-profile-edit-checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--profile-primary);
    border-color: var(--profile-primary);
}

.coddb-profile-edit-checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: 900;
    font-size: 12px;
}

.coddb-profile-edit-field-help {
    font-size: 0.9rem;
    color: var(--profile-text-secondary);
    margin-top: 4px;
    font-style: italic;
}

/* Form Actions */
.coddb-profile-edit-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--profile-border-color);
}

.coddb-profile-edit-btn {
    padding: 14px 32px;
    border-radius: var(--profile-radius);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: var(--profile-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.coddb-profile-edit-btn.primary {
    background: linear-gradient(135deg, var(--profile-primary) 0%, var(--profile-secondary) 100%);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 105, 0, 0.3);
}

.coddb-profile-edit-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 105, 0, 0.4);
}

.coddb-profile-edit-btn.secondary {
    background: rgba(40, 40, 40, 0.9);
    color: var(--profile-text-primary);
    border: 1px solid var(--profile-border-color);
}

.coddb-profile-edit-btn.secondary:hover {
    background: rgba(60, 60, 60, 0.9);
    border-color: var(--profile-primary);
    color: var(--profile-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .coddb-profile-container {
        padding: 10px;
    }
    
    .coddb-profile-username {
        font-size: 2rem;
    }
    
    .coddb-profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .coddb-profile-stats {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .coddb-profile-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .coddb-profile-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .achievement-modal-content,
    .avatar-modal-content {
        width: 95%;
        padding: 16px;
    }
    
    .achievement-modal-stats {
        grid-template-columns: 1fr;
    }
    
    .coddb-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .coddb-profile-edit-container {
        padding: 16px;
    }
    
    .coddb-profile-edit-title {
        font-size: 2rem;
    }
    
    .coddb-profile-edit-form {
        padding: 20px;
    }
    
    .coddb-profile-edit-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .coddb-profile-edit-field-group {
        grid-template-columns: 1fr;
    }
    
    .coddb-profile-edit-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .coddb-profile-edit-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .coddb-profile-username {
        font-size: 1.5rem;
    }
    
    .coddb-profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .coddb-profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .coddb-profile-stat-value {
        font-size: 1.4rem;
    }
    
    .coddb-profile-stat-label {
        font-size: 0.8rem;
    }

    .coddb-profile-edit-title {
        font-size: 1.5rem;
    }
    
    .coddb-profile-edit-form {
        padding: 16px;
    }
    
    .coddb-profile-edit-section {
        padding: 16px;
    }
    
    .coddb-profile-edit-field input,
    .coddb-profile-edit-field select,
    .coddb-profile-edit-field textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
} 