/* profile.css */

.profile-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.glass-panel {
    background: rgba(20, 38, 61, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.profile-card {
    width: 100%;
    max-width: 500px;
    padding: 40px 30px;
    text-align: center;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-header {
    margin-bottom: 30px;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #3a0ca3 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 15px rgba(77, 121, 255, 0.4);
}

.avatar-placeholder i {
    font-size: 2.5rem;
    color: white;
}

.profile-header h2 {
    font-family: 'Comfortaa', sans-serif;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 1.6rem;
}

.email-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-form {
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--accent-blue);
    margin-right: 5px;
}

.glass-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(15, 32, 49, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(77, 121, 255, 0.15);
    background: rgba(15, 32, 49, 1);
}

.search-input-box {
    position: relative;
}

.search-input-box .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-box .glass-input {
    padding-left: 45px;
    padding-right: 40px;
}

.search-spinner {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-blue);
}

.team-results {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    background: var(--tertiary-bg);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none;
}

.team-results.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.team-result-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.team-result-item:last-child {
    border-bottom: none;
}

.team-result-item:hover {
    background: rgba(255,255,255,0.05);
}

.team-result-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    background: white;
    border-radius: 5px;
    padding: 2px;
}

.current-team-display {
    display: flex;
    align-items: center;
    background: rgba(15, 32, 49, 0.8);
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#current-team-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 3px;
    margin-right: 15px;
}

#current-team-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
}

.change-btn {
    background: transparent;
    border: none;
    color: var(--accent-blue);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.change-btn:hover {
    background: rgba(77, 121, 255, 0.1);
    transform: rotate(15deg);
}

.save-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #3a0ca3 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 121, 255, 0.3);
}

.save-btn:active {
    transform: translateY(0);
}

/* View Mode Styles */
.profile-view-mode {
    background: rgba(15, 32, 49, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    animation: fadeIn 0.4s ease;
}

.info-group {
    margin-bottom: 15px;
    text-align: left;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.team-info-val {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
}

.view-team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    background: white;
    border-radius: 5px;
    padding: 2px;
}

.no-team-text {
    color: var(--accent-red);
    font-size: 0.9rem;
    font-style: italic;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: none;
    transition: all 0.3s ease;
}
.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}
