/* Humbee Events Plugin Styles */

/* Event Form Styles */
.humbee-event-form-container {
    max-width: 800px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.humbee-form-header {
    background: linear-gradient(135deg, #995A00 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.humbee-form-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.2rem;
    font-weight: 600;
}

.humbee-form-header p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.humbee-event-form {
    padding: 40px;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #995A00;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Image Upload Styles */
.image-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
}

.image-upload-area:hover {
    border-color: #995A00;
    background-color: #f8faff;
}

.image-upload-area.dragover {
    border-color: #995A00;
    background-color: #f0f4ff;
}

.upload-placeholder svg {
    margin-bottom: 15px;
}

.upload-placeholder p {
    margin: 0 0 5px 0;
    font-weight: 600;
    color: #333;
}

.upload-placeholder small {
    color: #666;
}

.image-preview {
    text-align: center;
    margin-top: 15px;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.remove-image {
    margin-top: 10px;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.remove-image:hover {
    background: #c0392b;
}

/* Submit Button Styles */
.form-submit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.submit-btn {
    background: linear-gradient(135deg, #995A00 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

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

/* Form Messages */
.form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Events Carousel Styles */
.humbee-events-carousel {
    max-width: 1112px;
    width: 100%;
    margin: 40px auto;
    /* padding: 0 20px; */
    box-sizing: border-box;
}

.events-header {
    text-align: center;
    margin-bottom: 50px;
}

.events-carousel-container {
    position: relative;
    /* margin-bottom: 30px; */
}

.events-carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
}

.events-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.event-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* transition: transform 0.3s ease; */
}

.event-image-placeholder {
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: #999; */
}

.event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    background-color: #0D0D0D80;
}

.event-image-container:hover .event-overlay {
    opacity: 1;
}

.event-overlay-content {
    text-align: left;
}

.overlay-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: white;
}

.overlay-description {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0.95;
}

.overlay-location,
.overlay-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.overlay-location svg,
.overlay-date svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.overlay-price {
    margin-top: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: inline-block;
}

.overlay-price.free {
    background: rgba(72, 187, 120, 0.3);
}

.event-card-footer {
    padding: 20px 5px 10px 5px;
    text-align: center;
}

.event-title {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.event-location-brief {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
}

.event-location-brief svg {
    color: #995A00;
    flex-shrink: 0;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    /* border: 2px solid #e1e5e9; */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #995A00;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    outline: none;
}

.carousel-nav:hover {
    /* background: #f8f9fa; */
    transform: translateY(-50%) scale(1.05);
    /* box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15); */
    color: #995A00;
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: -70px;
}

.carousel-next {
    right: -70px;
}

.carousel-nav svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px;
}

.carousel-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #999999;
}

.carousel-nav:disabled:hover {
    background: #f5f5f5;
    color: #999999;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover,
.carousel-dot.active {
    background: #995A00;
    transform: scale(1.2);
}

/* Legacy Events List Styles (for backward compatibility) */
.humbee-events-list {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.event-image {
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-content {
    padding: 25px;
}


.category-tag {
    background: linear-gradient(135deg, #995A00 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-date-time,
.event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.event-date-time svg,
.event-location svg {
    color: #fff;
    flex-shrink: 0;
}


/* No Events State */
.no-events {
    text-align: center;
    padding: 60px 20px;
}

.no-events-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin: 20px 0 10px 0;
}

.no-events-content p {
    color: #666;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .event-carousel-card {
        flex: 0 0 calc(50% - 10px);
    }
    
    .carousel-prev {
        left: -15px;
    }
    
    .carousel-next {
        right: -15px;
    }
}

@media (max-width: 768px) {
    .humbee-event-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .events-header h2 {
        font-size: 2rem;
    }
    
    .humbee-form-header h2 {
        font-size: 1.8rem;
    }
    
    .event-carousel-card {
        flex: 0 0 100%;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .event-image-container {
        height: 220px;
    }
    
    .overlay-title {
        font-size: 1.2rem;
    }
    
    .overlay-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .humbee-events-list {
        padding: 0 10px;
    }
    
    .humbee-events-carousel {
        padding: 0 10px;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .event-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .event-image-container {
        height: 200px;
    }
    
    .event-overlay {
        padding: 20px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}

/* Additional Form Styles */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.char-counter.warning {
    color: #e74c3c;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group input.error:focus,
.form-group textarea.error:focus,
.form-group select.error:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Loading Animation */
.submit-btn .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Improved form spacing */
.form-section:first-child {
    padding-top: 0;
}

/* Enhanced hover effects */
.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #c7d2fe;
}

/* File input styling */
input[type="file"] {
    display: none !important;
}

/* New Carousel with Hover Overlay Styles */
.humbee-events-carousel .events-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1112px;
    margin: 0 auto;
}

.humbee-events-carousel .events-carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
    /* margin: 0 80px; */
}

.humbee-events-carousel .events-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.humbee-events-carousel .event-carousel-card {
    flex: 0 0 calc(33.333% - 11px);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 250px !important;
    max-width: 360px;
    width: 360px;
}

/* .humbee-events-carousel .event-carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
} */

/* Event Image Container with Overlay */
.humbee-events-carousel .event-image-container {
    position: relative;
    width: 100%;
    /* height: 300px; */
    overflow: hidden;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.humbee-events-carousel .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    width: 360px;
    height: 250px;
}

/* Image Placeholder */
.humbee-events-carousel .event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ccc;
    font-size: 48px;
}

/* Details Overlay */
.humbee-events-carousel .event-details-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    color: white;
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    z-index: 2;
}

.humbee-events-carousel .event-carousel-card:hover .event-details-overlay {
    opacity: 1;
    /* transform: translateY(0); */
}

.humbee-events-carousel .event-overlay-content {
    width: 100%;
}


.humbee-events-carousel .event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* margin-bottom: 15px; */
}

.humbee-events-carousel .event-date-time,
.humbee-events-carousel .event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.humbee-events-carousel .event-date-time svg,
.humbee-events-carousel .event-location svg {
    flex-shrink: 0;
}

.humbee-events-carousel .event-description {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Carousel Styles */
@media (max-width: 992px) {
    .humbee-events-carousel .event-carousel-card {
        flex: 0 0 calc(50% - 10px);
        height: 250px !important;
    }
    
    .humbee-events-carousel .events-carousel-wrapper {
        margin: 0 70px;
    }
}

@media (max-width: 768px) {
    .humbee-events-carousel .event-carousel-card {
        height: 250px !important;
        flex: 0 0 100%;
    }
    
    .humbee-events-carousel .events-carousel-wrapper {
        margin: 0 60px;
    }
    
    .humbee-events-carousel .event-image-container {
        height: 250px;
    }
    
    .humbee-events-carousel .event-details-overlay {
        padding: 20px;
    }
    
    .humbee-events-carousel .event-title {
        font-size: 1.2rem;
    }
    
    .carousel-nav {
        width: 50px;
        height: 50px;
    }
    
    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .humbee-events-carousel .events-carousel-wrapper {
        margin: 0 50px;
    }
    
    .humbee-events-carousel .event-image-container {
        height: 220px;
    }
    
    .humbee-events-carousel .event-details-overlay {
        padding: 15px;
    }
    
    .humbee-events-carousel .event-title {
        font-size: 1.1rem;
    }
    
    .humbee-events-carousel .event-meta {
        gap: 6px;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
    }
    
    .carousel-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-prev {
        left: 2px;
    }
    
    .carousel-next {
        right: 2px;
    }
}

/* Touch hover support for mobile devices */
.humbee-events-carousel .event-carousel-card.touch-hover {
    /* transform: translateY(-5px); */
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); */
}

.humbee-events-carousel .event-carousel-card.touch-hover .event-details-overlay {
    opacity: 1;
    /* transform: translateY(0); */
}

.humbee-events-carousel .event-carousel-card.touch-hover .event-image {
    transform: scale(1.05);
}

/* Elementor compatibility */
.elementor-widget-humbee_events_carousel .humbee-events-carousel {
    margin: 0;
    padding: 0;
}

.elementor-widget-humbee_events_carousel .events-header {
    margin-bottom: 30px;
}

.elementor-widget-humbee_events_carousel .events-header h2 {
    margin: 0 0 10px 0;
}

.elementor-widget-humbee_events_carousel .events-header p {
    margin: 0;
}
@media (max-width: 768px) {
  .humbee-events-carousel .events-carousel-container {
    position: relative;
    padding: 0 60px; /* add space for arrows inside */
  }

  .humbee-events-carousel .events-carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
    margin: 0; /* remove outer margin */
  }

  .humbee-events-carousel .events-carousel-track {
    gap: 0;
    transform: translateX(0);
  }

  .humbee-events-carousel .event-carousel-card {
    flex: 0 0 100%;
    height: 250px !important;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
    background: #fff;
    color: #995A00;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 50%;
    z-index: 5;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  /* Center arrows vertically within visible slide */
  .carousel-nav {
    top: 50%;
    transform: translateY(-50%);
  }
}