/* Additional custom styles that complement Tailwind */

/* Smooth page transitions */
.page-transition {
    animation: pageIn 0.4s ease-out;
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero section gradient overlay */
.hero-gradient {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.95) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 247, 237, 0.95) 100%);
}

/* Glowing border effect on hover */
.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #FFA726, #FF9800, #FFB74D);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.glow-border:hover::after {
    opacity: 0.5;
}

/* Counter animation placeholder */
.counter-value {
    display: inline-block;
    min-width: 3ch;
}

/* Testimonial slider */
.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .testimonial-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        flex: 0 0 33.333%;
    }
}

/* Course card icon hover */
.course-icon {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover .course-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 167, 38, 0.4);
}

/* Star rating */
.star-rating .star {
    color: #E2E8F0;
    transition: color 0.2s;
}

.star-rating .star.active {
    color: #FFA726;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 167, 38, 0.2);
    border-top-color: #FFA726;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin sidebar */
.admin-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #E2E8F0 transparent;
}

.admin-sidebar::-webkit-scrollbar {
    width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background-color: #E2E8F0;
    border-radius: 4px;
}

/* Table styles */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead th {
    background: #F8FAFC;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748B;
    border-bottom: 1px solid #E2E8F0;
}

.data-table tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #F1F5F9;
    color: #334155;
}

.data-table tbody tr:hover {
    background: rgba(255, 167, 38, 0.04);
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    padding: 0.5rem 0.75rem;
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    color: white;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 50;
}

[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* Print styles */
@media print {
    header, footer, .no-print, #cookie-consent, #flash-messages {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .card {
        border: 1px solid #ccc !important;
        background: white !important;
    }
}
