/* Profile Mobile Enhancements - Universal for both AR and EN */

/* Hero section shape animations */
@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scalation {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes walking {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

/* Ensure shapes are visible */
.breadcrumb img {
    opacity: 0.7;
    max-width: 60px;
    height: auto;
}

/* Mobile-specific profile styling */
@media (max-width: 767px) {
    /* Breadcrumb mobile adjustments */
    .breadcrumb__title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
    }

    .breadcrumb__list {
        font-size: 13px !important;
        gap: 8px !important;
    }

    /* Profile container mobile padding */
    .bg-white.rounded-10 {
        padding: 16px !important;
        margin: 0 8px;
    }

    /* Profile info items mobile styling */
    .profile-info-item {
        padding: 16px 12px !important;
        min-height: auto !important;
    }

    .profile-info-item span {
        word-break: break-word;
    }

    /* Profile actions mobile */
    .profile-actions-mobile {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    /* Sidebar mobile adjustments - COMPLETELY HIDDEN by default */
    .student-dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 320px !important;
        height: 100vh !important;
        z-index: 9999 !important;
        padding: 16px !important;
        max-width: 320px !important;
        transform: translateX(-100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: all 0.3s ease-in-out !important;
    }

    /* Show sidebar when active */
    .student-dashboard-sidebar.active {
        left: 0 !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .student-dashboard-sidebar img {
        width: 100px !important;
        height: 100px !important;
        margin-bottom: 16px !important;
    }

    .student-dashboard-sidebar h5 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .student-dashboard-sidebar .text-14 {
        font-size: 12px !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .breadcrumb__title {
        font-size: 1.5rem !important;
    }

    .container.container--lg {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .bg-white.rounded-10 {
        margin: 0 4px;
        border-radius: 8px !important;
    }

    .profile-info-item {
        padding: 12px 8px !important;
    }

    .btn-sm {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .student-dashboard-sidebar {
        max-width: 280px !important;
    }
}

/* Profile info responsive grid */
@media (max-width: 991px) {
    .row.g-0 .col-12.col-lg-6:first-child .profile-info-item {
        border-right: none !important;
        border-inline-end: none !important;
    }

    .row.g-0 .col-12.col-lg-6:last-child .profile-info-item:first-child {
        border-top: none !important;
    }
}

/* Profile badge styling */
.badge {
    font-size: 11px !important;
    padding: 4px 8px !important;
}

/* Social links mobile */
.text-24 {
    font-size: 20px !important;
}

@media (max-width: 480px) {
    .text-24 {
        font-size: 18px !important;
    }
}

/* Overlay improvements */
.student-overlay-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.student-overlay-sidebar.show {
    visibility: visible;
    opacity: 1;
}

/* RTL Support */
@media (max-width: 767px) {
    [dir="rtl"] .student-dashboard-sidebar {
        left: auto !important;
        right: -100% !important;
        transform: translateX(100%) !important;
    }

    [dir="rtl"] .student-dashboard-sidebar.active {
        right: 0 !important;
        transform: translateX(0) !important;
    }
}

@media (min-width: 768px) {
    [dir="rtl"] .student-dashboard-sidebar {
        transform: none;
    }

    [dir="rtl"] .student-dashboard-sidebar.active {
        transform: none;
    }
}

/* Button improvements for mobile */
@media (max-width: 767px) {
    .toggle-student-dashbord-button {
        padding: 8px !important;
        font-size: 18px !important;
    }

    .btn-outline-secondary, .btn-outline-primary {
        border-width: 1px !important;
        font-weight: 500 !important;
    }
}

/* Loading states and transitions */
.student-dashboard-sidebar {
    transition: transform 0.3s ease-in-out !important;
}

.student-overlay-sidebar {
    transition: opacity 0.3s ease-in-out !important;
}

/* Text responsive adjustments */
@media (max-width: 575px) {
    .text-14 {
        font-size: 13px !important;
    }

    .fw-medium {
        font-weight: 600 !important;
    }
}
