/* assets/css/minhaty.css */

/* ===== Hero Section Minhaty ===== */
.minhaty-hero {
    background: linear-gradient(135deg, #0D2149 0%, #005A9E 50%, #0078D4 100%);
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

.minhaty-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.minhaty-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.minhaty-hero-overlay {
    position: relative;
    z-index: 2;
    padding: 70px 20px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

.minhaty-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.minhaty-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.minhaty-hero-title {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-family: var(--font-heading, 'Lora', serif);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.minhaty-hero-title .highlight {
    color: #D4A017;
    position: relative;
}

.minhaty-hero-subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.minhaty-hero-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.hero-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-step:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.step-number {
    width: 26px;
    height: 26px;
    background: #D4A017;
    color: #0D2149;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.hero-step-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Section de recherche */
.search-section {
    margin-bottom: 2rem;
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-title {
    font-size: 1.6rem;
    color: var(--color-primary-dark, #0D2149);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.search-subtitle {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.search-input-group {
    position: relative;
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #6c757d;
}

.search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-input:focus {
    outline: none;
    border-color: #005A9E;
    box-shadow: 0 0 0 3px rgba(0, 90, 158, 0.1);
    background: #fff;
}

.search-btn {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, #005A9E, #0D2149);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 90, 158, 0.25);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 90, 158, 0.35);
}

.clear-search-btn {
    padding: 0.85rem 1.5rem;
    background: #e2e8f0;
    color: #495057;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background: #cbd5e1;
    transform: translateY(-1px);
}

/* Section résultats */
.results-section {
    margin-bottom: 2rem;
}

.results-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Carte étudiant */
.student-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    animation: slideInUp 0.5s ease-out;
    border: 1px solid #e9ecef;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    background: linear-gradient(135deg, #0D2149, #005A9E);
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.student-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #D4A017;
}

.student-number {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.card-body {
    padding: 1.5rem;
}

.rdv-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #005A9E;
}

.info-label {
    font-weight: 500;
    color: #495057;
}

.info-value {
    font-weight: 600;
    color: #2c3e50;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-upcoming {
    background: #d4edda;
    color: #155724;
}

.status-today {
    background: #fff3cd;
    color: #856404;
}

.status-passed {
    background: #f8d7da;
    color: #721c24;
}

.card-footer {
    background: #f8f9fa;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.important-notes h5 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.important-notes ul {
    margin: 0;
    padding-left: 1.5rem;
}

.important-notes li {
    margin-bottom: 0.5rem;
    color: #495057;
    line-height: 1.4;
}

/* Section message */
.message-section {
    text-align: center;
    margin-bottom: 2rem;
}

.message-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.message-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.message-title {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.message-text {
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Multi-résultats */
.multi-results-section {
    margin-bottom: 2rem;
}

.minhaty-table {
    width: 100%;
    border-collapse: collapse;
}

.clickable-row {
    cursor: pointer;
    transition: background 0.2s ease;
}

.clickable-row:hover {
    background: #e8f4fd !important;
}

/* Responsive */
@media (max-width: 768px) {
    .minhaty-hero-overlay {
        padding: 50px 15px 40px;
        min-height: 280px;
    }

    .minhaty-hero-steps {
        gap: 0.5rem;
    }

    .hero-step {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .hero-step-arrow {
        display: none;
    }

    .search-section {
        padding: 1.5rem 1rem;
        margin-top: -30px;
        border-radius: 12px;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-group {
        min-width: auto;
        max-width: none;
    }

    .search-btn,
    .clear-search-btn {
        width: 100%;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .rdv-info {
        grid-template-columns: 1fr;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .minhaty-hero-title {
        font-size: 1.8rem;
    }

    .minhaty-hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .search-title {
        font-size: 1.3rem;
    }

    .student-card {
        margin: 0 -0.5rem;
        border-radius: 8px;
    }

    .message-card {
        margin: 0 -0.5rem;
        border-radius: 8px;
    }
}