/* Mobile-specific styles for Acara page */

/* Base mobile styles */
.event-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0;
    max-width: 100%;
    width: 100%;
}

.event-slider-container {
    padding: 0;
    max-width: 100vw;
    margin: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.event-card {
    margin: 0 0.75rem;
    max-width: calc(100% - 1.5rem);
    width: calc(100% - 1.5rem);
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.event-card:active {
    transform: scale(0.98);
}
.event-content {
    padding: 1.2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 3rem);
}

.event-title a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.event-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-weight: 600;
    color: #1a202c;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 3.2em;
    position: relative;
    padding-bottom: 0.25rem;
}

.event-title a:hover {
    color: var(--primary-color);
}

.event-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.event-title:hover::after {
    width: 100%;
}

.event-date {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.event-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 3;
    line-height: 1.4;
    max-height: 4.2em;
}

/* Slider navigation */
.slider-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1.5rem auto;
    padding: 0;
    width: 100%;
    max-width: 300px;
    position: relative;
    height: 36px; /* Fixed height container */
}

.slider-nav {
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 0;
    padding: 0;
    transition: all 0.15s ease-out;
    color: #4a5568;
    position: absolute;
    top: 0;
    transform: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    vertical-align: middle;
}

.slider-nav[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    background: #f8f9fa !important;
    border-color: #e2e8f0 !important;
    color: #a0aec0 !important;
}

.slider-nav.prev {
    left: 0;
}

.slider-nav.next {
    right: 0;
}

.slider-nav:not([disabled]):active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.slider-nav:not([disabled]):hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.slider-nav:focus {
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.3);
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 50px;
    padding: 0;
    height: 100%;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background-color: #d1d5db;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

.slider-dot.active {
    background-color: var(--primary-color);
    width: 20px;
}

.slider-dot:hover {
    background-color: var(--primary-light);
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* Image aspect ratio */
.event-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 133.33%; /* 3:4 Portrait Aspect Ratio */
    overflow: hidden;
    background-color: #f5f5f5;
}

/* Responsive adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .event-card {
        margin: 0 0.5rem;
        width: calc(100% - 1rem);
    }
    
    .event-description {
        -webkit-line-clamp: 4;
        line-clamp: 4;
        max-height: 5.6em;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}
