/* style_tienda.css - Estilos OPTIMIZADOS para PC y Móvil */

/* ===== RESET BÁSICO ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: 
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.5) 25%,
            rgba(0, 0, 0, 0.8) 55%,
            rgba(0, 0, 0, 0.95) 70%,
            rgb(0, 0, 0) 95%
        ),
        url('fondo.png') center/cover no-repeat fixed;
    min-height: 100vh;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.6;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.shop-container {
    width: 100%;
    min-height: 100vh;
}

/* ===== LAYOUT DESKTOP ===== */
.desktop-layout {
    width: 100%;
    display: block;
}

/* Header Desktop */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px 20px 40px;
    width: 100%;
}

.user-actions {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logo-section {
    flex: 1;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.shop-logo {
    width: 600px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 0 35px rgba(36, 11, 0, 0.7))
            drop-shadow(0 0 20px rgba(56, 13, 0, 0.6));
}

.cart-section {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* ===== BOTONES ===== */
.auth-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #0a0a0a;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 4px 20px rgba(45, 14, 0, 0.7);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 60, 0, 0.9);
}

.cart-btn {
    background: rgba(15, 13, 10, 0.9);
    border: 2px solid rgba(255, 165, 0, 0.8);
    color: #ffa500;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 4px 20px rgba(255, 80, 0, 0.6);
}

.cart-btn:hover {
    background: rgba(15, 13, 10, 0.95);
    box-shadow: 0 0 25px rgba(255, 80, 0, 0.8);
}

/* ===== MENÚ DE USUARIO ===== */
.user-menu {
    position: relative;
}

.user-btn {
    background: rgba(15, 13, 10, 0.9);
    border: 2px solid rgba(32, 21, 0, 0.8);
    color: #ffa500;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    box-shadow: 0 4px 20px rgba(72, 23, 0, 0.6);
}

.user-btn:hover {
    background: rgba(15, 13, 10, 0.95);
    border-color: #ffa500;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 165, 0, 0.1);
}

.skin-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 13, 10, 0.98);
    border: 1px solid rgba(255, 165, 0, 0.5);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(36, 11, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #d4a574;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
}

.dropdown-item:hover {
    background: rgba(255, 165, 0, 0.1);
    color: #ffa500;
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 165, 0, 0.3);
    margin: 8px 0;
}

/* ===== NAVEGACIÓN DESKTOP ===== */
.shop-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    padding: 0 20px;
    margin-top: 20px;
}

.nav-btn {
    color: #0a0a0a;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    box-shadow: 0 4px 20px rgba(255, 80, 0, 0.7);
    min-width: 150px;
    justify-content: center;
}

.nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(255, 70, 0, 0.9);
}

