/* Social Page Styles */
.social-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.social-hero {
    position: relative;
    overflow: hidden;
}

/* ELIMINAR ESTA SECCIÓN COMPLETA */
/*
.social-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffff10" points="0,1000 1000,0 1000,1000"/></svg>');
    pointer-events: none;
}
*/

.btn-hero-social {
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Category Filter */
.category-filter {
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.category-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    background: white;
    color: #6b7280;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.category-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

/* Post Cards */
.post-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.post-header {
    border-bottom: 1px solid #f3f4f6;
}

.category-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.category-exercise {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.category-nutrition {
    background: linear-gradient(45deg, #26de81, #20bf6b);
    color: white;
}

.category-achievement {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    color: white;
}

.post-image img {
    max-height: 400px;
    object-fit: cover;
}

.hashtag {
    color: #667eea;
    font-weight: 600;
    font-size: 0.875rem;
}

.hashtag:hover {
    color: #764ba2;
    cursor: pointer;
}

/* Action Buttons */
.action-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.action-btn.active.liked {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
}

.action-btn.motivation {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    color: white;
    position: relative;
    overflow: hidden;
}

.action-btn.motivation:hover {
    background: linear-gradient(45deg, #ff9ff3, #feca57);
}

.action-btn.motivation.active.motivated {
    background: linear-gradient(45deg, #26de81, #20bf6b);
    animation: motivationPulse 0.6s ease;
}

@keyframes motivationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn-icon-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon-social:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-icon-post {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon-post:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Feed Create Button */
.feed-create-btn {
    flex: 1;
    background-color: #f3f4f6;
    border: none;
    border-radius: 9999px;
    padding: 12px 24px;
    text-align: left;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.feed-create-btn:hover {
    background-color: #e5e7eb;
}

/* Modal Styles - VERSIÓN FUNCIONAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-social {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
    position: relative;
    z-index: 10000;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 24px;
    background: white;
}

/* Category Options */
.category-option {
    cursor: pointer;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
}

.category-card:hover {
    border-color: #667eea;
    background: #f8faff;
    transform: translateY(-2px);
}

.category-option input:checked + .category-card {
    border-color: #667eea;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.category-option.selected .category-card {
    border-color: #667eea;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

/* Image Upload */
.image-upload-area {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.image-upload-area:hover {
    border-color: #667eea;
    background: #f8faff;
}

.upload-placeholder {
    cursor: pointer;
}

.image-preview {
    position: relative;
}

.preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
}

.remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn-primary-social {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-primary-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
    color: #374151;
}

.btn-load-more {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Comments */
.comment {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .social-hero h1 {
        font-size: 2.5rem !important;
    }
    
    .social-hero p {
        font-size: 1.125rem !important;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .post-card {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .action-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .modal-social {
        width: 95%;
        margin: 10px;
    }

    .modal-body {
        padding: 16px;
    }
    
    .btn-icon-social {
        display: none!important;
    }
    .category-badge {
        font-size: 5px!important;
    }
}

/* Animations */
.post-card {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading-posts {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-posts::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Action Button */
.fab-social {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab-social:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Success Animations */
.success-animation {
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Token Counter Animation */
.token-counter {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    animation: tokenGlow 2s ease infinite;
}

@keyframes tokenGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(254, 202, 87, 0.3); }
    50% { box-shadow: 0 0 20px rgba(254, 202, 87, 0.6); }
}

/* Post Options Menu */
.post-options-menu {
    max-width: 400px;
    width: 100%;
}

.option-item {
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    border-color: #e5e7eb;
    transform: translateY(-1px);
}

.options-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.options-footer {
    border-top: 1px solid #e5e7eb;
}

/* Report Form */
.report-form label {
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.report-form label:hover {
    background-color: #f9fafb;
}

.report-form input[type="radio"] {
    accent-color: #ef4444;
}

/* Post Options Dropdown */
.post-options-dropdown {
    position: fixed;
    z-index: 1000;
    animation: dropdownSlideIn 0.2s ease;
}

.dropdown-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    min-width: 200px;
    overflow: hidden;
}

.dropdown-item {
    display: flex;
    align-items: center;
    space-x: 12px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #f9fafb;
}

.dropdown-item i {
    width: 16px;
    margin-right: 12px;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}