/* Tennis Pyramide Profile Styles */

/* Profile Header */
.tp-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tp-profile-header h2 {
    margin: 0;
    color: #333;
    font-size: 28px;
}

/* Toggle Button */
#tp-toggle-edit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

#tp-toggle-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Profile Display */
.tp-profile-display {
    animation: fadeIn 0.3s ease;
}

.tp-profile-edit {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Profile Card */
.tp-profile-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.tp-profile-card .tp-player-photo {
    margin-right: 30px;
}

.tp-placeholder-photo.large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tp-profile-info h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

/* Contact and Social Sections */
.tp-contact-display,
.tp-social-display {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.tp-contact-display h4,
.tp-social-display h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.tp-contact-display h4::before {
    content: "📞";
    margin-right: 10px;
}

.tp-social-display h4::before {
    content: "🌐";
    margin-right: 10px;
}

/* Social Media Buttons */
.tp-social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.tp-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 44px;
    height: 44px;
    font-size: 18px; /* Emoji size */
    line-height: 1;
    margin-right: 0;
    color: white !important;
}



/* Social Media Brand Colors */
.tp-social-btn.mybigpoint {
    background: #2196F3;
}

.tp-social-btn.instagram {
    background: #E4405F;
}

.tp-social-btn.tiktok {
    background: #000000;
}

.tp-social-btn.facebook {
    background: #1877F2;
}

/* Custom Social Media Icons */
.tp-icon {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    filter: brightness(0) invert(1); /* Makes icons white */
}

.tp-icon-facebook {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E") !important;
}

.tp-icon-instagram {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E") !important;
}

.tp-icon-tiktok {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.59 6.69a4.83 4.83 0 01-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 01-5.2 1.74 2.89 2.89 0 012.31-4.64 2.93 2.93 0 01.88.13V9.4a6.84 6.84 0 00-.88-.05A6.33 6.33 0 005 20.1a6.34 6.34 0 0010.86-4.43v-7a8.16 8.16 0 004.77 1.52v-3.4a4.85 4.85 0 01-1-.1z'/%3E%3C/svg%3E") !important;
}

.tp-icon-tennis {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' stroke='currentColor' stroke-width='2' fill='none'/%3E%3Cpath d='M2 12h20M12 2c-5.5 3-5.5 15 0 20M12 2c5.5 3 5.5 15 0 20' stroke='currentColor' stroke-width='1' fill='none'/%3E%3C/svg%3E") !important;
}

/* Bio and Playing Times Sections */
.tp-bio-section,
.tp-times-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.tp-bio-section h4,
.tp-times-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.tp-bio-text,
.tp-times-text {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 14px;
}

/* Profile Actions */
.tp-profile-actions {
    margin-top: 20px;
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.tp-view-full-profile {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tp-view-full-profile:hover {
    background: #005a87;
    transform: translateY(-1px);
}

/* Clickable Profile Photo */
.tp-photo-clickable {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tp-photo-clickable:hover {
    transform: scale(1.05);
}

.tp-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 12px;
}

.tp-photo-clickable:hover .tp-photo-overlay {
    opacity: 1;
}

.tp-photo-overlay i {
    font-size: 20px;
    margin-bottom: 4px;
}

.tp-photo-overlay span {
    font-size: 10px;
    font-weight: 500;
}

/* Clickable Profile Photo */
.tp-photo-clickable {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tp-photo-clickable:hover {
    transform: scale(1.05);
}

.tp-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 12px;
}

.tp-photo-clickable:hover .tp-photo-overlay {
    opacity: 1;
}

.tp-photo-overlay i {
    font-size: 20px;
    margin-bottom: 4px;
}

.tp-photo-overlay span {
    font-size: 10px;
    font-weight: 500;
}

.tp-social-btn.mybigpoint {
    background: #2196F3;
}

.tp-social-btn.instagram {
    background: #E4405F;
}

.tp-social-btn.tiktok {
    background: #000000;
}

.tp-social-btn.facebook {
    background: #1877F2;
}

/* Form Styles */
.tp-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tp-form-group {
    flex: 1;
}

.tp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.tp-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tp-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tp-checkbox {
    display: flex;
    align-items: center;
    margin-top: 10px;
    font-weight: 400;
    color: #666;
}

.tp-checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: auto;
    transform: scale(1.2);
}

/* Form Actions */
.tp-form-actions {
    display: flex;
    gap: 15px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
    margin-top: 20px;
}

.tp-form-actions .button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tp-form-actions .button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.tp-form-actions .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Status Badge */
.tp-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tp-status-badge.active {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tp-status-badge.inactive {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Visibility Indicator */
.tp-visibility {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

/* Loading States */
.tp-loading {
    opacity: 0.7;
    pointer-events: none;
}

.tp-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tp-user-profile {
        padding: 15px;
    }
    
    .tp-profile-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .tp-profile-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    
    .tp-profile-card .tp-player-photo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .tp-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .tp-social-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .tp-social-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .tp-form-actions {
        flex-direction: column;
    }
    
    .tp-form-actions .button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tp-profile-header h2 {
        font-size: 24px;
    }
    
    .tp-profile-info h3 {
        font-size: 20px;
    }
    
    .tp-placeholder-photo.large {
        width: 100px;
        height: 100px;
        font-size: 30px;
    }
}

/* Success/Error Messages */
.tp-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.tp-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tp-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animation improvements */
.tp-profile-edit {
    background: #fafafa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.tp-profile-edit h4 {
    color: #333;
    margin: 20px 0 15px 0;
    font-size: 16px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

/* Full Profile Modal Styles */
.tp-full-profile-modal {
    max-width: 600px !important;
    max-height: 80vh;
    overflow-y: auto;
}

.tp-full-profile-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.tp-full-profile-header h2 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.tp-full-profile-header h3 {
    color: #666;
    margin: 0;
    font-size: 20px;
    font-weight: normal;
}

.tp-full-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.tp-full-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.tp-bio-content, .tp-times-content {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    line-height: 1.6;
    white-space: pre-wrap;
    font-size: 14px;
}

.tp-empty-field {
    color: #999;
    font-style: italic;
    padding: 15px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px dashed #ddd;
    text-align: center;
}

.tp-full-profile-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}