.nav-btn.active {
    background: linear-gradient(135deg, #ffb300 0%, #ff9800 100%);
    transform: translateY(-2px);
}

/* ===== CONTENIDO PRINCIPAL ===== */
.main-content {
    width: 100%;
}

/* ===== LAYOUT PRINCIPAL 20% / 75% ===== */
.content-layout {
    display: flex;
    gap: 30px;
    padding: 0 40px 60px 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

/* Columna izquierda - Top Donadores (20%) */
.top-donadores-column {
    flex: 0 0 20%;
    max-width: 20%;
}

/* Columna derecha - Información (75%) */
.info-column {
    flex: 0 0 75%;
    max-width: 75%;
}

/* ===== SECCIÓN TOP DONADORES ===== */
.top-donadores-section {
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.section-header h2 {
    color: #ffa500;
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-subtitle {
    color: #d4a574;
    font-size: 0.9rem;
    font-weight: 500;
}

.donadores-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CLASES ESPECÍFICAS PARA CADA TIPO DE DONADOR */
.donador-card {
    background: linear-gradient(135deg, rgba(23, 23, 23, 0.95) 0%, rgba(35, 35, 35, 0.9) 100%);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.donador-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.donador-card-gold {
    border: 2px solid #ffd700;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.donador-card-gold::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

.donador-card-silver {
    border: 2px solid #c0c0c0;
    box-shadow: 0 8px 25px rgba(192, 192, 192, 0.3);
}

.donador-card-silver::before {
    background: linear-gradient(90deg, #c0c0c0, #e8e8e8, #c0c0c0);
}

.donador-card-bronze {
    border: 2px solid #cd7f32;
    box-shadow: 0 8px 25px rgba(205, 127, 50, 0.3);
}

.donador-card-bronze::before {
    background: linear-gradient(90deg, #cd7f32, #e39d5c, #cd7f32);
}

.donador-card:hover {
    transform: translateY(-3px);
}

/* CONTENIDO CENTRADO DE DONADORES */
.donador-medal {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.donador-avatar {
    width: 120px;
    height: 180px;

}

.donador-avatar img {
    width: 100%;
    height: 100%;   
    object-fit: contain;
    border-radius: 8px;
}

.donador-username {
    color: #ffa500;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 10px 0;
    text-align: center;
}

.donador-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donador-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 200px;
}

.donador-amount, .donador-rank {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 165, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 165, 0, 0.3);
    font-size: 0.85rem;
}

.amount-label, .rank-label {
    color: #d4a574;
    font-weight: 500;
}

.amount-value {
    color: #ffd700;
    font-weight: 700;
}

.rank-value {
    color: #ffa500;
    font-weight: 700;
}

/* ===== CUADRO DE INFORMACIÓN ===== */
.info-section {
    width: 100%;
}

.info-container {
    background: rgba(15, 13, 10, 0.95);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(255, 80, 0, 0.3);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.info-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffc107, #ff9800, #ff5722);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 165, 0, 0.3);
}

.info-header h2 {
    color: #ffa500;
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.info-badge {
    background: linear-gradient(135deg, #bf7c00 0%, #fff200 100%);
    color: #000;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid #ffd700;
}

.info-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    background: rgba(255, 165, 0, 0.05);
    border: 1px solid rgba(255, 165, 0, 0.2);
    border-radius: 10px;
    padding: 18px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.4);
    transform: translateY(-2px);
}

.info-item h3 {
    color: #ffc107;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.info-item p {
    color: #d4a574;
    margin: 6px 0;
    line-height: 1.5;
    font-size: 0.9rem;
}

.info-footer {
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
}

.info-footer p {
    color: #ffa500;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.shop-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px;
    width: 100%;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.shop-footer .footer {
    color: #8b6f47;
    font-size: 0.9rem;
}

/* ===== LAYOUT MÓVIL ===== */
.mobile-layout {
    display: none;
    width: 100%;
}

.mobile-header {
    padding: 20px 15px;
    text-align: center;
}

.mobile-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.mobile-logo .shop-logo {
    width: 350px;
    height: 105px;
    object-fit: contain;
}

.mobile-actions-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 15px;
    margin-bottom: 40px;
}

.mobile-nav-grid .nav-btn {
    min-width: auto;
    padding: 14px 10px;
    font-size: 0.8rem;
    margin: 0;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    width: 100%;
}

/* ===== ESTILOS PARA SILUETAS ===== */
.donador-card.placeholder {
    opacity: 0.7;
}

.silhouette-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.placeholder-text {
    color: #888 !important;
    font-style: italic;
}

.donador-card.placeholder .donador-username {
    color: #888;
}

.donador-card.placeholder .amount-value,
.donador-card.placeholder .rank-value {
    color: #888 !important;
}

/* ===== RESPONSIVE ===== */

/* DESKTOP (769px en adelante) */
@media (min-width: 769px) {
    .desktop-layout {
        display: block !important;
    }
    
    .mobile-layout {
        display: none !important;
    }
}

/* MÓVIL (768px o menos) */
@media (max-width: 768px) {
    .desktop-layout {
        display: none !important;
    }
    
    .mobile-layout {
        display: block !important;
    }
    
    .content-layout {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px 40px 15px;
    }
    
    .top-donadores-column,
    .info-column {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }
    
    .info-container {
        padding: 25px;
    }
    
    .info-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .info-header h2 {
        font-size: 1.6rem;
    }
    
    .user-dropdown {
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        min-width: 180px;
    }
    
    .user-dropdown.show {
        transform: translateX(-50%) translateY(5px);
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* Top Donadores en móvil - Mantener centrado */
    .donador-card {
        padding: 15px;
    }
    
    .donador-avatar {
        width: 100px;
        height: 150px;
    }
    
    .donador-username {
        font-size: 1.1rem;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .mobile-logo .shop-logo {
        width: 280px;
        height: 84px;
    }
    
    .mobile-actions-row {
        gap: 10px;
        margin-bottom: 30px;
    }
    
    .mobile-actions-row .auth-btn,
    .mobile-actions-row .user-btn,
    .mobile-actions-row .cart-btn {
        min-width: 120px;
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .mobile-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }
    
    .mobile-nav-grid .nav-btn {
        padding: 12px 8px;
        font-size: 0.75rem;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
    }
    
    .info-container {
        padding: 20px;
    }
    
    .info-header h2 {
        font-size: 1.4rem;
    }
    
    .info-item {
        padding: 12px;
    }
    
    .info-item h3 {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .donador-avatar {
        width: 90px;
        height: 135px;
    }
    
    .donador-card {
        padding: 12px;
    }
    
    .donador-stats {
        max-width: 100%;
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .mobile-logo .shop-logo {
        width: 240px;
        height: 72px;
    }
    
    .mobile-actions-row {
        flex-direction: column;
        align-items: center;
    }
    
    .mobile-actions-row .auth-btn,
    .mobile-actions-row .user-btn,
    .mobile-actions-row .cart-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .mobile-nav-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-nav-grid .nav-btn {
        padding: 14px 20px;
        font-size: 0.85rem;
    }
    
    .content-layout {
        padding: 0 10px 30px 10px;
        gap: 20px;
    }
    
    .donador-avatar {
        width: 80px;
        height: 120px;
    }
    
    .donador-medal {
        font-size: 2rem;
    }
    
    .donador-username {
        font-size: 1rem;
    }
}