/* ===================================
   CONJUGACIÓN DE VERBOS - ESTILOS PRINCIPALES
   =================================== */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #002395 0%, #1e3a8a 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===================================
   HEADER
   =================================== */
.header {
    margin-bottom: 2rem;
    color: white;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-main {
    text-align: center;
    flex: 1;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher select {
    background: white;
    border: none;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-width: 140px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    box-sizing: border-box;
    height: 36px;
}

.language-switcher select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.language-switcher select:focus {
    outline: none;
    transform: translateY(-1px);
}

.language-switcher option {
    background: #333;
    color: white;
    padding: 0.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
}

.about-link-header {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
    line-height: 1;
    box-sizing: border-box;
    height: 36px;
}

.about-link-header:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}



/* ===================================
   BANNER MOTIVACIONAL
   =================================== */
.motivational-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 1rem 2rem;
    margin: 1rem auto 2rem auto;
    max-width: 800px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
    transition: all 0.3s ease;
}

.motivational-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.motivational-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #ffd700;
    font-weight: 500;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

/* ===================================
   SECCIÓN DE CONFIGURACIÓN
   =================================== */
.config-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.config-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.config-group select {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.config-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* ===================================
   SECCIÓN DE PRÁCTICA
   =================================== */
.practice-section {
    margin-bottom: 2rem;
}

.verb-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.verb-info {
    text-align: center;
    margin-bottom: 2rem;
}

.verb-info h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.verb-info p {
    color: #666;
    font-size: 1.1rem;
}

/* ===================================
   GRILLA DE CONJUGACIÓN
   =================================== */
.conjugation-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}



.pronoun {
    font-weight: 600;
    color: #555;
    text-align: right;
    padding-right: 1rem;
}

.conjugation-input {
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.conjugation-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.conjugation-input.correct {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.conjugation-input.incorrect {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Estilos para mostrar respuesta correcta junto al input del usuario */
.conjugation-comparison {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: 100%;
    align-items: flex-start;
}

.answer-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.user-answer {
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 6px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.user-answer.correct {
    background-color: #f0fdf4;
    border-color: #10b981;
    color: #065f46;
}

.user-answer.incorrect {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.user-answer.empty {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.correct-answer {
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 6px;
    background-color: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
    font-weight: 500;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.answer-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vs-separator {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #6b7280;
    margin-top: 1.2rem;
}

/* ===================================
   CONTROLES
   =================================== */
.controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

/* ===================================
   ENLACE DE CONSULTA
   =================================== */
.conjugation-link {
    text-align: center;
    margin-top: 1rem;
}

.conjugation-query-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e1e5e9;
}

.conjugation-query-link:hover {
    color: #4f46e5;
    background: #eff6ff;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* ===================================
   SECCIÓN DE RECOMENDACIÓN
   =================================== */
.app-recommendation-section {
    margin-top: 3rem;
}

.recommendation-banner {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
}

.recommendation-banner h2 {
    color: #374151;
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.recommendation-banner > p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.recommendation-action {
    position: relative;
    z-index: 1;
}

.recommendation-banner .btn {
    background: #667eea;
    color: white;
    font-weight: 500;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #667eea;
}

.recommendation-banner .btn:hover {
    background: #5a67d8;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    text-align: center;
    margin-top: 2rem;
    color: white;
    opacity: 0.9;
    padding: 2rem 0;
}

.footer .footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer .about-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.footer .about-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.footer .coffee-link {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.footer .coffee-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
}

.footer .developer-credit {
    margin-top: 1rem;
}

.footer .developer-credit p {
    font-size: 1rem;
    line-height: 1.6;
}

.footer .developer-credit a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer .developer-credit a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .language-switcher select {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .motivational-banner {
        padding: 0.8rem 1.5rem;
        margin: 0.8rem auto 1.5rem auto;
        max-width: 95%;
    }
    
    .motivational-quote {
        font-size: 1rem;
    }
    
    .config-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .language-switcher {
        min-width: auto;
    }
    
    .conjugation-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .conjugation-comparison {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-answer,
    .correct-answer {
        font-size: 0.8rem;
        padding: 0.4rem;
        min-height: 35px;
    }
    
    .answer-label {
        font-size: 0.7rem;
    }
    
    .vs-separator {
        display: none;
    }
    
    .pronoun {
        text-align: left;
        padding-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .footer .footer-links {
        gap: 0.5rem;
    }
    
    .footer .about-link,
    .footer .coffee-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .footer .developer-credit p {
        font-size: 0.9rem;
    }
}

/* ===================================
   ANIMACIONES
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verb-card {
    animation: fadeIn 0.5s ease-out;
}

/* ===================================
   ESTADOS DE CARGA
   =================================== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   NOTIFICACIONES ELEGANTES
   =================================== */
.notification {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10000;
    min-width: 350px;
    max-width: 500px;
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-text {
    flex: 1;
}

.notification-text h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.notification-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f5f5f5;
    color: #666;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

/* Responsive para notificaciones */
@media (max-width: 768px) {
    .notification {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateY(-100px);
        min-width: auto;
        max-width: none;
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* ===================================
   ICONO DE AYUDA Y MODAL
   =================================== */
.tense-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.help-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.help-icon:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* Tooltip personalizado */
.custom-tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.help-icon::before {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.help-icon:hover .custom-tooltip,
.help-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 25px;
    border: none;
    border-radius: 10px;
    width: 85%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.modal p {
    color: #444;
    line-height: 1.8;
    font-size: 1rem;
    text-align: left;
}

.modal strong {
    color: #007bff;
    font-weight: 600;
}

.modal em {
    color: #666;
    font-style: italic;
    display: block;
    margin: 2px 0;
    padding-left: 10px;
    font-size: 12px;
    line-height: 1.4;
}

.modal-body {
    margin-top: 10px;
}

/* Estilos para el contenido del modal de tiempos verbales */
.tense-description {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
}

.tense-example {
    background: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tense-translations {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para modal */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 15px;
    }
}
