/* ====================================
   ARCHIVO: assets/css/tc-barista.css
   REEMPLAZAR TODO EL CONTENIDO
   ==================================== */

/* === FORMULARIOS === */
.tc-form {
    max-width: 520px;
    padding: 16px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
}

.tc-form p {
    margin: 8px 0;
}

.tc-form input,
.tc-form textarea {
    width: 100%;
    padding: 8px;
}

.tc-msg.ok {
    padding: 10px;
    background: #eaffea;
    border: 1px solid #bde5bd;
    border-radius: 6px;
}

.tc-profile {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.tc-profile__avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* === BUSCADOR ESTILO HERO === */
.tc-directory-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tc-search-box-hero {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    gap: 0;
}

.tc-search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 0 20px;
}

.tc-search-input-group input {
    border: none;
    outline: none;
    font-size: 16px;
    width: 100%;
    padding: 12px 0;
    color: #333;
    background: transparent;
}

.tc-search-input-group input::placeholder {
    color: #999;
}

.tc-search-divider {
    width: 1px;
    height: 40px;
    background: #e0e0e0;
    flex-shrink: 0;
}

.tc-btn-search-primary {
    background: #D4A373;
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tc-btn-search-primary:hover {
    background: #c08d5a;
    transform: scale(1.05);
}

.tc-btn-clear-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-left: 5px;
}

.tc-btn-clear-filters:hover {
    background: #e0e0e0;
    color: #333;
}

/* === GRID DE BARISTAS (3 COLUMNAS) === */
.tc-barista-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tc-barista-card {
    background: white;
    padding: 40px 30px;
    border-radius: 3rem;
    border: 2px solid rgba(212, 163, 115, 0.1);
    text-align: center;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tc-barista-card:hover {
    border-color: rgba(212, 163, 115, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.tc-barista-card.verified {
    border: 2px solid #4CAF50;
    background: linear-gradient(to bottom, white, rgba(76, 175, 80, 0.03));
    box-shadow: 0 25px 50px rgba(76, 175, 80, 0.15);
}

.tc-verified-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.tc-barista-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FDFBF7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tc-barista-card.verified .tc-barista-avatar {
    border-color: #4CAF50;
}

.tc-barista-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tc-barista-name {
    font-size: 24px;
    font-weight: 800;
    color: #3E2723;
    margin: 0 0 8px 0;
}

.tc-barista-specialty {
    background: #3E2723;
    color: #E9C46A;
    font-size: 10px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tc-barista-bio {
    color: rgba(62, 39, 35, 0.6);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-style: italic;
    min-height: 60px;
    padding: 0 10px;
}

.tc-barista-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    color: rgba(62, 39, 35, 0.5);
}

.tc-meta-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
}

.tc-btn-ver-perfil {
    width: 100%;
    padding: 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 13px;
    background: #FDFBF7;
    color: #D4A373;
    border: 2px solid rgba(212, 163, 115, 0.2);
    text-decoration: none;
    display: block;
    transition: all 0.3s;
    letter-spacing: 0.05em;
}

.tc-btn-ver-perfil:hover {
    background: #D4A373;
    color: white;
    border-color: #D4A373;
}

.tc-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* === PAGINACIÓN === */
.tc-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.tc-page-btn {
    padding: 10px 18px;
    border: 2px solid rgba(212, 163, 115, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: #3E2723;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.tc-page-btn:hover {
    background: #FDFBF7;
    border-color: #D4A373;
}

.tc-page-btn.active {
    background: #3E2723;
    color: #E9C46A;
    border-color: #3E2723;
}

/* === PERFIL PÚBLICO === */
.tc-profile-public img {
    border-radius: 50%;
    width: 140px;
    height: 140px;
    object-fit: cover;
}

.tc-profile-public h1 {
    margin-bottom: .3em;
}

.tc-profile-public .meta {
    color: #555;
}

.tc-profile-public .tc-btn {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #111;
    border-radius: 10px;
    text-decoration: none;
    background: #fff;
}

.tc-profile-public .tc-btn:hover {
    background: #111;
    color: #fff;
}

/* === MENSAJES DE ERROR === */
#tc-register-errors .tc-msg {
    background: #fff3f3;
    border: 1px solid #f5c2c2;
    color: #222;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
}

#tc-register-errors ul {
    margin: 8px 0 0 18px;
}

/* === GRID ANTIGUO (mantener compatibilidad) === */
.tc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.tc-card {
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
}

.tc-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 8px auto;
}

.tc-card h4 {
    margin: 8px 0 4px;
    font-size: 1rem;
    display: block;
}

.tc-card h4 a {
    text-decoration: none;
}

.tc-card h4 a:hover {
    text-decoration: underline;
}

