@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

body {
    font-family: "DM Sans", sans-serif;
}

.carousel-container {
    overflow: hidden;
}

.mobile-link {
    @apply block text-lg font-medium hover:text-red-700 transition;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.hamburger-active .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 14px;
}

.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 14px;
}

@media (min-width: 768px) {
    .carousel-slide {
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .carousel-slide {
        min-width: 25%;
    }
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.sidebar-active {
    transform: translateX(0);
}

.content-shift {
    margin-left: 16rem;
}

.modal {
    display: none;
}

.modal.active {
    display: flex;
}

.image-preview {
    position: relative;
}

.image-preview .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.drag-drop-area {
    border: 2px dashed #d1d5db;
    transition: all 0.3s ease;
}

.drag-drop-area.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.table-row:hover {
    background-color: #f9fafb;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-published {
    background-color: #dcfce7;
    color: #166534;
}

.status-draft {
    background-color: #fef3c7;
    color: #92400e;
}

.status-upcoming {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background-color: #f3f4f6;
    color: #374151;
}

.calendar-day {
    min-height: 100px;
    position: relative;
    transition: all 0.2s;
}

.calendar-day:hover {
    background-color: #fef2f2;
}

.calendar-day.has-events {
    cursor: pointer;
}

.calendar-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background-color: #dc2626;
    border-radius: 50%;
}

.tournament-popup {
    position: absolute;
    z-index: 50;
    display: none;
    min-width: 280px;
    max-width: 400px;
}

.tournament-popup.active {
    display: block;
}

.tournament-item:hover {
    background-color: #fef2f2;
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    background-color: #fee2e2;
    font-weight: bold;
}

.event-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 9999px;
    display: inline-block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}