/* public/assets/css/puririchiq.css */
:root {
    --color-primary: #D94552;       /* Rojo Cochenilla */
    --color-secondary: #5D4037;     /* Tierra */
    --color-accent: #0097A7;        /* Turquesa */
    --color-bg: #F9F7F2;            /* Blanco Hueso */
    --color-text: #333333;          /* Gris Lectura */
    --color-card: #FFFFFF;          /* Blanco Puro */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius-std: 12px;
}

body {
    background-color: var(--color-bg);
    font-family: 'Lato', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
}

/* --- Header Inspirado en Telares (Sutil) --- */
.navbar-custom {
    background-color: var(--color-card);
    border-bottom: 4px solid var(--color-primary); /* Línea de identidad */
    box-shadow: var(--shadow-soft);
    padding: 1rem;
}

.brand-logo {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    background: var(--color-primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%; /* Círculo perfecto */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* --- Hero Search (Buscador Central) --- */
.hero-section {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 2rem auto;
}

.search-input {
    width: 100%;
    padding: 1.2rem 3.5rem 1.2rem 1.5rem;
    border: 2px solid #E0E0E0;
    border-radius: 50px; /* Borde redondeado moderno */
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.search-input:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(217, 69, 82, 0.1);
}

.search-btn-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn-icon:hover {
    background-color: #b93542;
}

/* --- Tarjeta de Resultados (Card Design) --- */
.result-card {
    background: var(--color-card);
    border-radius: var(--radius-std);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--color-accent); /* Indicador visual */
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s;
}

.result-card:hover {
    transform: translateY(-2px);
}

.word-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.word-title {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    color: var(--color-primary);
    margin: 0;
}

.word-meta {
    font-size: 0.9rem;
    color: #888;
    background: #f0f0f0;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

/* --- Acciones (Audio & Voto) --- */
.action-bar {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.btn-audio {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-audio:hover {
    background: var(--color-accent);
    color: white;
}

/* --- Sistema de Votación --- */
.rating-stars {
    color: #FFC107; /* Dorado estándar para estrellas */
    font-size: 1.4rem;
    cursor: pointer;
}

.star-btn {
    transition: transform 0.2s;
    display: inline-block;
}

.star-btn:hover {
    transform: scale(1.2);
}

.rating-container.voted .star-btn {
    cursor: default;
    opacity: 0.7;
}

.rating-container.voted .star-btn:hover {
    transform: none;
}

/* --- Animaciones --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* --- Botones Sociales --- */
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.2s;
}

.btn-social:hover {
    opacity: 0.9;
    color: white;
    text-decoration: none;
}

.btn-whatsapp { background-color: #25D366; }
.btn-facebook { background-color: #3b5998; }
.btn-twitter { background-color: #1DA1F2; }
.btn-copy { background-color: #6c757d; }

/* --- Mobile Responsiveness --- */
 @media (max-width: 768px) {
    .word-title { font-size: 1.5rem; }
    .hero-section { padding: 2rem 1rem; }
}

/* --- Login & Register Forms --- */
.auth-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--color-bg);
}

.auth-card {
    background-color: var(--color-card);
    padding: 2.5rem;
    border-radius: var(--radius-std);
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
    text-decoration: none;
}

.auth-logo b {
    font-weight: inherit;
}

.auth-msg {
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-sizing: border-box;
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
    margin-bottom: 0;
}

.input-group-append {
    display: flex;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.75rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.input-group-text .fas {
    color: #666;
}

.btn-primary {
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

.btn-primary:hover {
    background-color: #b93542;
    border-color: #b93542;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.icheck-primary {
    text-align: left;
}
.icheck-primary input[type="checkbox"] {
    margin-right: 0.5rem;
}