/* User Info Compact */
.user-info-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--card-background);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

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

/* User Section */
.user-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 2rem;
}

.user-info {
    background-color: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--accent-color);
}

.user-avatar {
    font-size: 2.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-email {
    font-size: 1.1rem;
    font-weight: 600;
}

.user-details button {
    align-self: flex-start;
}

/* Profiles Header */
.profiles-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profiles-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profiles-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* No Profiles Message */
.no-profiles-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background-color: var(--card-background);
    border-radius: 1rem;
    border: 2px dashed var(--accent-color);
}

.no-profiles-message p {
    margin: 0.5rem 0;
}

.no-profiles-message p:first-child {
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* Auth Container */
.auth-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    padding: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Login Section */
.login-section {
    width: 100%;
    max-width: 400px;
}

.login-form {
    background-color: var(--card-background);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--accent-color);
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Profiles Section */
.profiles-section {
    width: 100%;
    max-width: 800px;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.auth-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

/* PIN Modal */
.pin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pin-display {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pin-dot {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.pin-dot.filled {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.pin-keyboard {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pin-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.pin-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--text-primary);
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pin-btn:hover {
    background-color: var(--primary-color);
}

.pin-btn.pin-special {
    background-color: var(--card-background);
    font-size: 0.9rem;
    width: auto;
    min-width: 3rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
}

.pin-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Profile Cards */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.profile-card {
    background-color: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
    width: 150px;
    height: 150px;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.profile-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

.profile-badge {
    background-color: var(--primary-color);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.profile-edit-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    min-width: 100px;
}

/* Profile Form */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
}

.avatar-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.avatar-option {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.avatar-option:hover {
    background-color: var(--card-background);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    background-color: var(--card-background);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-danger {
    background-color: var(--error-color);
    color: var(--text-primary);
}

.btn-danger:hover {
    background-color: #CC3344;
}

/* User Options Modal */
.user-options-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.user-info-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--accent-color);
    border-radius: 1rem;
}

.user-avatar-large {
    font-size: 4rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: var(--card-background);
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-email-display {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Register and Recover Forms */
.register-form, .recover-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recover-form p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
}

/* Confirm Delete Modal */
.confirm-delete {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.confirm-delete p {
    text-align: center;
    color: var(--text-secondary);
}

.confirm-delete span {
    color: var(--error-color);
    font-weight: 600;
}

/* Content Cards */
.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background-color: var(--card-background);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.content-card.featured {
    grid-column: span 2;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Fantasy Team */
.fantasy-team {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.team-formation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.player-slot {
    background-color: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-slot:hover {
    background-color: var(--accent-color);
}

.player-avatar {
    font-size: 2rem;
}

.player-name {
    font-weight: 600;
}

.team-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Tournaments */
.tournaments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tournament-card {
    background-color: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tournament-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.tournament-status.live {
    background-color: var(--error-color);
}

.tournament-status.upcoming {
    background-color: var(--warning-color);
}

.tournament-details {
    margin-bottom: 1rem;
}

/* News */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    gap: 1rem;
    background-color: var(--card-background);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-image {
    width: 150px;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Profile Details */
.profile-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar-large {
    font-size: 4rem;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--card-background);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-card.featured {
        grid-column: span 1;
    }
    
    .team-formation {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-details {
        flex-direction: column;
        text-align: center;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-image {
        width: 100%;
        height: 150px;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .profile-card {
        width: 120px;
        height: 120px;
    }
    
    .pin-row {
        gap: 0.25rem;
    }
    
    .pin-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .login-form {
        padding: 1.5rem;
    }
    
    .profiles-header h2 {
        font-size: 1.5rem;
    }
    
    .user-info-compact {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .auth-container {
        padding: 1rem;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
}
