/* Custom styles for Byne Christian School Portal */

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-item {
    min-width: 100%;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .carousel-item {
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        min-width: 33.333333%;
    }
}

/* Content Card Styles */
.content-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.content-card.pinned {
    border-left: 4px solid #fbbf24;
    background: linear-gradient(135deg, #fef3c7 0%, #ffffff 100%);
}

.content-card.featured {
    border-left: 4px solid #1e3a8a;
}

.content-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:hover img {
    transform: scale(1.05);
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-high {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-medium {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-low {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-announcement {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-event {
    background-color: #e0e7ff;
    color: #3730a3;
}

.badge-resource {
    background-color: #d1fae5;
    color: #047857;
}

.badge-news {
    background-color: #fce7f3;
    color: #be185d;
}

.badge-pinned {
    background-color: #fbbf24;
    color: #92400e;
}

.badge-featured {
    background-color: #1e3a8a;
    color: #ffffff;
}

/* Priority Indicators */
.priority-indicator {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.priority-high {
    background-color: #dc2626;
}

.priority-medium {
    background-color: #f59e0b;
}

.priority-low {
    background-color: #10b981;
}

/* Modal Styles */
.modal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .content-card img {
        height: 150px;
    }
    
    .carousel-item {
        padding: 0 0.5rem;
    }
}

/* Custom Scrollbar for Content Areas */
.content-area {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

.content-area::-webkit-scrollbar {
    width: 8px;
}

.content-area::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.content-area::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
button:focus,
select:focus,
.content-card:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .content-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}