/* RANO ACADEMY - Additional Styles */

/* Course Cards */
.course-card {
    background: linear-gradient(135deg, rgba(255, 46, 46, 0.05) 0%, rgba(76, 139, 245, 0.05) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(255, 46, 46, 0.15), 0 15px 30px -10px rgba(76, 139, 245, 0.1);
    border-color: #FF2E2E;
}

.course-card-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FF2E2E 0%, #4C8BF5 100%);
}

.course-card-image img {
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card:hover .course-card-image img {
    transform: scale(1.1);
}

/* Badges */
.course-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.badge-featured {
    background: rgba(255, 46, 46, 0.8);
    color: white;
    border: 1px solid rgba(255, 46, 46, 1);
}

.badge-new {
    background: rgba(255, 77, 77, 0.8);
    color: white;
    border: 1px solid rgba(255, 77, 77, 1);
}

.badge-discount {
    background: rgba(239, 68, 68, 0.8);
    color: white;
    border: 1px solid rgba(239, 68, 68, 1);
}

.badge-bestseller {
    background: rgba(234, 179, 8, 0.8);
    color: white;
    border: 1px solid rgba(234, 179, 8, 1);
}

/* Section Tags */
.section-tag {
    display: inline-block;
    background: rgba(255, 46, 46, 0.12);
    border: 1px solid rgba(255, 46, 46, 0.28);
    color: #ff6b6b;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    animation: fadeIn 0.6s ease-out forwards;
}

/* Instructor Card */
.instructor-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.instructor-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #FF2E2E;
    transform: translateY(-5px);
}

.instructor-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid #FF2E2E;
    overflow: hidden;
    background: linear-gradient(135deg, #FF2E2E, #4C8BF5);
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF2E2E, #FF4D4D);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 46, 46, 0.5);
}

/* Testimonials */
.testimonial-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: #FF2E2E;
    box-shadow: 0 10px 30px rgba(255, 46, 46, 0.1);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
    border: 2px solid #FF2E2E;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-stars {
    color: #FCD34D;
    font-size: 14px;
    margin: 10px 0;
}

/* Forms */
.form-input {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #FF2E2E;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 10px rgba(255, 46, 46, 0.2);
}

.form-input::placeholder {
    color: rgba(148, 163, 184, 0.5);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #FF2E2E 0%, #FF4D4D 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 46, 46, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 46, 46, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #FF2E2E;
    border: 2px solid #FF2E2E;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #FF2E2E;
    color: white;
}

/* Modals */
.modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 46, 46, 0.2);
    border-top-color: #FF2E2E;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-responsive table {
    width: 100%;
    border-collapse: collapse;
}

.table-responsive th {
    background: rgba(255, 46, 46, 0.1);
    border-bottom: 2px solid rgba(255, 46, 46, 0.3);
    padding: 15px;
    text-align: right;
    font-weight: 700;
    color: #FF2E2E;
}

.table-responsive td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.table-responsive tr:hover td {
    background: rgba(255, 46, 46, 0.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Utility Classes */
.glass {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-hover:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 46, 46, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, #FF2E2E, #FF4D4D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
    background: rgba(30, 41, 59, 0.5);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, #FF2E2E, #4C8BF5);
    border-radius: inherit;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-card {
        margin-bottom: 20px;
    }

    .section-tag {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }

    .modal-content {
        margin: 0 20px;
    }

    .table-responsive {
        font-size: 14px;
    }

    .table-responsive th,
    .table-responsive td {
        padding: 10px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .course-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
