/* Photo Notifications System Styles */

/* === BADGE DE NOTIFICACIONES EN PERFIL === */
.option-card {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* === MODAL DE MIS FOTOS === */
.my-photos-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.my-photos-content {
    background: #1a1a1a;
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 900px;
    height: 700px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    animation: scaleIn 0.3s ease forwards;
}

.my-photos-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.my-photos-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.close-my-photos-modal {
    background: none;
    border: none;
    color: #aaa;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-my-photos-modal:hover {
    background: #333;
    color: #fff;
}

/* === TABS === */
.my-photos-tabs {
    display: flex;
    border-bottom: 1px solid #333;
    flex-shrink: 0;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #222;
    color: #fff;
}

.tab-btn.active {
    color: #00d4ff;
    background: #1a2a3a;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #00d4ff;
}

.tab-badge {
    background: #ff4757;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* === CONTENIDO DE TABS === */
.my-photos-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tab-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
    padding: 24px;
}

.tab-content.active {
    opacity: 1;
    visibility: visible;
}

/* === LOADING Y EMPTY STATES === */
.my-photos-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #aaa;
}

.my-photos-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.my-photos-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

.empty-state {
    text-align: center;
    color: #aaa;
}

.empty-state i {
    font-size: 64px;
    color: #333;
    margin-bottom: 16px;
}

.empty-state h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* === GRILLAS DE FOTOS === */
.pending-photos-grid,
.confirmed-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

/* === TARJETAS DE FOTOS PENDIENTES === */
.pending-photo-card {
    background: #222;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.pending-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: #00d4ff;
}

.photo-container {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pending-photo-card:hover .photo-container img {
    transform: scale(1.05);
}

.similarity-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 212, 255, 0.9);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.photo-info {
    padding: 16px 16px 12px;
}

.photo-info h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.photo-date {
    color: #aaa;
    font-size: 14px;
    margin: 0;
}

.photo-actions {
    padding: 0 16px 16px;
    display: flex;
    gap: 8px;
}

.photo-actions button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-approve {
    background: #00ff88;
    color: #000;
}

.btn-approve:hover {
    background: #00e67a;
    transform: translateY(-1px);
}

.btn-reject {
    background: #333;
    color: #aaa;
}

.btn-reject:hover {
    background: #ff4757;
    color: #fff;
}

/* === TARJETAS DE FOTOS CONFIRMADAS === */
.confirmed-photo-card {
    background: #222;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
    cursor: pointer;
    position: relative;
}

.confirmed-photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: #00ff88;
}

.confirmed-photo-card .photo-container {
    aspect-ratio: 16/10;
    position: relative;
    overflow: hidden;
}

.confirmed-photo-card .photo-container img {
    transition: transform 0.3s ease;
}

.confirmed-photo-card:hover .photo-container img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.confirmed-photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay i {
    font-size: 24px;
    margin-bottom: 8px;
}

.confirmed-photo-card .photo-info {
    padding: 16px;
}

/* === LIGHTBOX PARA FOTOS DEL PERFIL === */
.profile-photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.profile-photo-lightbox .lightbox-container {
    position: relative;
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
}

.profile-photo-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo-lightbox .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.profile-photo-lightbox .lightbox-header {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    color: white;
}

.profile-photo-lightbox .lightbox-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-photo-lightbox .lightbox-counter {
    font-size: 14px;
    color: #aaa;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.profile-photo-lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.profile-photo-lightbox .lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.profile-photo-lightbox .lightbox-prev {
    left: 20px;
}

.profile-photo-lightbox .lightbox-next {
    right: 20px;
}

.lightbox-actions-top {
    position: absolute;
    top: 20px;
    right: 80px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.lightbox-actions-top .action-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 18px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-actions-top .action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-actions-top .download-btn:hover {
    background: rgba(0, 212, 255, 0.8);
}

.lightbox-actions-top .info-btn:hover {
    background: rgba(0, 255, 136, 0.8);
}

.profile-photo-lightbox .lightbox-main-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-photo-lightbox .lightbox-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.profile-photo-lightbox .lightbox-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #333;
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.profile-photo-lightbox #profileLightboxImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.photo-info-panel {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px;
    border-radius: 12px;
    min-width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-info-panel h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #00d4ff;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-label {
    color: #aaa;
    font-weight: 500;
}

.info-value {
    color: white;
    font-weight: 600;
}

