/* Admit Card Page - Modern Professional Design */

/* Header Fix - Ensure header is not transparent on admit card page */
.admit-card-page #main-header {
    background: white !important;
    background-color: white !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admit-card-page #main-header.scrolled {
    background: white !important;
    background-color: white !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Override Tailwind classes specifically */
.admit-card-page header#main-header {
    background: white !important;
    background-color: white !important;
}

/* Dark mode header fix for admit card page */
.dark .admit-card-page #main-header {
    background: rgb(17, 24, 39) !important;
    background-color: rgb(17, 24, 39) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .admit-card-page #main-header.scrolled {
    background: rgb(17, 24, 39) !important;
    background-color: rgb(17, 24, 39) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* Additional specificity for Tailwind override */
body.admit-card-page header#main-header.bg-white\/95,
body.admit-card-page header#main-header[class*="bg-white"] {
    background: white !important;
    background-color: white !important;
}

/* Ensure backdrop-filter doesn't cause transparency issues */
body.admit-card-page header#main-header {
    backdrop-filter: none !important;
    background: white !important;    background-color: white !important;
}

/* Admit Card Item Enhancements */
.admit-card-item {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
}

.admit-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.admit-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.admit-card-item:hover::before {
    left: 100%;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-available {
    background-color: #10b981;
    color: white;
}

.status-coming-soon {
    background-color: #f59e0b;
    color: white;
}

.status-released {
    background-color: #3b82f6;
    color: white;
}

.status-expired {
    background-color: #ef4444;
    color: white;
}

/* Button Enhancements */
.view-details-btn,
.download-btn,
.notify-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.view-details-btn:hover,
.download-btn:hover,
.notify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.download-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.download-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.notify-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.notify-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Pagination Styles */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin: 0 1px;
}

.pagination-btn:first-child {
    border-radius: 0.375rem 0 0 0.375rem;
}

.pagination-btn:last-child {
    border-radius: 0 0.375rem 0.375rem 0;
}

.pagination-btn:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
    color: #9ca3af;
}

.pagination-btn.active {
    background: #4f46e5;
    color: white;
    border-color: #4f46e5;
    z-index: 1;
}

/* Modal Styles */
.card-details-modal {
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.card-details-modal.show {
    opacity: 1;
}

.card-details-modal .bg-white {
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.card-details-modal.show .bg-white {
    transform: scale(1);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.loading-shimmer {
    animation: shimmer 1.2s ease-in-out infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 468px 100%;
    height: 200px;
    border-radius: 0.75rem;
}

/* Line clamp utilities with standard property fallback */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Full-Width Notification Banner */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-600 {
    --tw-gradient-from: #2563eb;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgb(37 99 235 / 0));
}

.to-blue-800 {
    --tw-gradient-to: #1e40af;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.bg-white\/15 {
    background-color: rgb(255 255 255 / 0.15);
}

.notification-banner {
    margin: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Notification Banner Button Hover Effects */
.notification-banner button {
    transition: all 0.3s ease;
}

.notification-banner button:hover {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .admit-card-item {
        margin: 0;
    }
    
    .notification-banner h2 {
        font-size: 1.75rem;
    }
    
    .notification-banner p {
        font-size: 1rem;
    }
    
    .notification-banner .bg-white\/15 {
        padding: 0.5rem 1rem;
    }
    
    .pagination-btn {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 400px;
}

.notification.success {
    background: #10b981;
    color: white;
}

.notification.error {
    background: #ef4444;
    color: white;
}

.notification.info {
    background: #3b82f6;
    color: white;
}

/* Focus styles for accessibility */
.pagination-btn:focus,
.view-details-btn:focus,
.download-btn:focus,
.notify-btn:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .admit-card-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}