.tc-btn {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #111;
    border-radius: 8px;
    text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .tc-search-box-hero {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 15px;
    }
    
    .tc-search-input-group {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .tc-profile {
        flex-direction: column;
        align-items: center;
    }
    
    .tc-barista-grid {
        grid-template-columns: 1fr;
    }
    
    .tc-search-box-hero {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
    }
    
    .tc-search-divider {
        width: 100%;
        height: 1px;
        margin: 10px 0;
    }
    
    .tc-search-input-group {
        padding: 0;
        width: 100%;
    }
    
    .tc-btn-search-primary {
        width: 100%;
        margin-top: 15px;
    }
    
    .tc-btn-clear-filters {
        width: 100%;
        border-radius: 12px;
        margin-left: 0;
        margin-top: 10px;
        height: 50px;
    }
    
    .tc-profile-public .tc-head {
        flex-direction: column !important;
        text-align: center;
    }
    
    .tc-profile-public .tc-data {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .tc-barista-card {
        padding: 30px 20px;
    }
    
    .tc-profile__avatar img {
        width: 100px;
        height: 100px;
    }
    
    .tc-card img {
        width: 80px;
        height: 80px;
    }
}

/* === PERFIL PÚBLICO V2 === */
.tc-profile-public-v2 {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* HEADER DEL PERFIL */
.tc-profile-header {
    display: flex;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
    padding: 40px;
    background: white;
    border-radius: 3rem;
    border: 2px solid rgba(212, 163, 115, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tc-profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.tc-profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #FDFBF7;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tc-profile-verified-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #4CAF50;
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    z-index: 10;
}

.tc-profile-intro {
    flex: 1;
}

.tc-profile-name {
    font-size: 40px;
    font-weight: 900;
    color: #3E2723;
    margin: 0 0 12px 0;
    line-height: 1.1;
}

.tc-profile-specialty {
    background: #3E2723;
    color: #E9C46A;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tc-profile-meta-row {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tc-profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(62, 39, 35, 0.6);
    font-size: 15px;
    font-weight: 600;
}

.tc-profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tc-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.02em;
}

.tc-profile-btn-primary {
    background: #D4A373;
    color: white;
    border: 2px solid #D4A373;
}

.tc-profile-btn-primary:hover {
    background: #c08d5a;
    border-color: #c08d5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.3);
}

.tc-profile-btn-secondary {
    background: white;
    color: #3E2723;
    border: 2px solid rgba(212, 163, 115, 0.3);
}

.tc-profile-btn-secondary:hover {
    background: #FDFBF7;
    border-color: #D4A373;
    transform: translateY(-2px);
}

/* SECCIONES */
.tc-profile-section {
    margin-bottom: 40px;
    padding: 40px;
    background: white;
    border-radius: 2.5rem;
    border: 2px solid rgba(212, 163, 115, 0.1);
}

.tc-profile-section-title {
    font-size: 28px;
    font-weight: 900;
    color: #3E2723;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(212, 163, 115, 0.1);
}

.tc-profile-description {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(62, 39, 35, 0.8);
    margin: 0;
}

/* GRID DE INFO */
.tc-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tc-profile-info-box {
    padding: 20px;
    background: #FDFBF7;
    border-radius: 1.5rem;
    border: 1px solid rgba(212, 163, 115, 0.1);
}

.tc-profile-info-label {
    font-size: 12px;
    font-weight: 800;
    color: rgba(62, 39, 35, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.tc-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tc-profile-badge {
    background: #3E2723;
    color: #E9C46A;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 50px;
    letter-spacing: 0.03em;
}

.tc-profile-badge-secondary {
    background: #D4A373;
    color: white;
}

.tc-profile-text {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(62, 39, 35, 0.8);
}

/* BOTÓN VOLVER */
.tc-profile-back {
    text-align: center;
    margin-top: 40px;
}

.tc-profile-btn-back {
    display: inline-block;
    padding: 12px 28px;
    background: #f5f5f5;
    color: #3E2723;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
}

.tc-profile-btn-back:hover {
    background: #e8e8e8;
    transform: translateX(-4px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tc-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
    
    .tc-profile-avatar {
        width: 140px;
        height: 140px;
    }
    
    .tc-profile-name {
        font-size: 32px;
    }
    
    .tc-profile-meta-row {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .tc-profile-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .tc-profile-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tc-profile-section {
        padding: 24px 20px;
    }
    
    .tc-profile-section-title {
        font-size: 24px;
    }
    
    .tc-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tc-profile-public-v2 {
        padding: 20px 10px;
    }
    
    .tc-profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .tc-profile-name {
        font-size: 28px;
    }
}