/* === RESPONSIVE LIGHTBOX === */
@media (max-width: 768px) {
    .profile-photo-lightbox .lightbox-container {
        width: 100vw;
        height: 100vh;
    }
    
    .profile-photo-lightbox .lightbox-close,
    .lightbox-actions-top .action-btn {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .profile-photo-lightbox .lightbox-header {
        top: 15px;
        left: 15px;
    }
    
    .profile-photo-lightbox .lightbox-title {
        font-size: 18px;
    }
    
    .profile-photo-lightbox .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .lightbox-actions-top {
        top: 15px;
        right: 70px;
        gap: 8px;
    }
    
    .photo-info-panel {
        bottom: 15px;
        left: 15px;
        right: 15px;
        min-width: auto;
        padding: 16px;
    }
    
    .photo-info-panel h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .info-item {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .profile-photo-lightbox .lightbox-close,
    .lightbox-actions-top .action-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .profile-photo-lightbox .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    .lightbox-actions-top {
        right: 60px;
    }
    
    .photo-info-panel {
        padding: 12px;
    }
    
    .photo-info-panel h4 {
        font-size: 15px;
    }
    
    .info-item {
        font-size: 12px;
        flex-direction: column;
        gap: 2px;
    }
    
    .info-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}

/* === INDICADOR DE CARGA DE ALTA RESOLUCIÓN === */
.high-res-loading-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 15;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.high-res-loading-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.high-res-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive para el indicador */
@media (max-width: 768px) {
    .high-res-loading-indicator {
        bottom: 15px;
        right: 15px;
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .high-res-spinner {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .high-res-loading-indicator {
        bottom: 80px;
        right: 15px;
        left: 15px;
        text-align: center;
        justify-content: center;
        padding: 8px 12px;
        font-size: 11px;
    }
}

/* === ANIMACIONES === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
    }
    to {
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinning {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinning {
    animation: spinning 1s linear infinite;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .my-photos-content {
        width: 95vw;
        height: 95vh;
        max-height: 95vh;
    }
    
    .my-photos-header {
        padding: 20px 16px 12px;
    }
    
    .my-photos-header h2 {
        font-size: 20px;
    }
    
    .tab-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .tab-content {
        padding: 16px;
    }
    
    .pending-photos-grid,
    .confirmed-photos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .photo-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .photo-actions button {
        width: 100%;
    }
    
    .empty-state i {
        font-size: 48px;
    }
    
    .empty-state h3 {
        font-size: 18px;
    }
    
    .empty-state p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .my-photos-content {
        border-radius: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
    }
    
    .my-photos-header {
        padding: 16px 12px 8px;
    }
    
    .my-photos-header h2 {
        font-size: 18px;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .tab-content {
        padding: 12px;
    }
    
    .pending-photos-grid,
    .confirmed-photos-grid {
        gap: 12px;
    }
    
    .photo-info {
        padding: 12px 12px 8px;
    }
    
    .photo-info h4 {
        font-size: 15px;
    }
    
    .photo-date {
        font-size: 13px;
    }
    
    .photo-actions {
        padding: 0 12px 12px;
    }
    
    .photo-actions button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .similarity-badge {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 11px;
    }
}

/* === MEJORAS DE ACCESIBILIDAD === */
button:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 2px;
}

.tab-btn:focus {
    outline: 2px solid #00d4ff;
    outline-offset: -2px;
}

/* === TEMA CLARO (OPCIONAL) === */
@media (prefers-color-scheme: light) {
    .my-photos-content {
        background: #fff;
        color: #000;
    }
    
    .my-photos-header {
        border-bottom-color: #eee;
    }
    
    .my-photos-header h2 {
        color: #000;
    }
    
    .close-my-photos-modal {
        color: #666;
    }
    
    .close-my-photos-modal:hover {
        background: #f0f0f0;
        color: #000;
    }
    
    .my-photos-tabs {
        border-bottom-color: #eee;
    }
    
    .tab-btn {
        color: #666;
    }
    
    .tab-btn:hover {
        background: #f8f8f8;
        color: #000;
    }
    
    .tab-btn.active {
        background: #e6f3ff;
    }
    
    .tab-content {
        color: #000;
    }
    
    .pending-photo-card,
    .confirmed-photo-card {
        background: #f8f8f8;
        border-color: #eee;
    }
    
    .pending-photo-card:hover,
    .confirmed-photo-card:hover {
        border-color: #00d4ff;
    }
    
    .photo-info h4 {
        color: #000;
    }
    
    .photo-date {
        color: #666;
    }
    
    .btn-reject {
        background: #f0f0f0;
        color: #666;
    }
    
    .empty-state {
        color: #666;
    }
    
    .empty-state i {
        color: #ddd;
    }
    
    .empty-state h3 {
        color: #000;
    }
}