/*
 * Stylesheet for the Goallord Suite widgets.
 *
 * This file defines five distinct style variations that can be selected
 * via the widget controls. Each variation applies different background
 * colours, borders and shadows to produce a modern and minimalist look.
 */

.gl-widget {
    margin: 20px 0;
    padding: 20px;
    transition: all 0.3s ease-in-out;
}

/* Style 1: soft grey card */
.gl-style1 {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

/* Style 2: coloured left border */
.gl-style2 {
    background-color: #ffffff;
    border-left: 4px solid #2563eb;
    border-radius: 0;
}

/* Style 3: card with subtle shadow */
.gl-style3 {
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* Style 4: rounded card with extra padding */
.gl-style4 {
    background-color: #fdfdfd;
    border-radius: 8px;
    padding: 30px;
}

/* Style 5: gradient card */
.gl-style5 {
    background: linear-gradient(135deg, #f3f4f6, #ffffff);
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.gl-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.gl-description {
    font-size: 1em;
    line-height: 1.6;
}

/* Accordion styles */
.gl-accordion {
    border-top: 1px solid #e5e7eb;
}
.gl-accordion-item {
    border-bottom: 1px solid #e5e7eb;
}
.gl-accordion-header {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}
.gl-accordion-header:focus {
    outline: none;
}
.gl-accordion-content {
    padding: 15px;
    display: none;
}

/* Content switcher styles */
.gl-switcher-nav {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 10px;
}
.gl-switcher-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
}
.gl-switcher-tab.active {
    border-bottom: 3px solid #2563eb;
    color: #2563eb;
}
.gl-switcher-pane {
    display: none;
    padding: 10px 0;
}

/* Modal styles */
.gl-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.gl-modal-dialog {
    background: #ffffff;
    padding: 20px;
    max-width: 600px;
    width: 90%;
    border-radius: 6px;
    position: relative;
}
.gl-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Flip box styles */
.gl-flip-box {
    perspective: 1000px;
    position: relative;
}
.gl-flip-box-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}
.gl-flip-box:hover .gl-flip-box-inner {
    transform: rotateY(180deg);
}
.gl-flip-box-front,
.gl-flip-box-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.gl-flip-box-back {
    transform: rotateY(180deg);
}
.gl-flip-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

/* Carousel styles */
.gl-flip-carousel,
.gl-image-carousel,
.gl-testimonial-carousel {
    position: relative;
    overflow: hidden;
}
.gl-flip-carousel-inner,
.gl-image-carousel-inner,
.gl-testimonial-inner {
    display: flex;
    transition: transform 0.5s ease;
}
.gl-flip-slide,
.gl-image-slide,
.gl-testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: none;
}
.gl-flip-slide.active,
.gl-image-slide.active,
.gl-testimonial-slide.active {
    display: block;
}
.gl-carousel-prev,
.gl-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    z-index: 1;
}
.gl-carousel-prev {
    left: 10px;
}
.gl-carousel-next {
    right: 10px;
}
.gl-carousel-prev:hover,
.gl-carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}
.gl-image-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
    color: #6b7280;
}

/* Testimonial styles */
.gl-testimonial-photo img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}
.gl-testimonial-content {
    text-align: center;
}
.gl-testimonial-rating .gl-star {
    color: #d1d5db;
    font-size: 1em;
}
.gl-testimonial-rating .gl-star.filled {
    color: #f59e0b;
}

/* Testimonials grid */
.gl-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.gl-testimonial-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Timeline styles */
.gl-timeline {
    position: relative;
    border-left: 2px solid #e5e7eb;
    padding-left: 30px;
}
.gl-timeline-item {
    position: relative;
    margin-bottom: 20px;
}
.gl-timeline-marker {
    position: absolute;
    left: -8px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.6em;
}
.gl-marker-dot {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #2563eb;
    display: block;
}
.gl-timeline-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 10px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.gl-timeline-title {
    margin: 0 0 5px;
    font-size: 1.2em;
    font-weight: 600;
}
.gl-timeline-date {
    display: block;
    font-size: 0.9em;
    color: #6b7280;
    margin-bottom: 5px;
}
.gl-timeline-desc {
    margin: 0;
    font-size: 0.95em;
    color: #374151;
}

/* Video gallery styles */
.gl-video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gl-video-item {
    position: relative;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 10px;
}
.gl-video-thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin-bottom: 10px;
}
.gl-video-embed iframe,
.gl-video-embed video {
    width: 100%;
    height: 180px;
    border: none;
    border-radius: 4px;
}

/* Countdown timer */
.gl-countdown {
    display: flex;
    align-items: center;
    font-family: monospace;
    font-size: 1.4em;
}
.gl-countdown span {
    margin-right: 4px;
}
.gl-countdown-label {
    color: #6b7280;
    font-size: 0.8em;
    margin-right: 8px;
}