/**
 * EduBlink Core - Services & Shopify Store Widgets
 * Modern, Professional Styling
 */

/* ==========================================
   SERVICES WIDGET STYLES
   ========================================== */

.edublink-services-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

.edublink-services-header {
    text-align: center;
    margin-bottom: 80px;
}

.edublink-services-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--edublink-heading-color, #1d2733);
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.edublink-services-subtitle {
    font-size: 1.25rem;
    color: var(--edublink-body-color, #6b7280);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

.edublink-services-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    margin-top: 50px;
}

.edublink-service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 45px 35px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.edublink-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--edublink-primary-color, #667eea) 0%, var(--edublink-secondary-color, #764ba2) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.edublink-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.edublink-service-card:hover::before {
    transform: scaleX(1);
}

.edublink-service-card .service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--edublink-primary-color, #667eea) 0%, var(--edublink-secondary-color, #764ba2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.edublink-service-card .service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.edublink-service-card .service-icon img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    border-radius: 0;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

.edublink-service-card .service-icon svg {
    width: 50%;
    height: 50%;
    fill: #ffffff;
    transition: all 0.4s ease;
}

.edublink-service-card .service-icon i {
    font-size: 2.5rem;
    color: #ffffff;
    transition: all 0.4s ease;
}

.edublink-service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.edublink-service-card:hover .service-icon::before {
    opacity: 1;
}

.edublink-service-card .service-content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.edublink-service-card .service-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--edublink-heading-color, #1d2733);
    line-height: 1.3;
}

.edublink-service-card .service-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.edublink-service-card .service-title a:hover {
    color: var(--edublink-primary-color, #667eea);
}

.edublink-service-card .service-description {
    color: var(--edublink-body-color, #6b7280);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.edublink-service-card .service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--edublink-primary-color, #667eea);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 12px 30px;
    border: 2px solid var(--edublink-primary-color, #667eea);
    border-radius: 50px;
    background: transparent;
    min-width: 150px;
    margin: 0 auto;
}

.edublink-service-card .service-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.edublink-service-card .service-link:hover {
    color: #ffffff;
    background: var(--edublink-primary-color, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.edublink-service-card .service-link:hover i {
    transform: translateX(3px);
}

/* Services Carousel Styles */
.edublink-services-carousel {
    position: relative;
    margin-top: 50px;
}

.edublink-services-carousel .swiper-container {
    overflow: hidden;
    position: relative;
}

.edublink-services-carousel .swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.edublink-services-carousel .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    padding: 0 15px;
}

.edublink-services-carousel .swiper-button-next,
.edublink-services-carousel .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--edublink-primary-color, #667eea);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.edublink-services-carousel .swiper-button-next:hover,
.edublink-services-carousel .swiper-button-prev:hover {
    background: var(--edublink-secondary-color, #764ba2);
    transform: translateY(-50%) scale(1.1);
}

.edublink-services-carousel .swiper-button-next {
    right: -25px;
}

.edublink-services-carousel .swiper-button-prev {
    left: -25px;
}

.edublink-services-carousel .swiper-button-next::after,
.edublink-services-carousel .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.edublink-services-carousel .swiper-pagination {
    position: relative;
    text-align: center;
    margin-top: 30px;
}

.edublink-services-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #d1d5db;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edublink-services-carousel .swiper-pagination-bullet-active {
    background: var(--edublink-primary-color, #667eea);
    transform: scale(1.2);
}

/* ==========================================
   SHOPIFY STORES WIDGET STYLES
   ========================================== */

.edublink-shopify-stores-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

.edublink-shopify-stores-header {
    text-align: center;
    margin-bottom: 80px;
}

.edublink-shopify-stores-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--edublink-heading-color, #1d2733);
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.edublink-shopify-stores-subtitle {
    font-size: 1.25rem;
    color: var(--edublink-body-color, #6b7280);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

.edublink-shopify-stores-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    margin-top: 50px;
}

.edublink-shopify-store-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.edublink-shopify-store-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.edublink-shopify-store-card .store-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.edublink-shopify-store-card .store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.edublink-shopify-store-card:hover .store-image img {
    transform: scale(1.05);
}

.edublink-shopify-store-card .store-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.edublink-shopify-store-card .store-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--edublink-heading-color, #1d2733);
    line-height: 1.3;
}

.edublink-shopify-store-card .store-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.edublink-shopify-store-card .store-title a:hover {
    color: var(--edublink-primary-color, #667eea);
}

.edublink-shopify-store-card .store-description {
    color: var(--edublink-body-color, #6b7280);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.edublink-shopify-store-card .store-price {
    background: linear-gradient(135deg, var(--edublink-primary-color, #667eea) 0%, var(--edublink-secondary-color, #764ba2) 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.edublink-shopify-store-card .investment-label {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

.edublink-shopify-store-card .investment-amount {
    font-size: 1.1rem;
    font-weight: 700;
}

.edublink-shopify-store-card .store-details {
    margin-bottom: 25px;
}

.edublink-shopify-store-card .store-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.edublink-shopify-store-card .store-detail:last-child {
    border-bottom: none;
}

.edublink-shopify-store-card .detail-label {
    font-size: 0.85rem;
    color: var(--edublink-body-color, #6b7280);
    font-weight: 500;
}

.edublink-shopify-store-card .detail-value {
    font-size: 0.9rem;
    color: var(--edublink-heading-color, #1d2733);
    font-weight: 600;
}

.edublink-shopify-store-card .store-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.edublink-shopify-store-card .store-link,
.edublink-shopify-store-card .contact-button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.edublink-shopify-store-card .store-link {
    color: var(--edublink-primary-color, #667eea);
    background: transparent;
    border-color: var(--edublink-primary-color, #667eea);
}

.edublink-shopify-store-card .store-link:hover {
    color: #ffffff;
    background: var(--edublink-primary-color, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.edublink-shopify-store-card .contact-button {
    color: #ffffff;
    background: #25d366;
    border-color: #25d366;
}

.edublink-shopify-store-card .contact-button:hover {
    background: #128c7e;
    border-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.edublink-shopify-store-card .contact-button i {
    font-size: 1.1rem;
}

/* Shopify Stores Carousel Styles */
.edublink-shopify-stores-carousel {
    position: relative;
    margin-top: 50px;
}

.edublink-shopify-stores-carousel .swiper-container {
    overflow: hidden;
    position: relative;
}

.edublink-shopify-stores-carousel .swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.edublink-shopify-stores-carousel .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    padding: 0 15px;
}

.edublink-shopify-stores-carousel .swiper-button-next,
.edublink-shopify-stores-carousel .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--edublink-primary-color, #667eea);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.edublink-shopify-stores-carousel .swiper-button-next:hover,
.edublink-shopify-stores-carousel .swiper-button-prev:hover {
    background: var(--edublink-secondary-color, #764ba2);
    transform: translateY(-50%) scale(1.1);
}

.edublink-shopify-stores-carousel .swiper-button-next {
    right: -25px;
}

.edublink-shopify-stores-carousel .swiper-button-prev {
    left: -25px;
}

.edublink-shopify-stores-carousel .swiper-button-next::after,
.edublink-shopify-stores-carousel .swiper-button-prev::after {
    font-size: 18px;
    font-weight: bold;
}

.edublink-shopify-stores-carousel .swiper-pagination {
    position: relative;
    text-align: center;
    margin-top: 30px;
}

.edublink-shopify-stores-carousel .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #d1d5db;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edublink-shopify-stores-carousel .swiper-pagination-bullet-active {
    background: var(--edublink-primary-color, #667eea);
    transform: scale(1.2);
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */

@media (max-width: 1199px) {
    .edublink-services-title,
    .edublink-shopify-stores-title {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .edublink-services-title,
    .edublink-shopify-stores-title {
        font-size: 2.5rem;
    }
    .edublink-services-subtitle,
    .edublink-shopify-stores-subtitle {
        font-size: 1.1rem;
    }
    .edublink-service-card,
    .edublink-shopify-store-card .store-content {
        padding: 30px 25px;
    }
    .edublink-service-card .service-title,
    .edublink-shopify-store-card .store-title {
        font-size: 1.3rem;
    }
    .edublink-services-carousel .swiper-button-next,
    .edublink-services-carousel .swiper-button-prev,
    .edublink-shopify-stores-carousel .swiper-button-next,
    .edublink-shopify-stores-carousel .swiper-button-prev {
        width: 45px;
        height: 45px;
    }
    .edublink-services-carousel .swiper-button-next,
    .edublink-shopify-stores-carousel .swiper-button-next {
        right: -20px;
    }
    .edublink-services-carousel .swiper-button-prev,
    .edublink-shopify-stores-carousel .swiper-button-prev {
        left: -20px;
    }
}

@media (max-width: 767px) {
    .edublink-services-title,
    .edublink-shopify-stores-title {
        font-size: 2rem;
    }
    .edublink-services-subtitle,
    .edublink-shopify-stores-subtitle {
        font-size: 1rem;
    }
    .edublink-service-card,
    .edublink-shopify-store-card .store-content {
        padding: 25px 20px;
    }
    .edublink-shopify-store-card .store-actions {
        flex-direction: column;
    }
    .edublink-services-carousel .swiper-button-next,
    .edublink-services-carousel .swiper-button-prev,
    .edublink-shopify-stores-carousel .swiper-button-next,
    .edublink-shopify-stores-carousel .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    .edublink-services-carousel .swiper-button-next,
    .edublink-shopify-stores-carousel .swiper-button-next {
        right: -15px;
    }
    .edublink-services-carousel .swiper-button-prev,
    .edublink-shopify-stores-carousel .swiper-button-prev {
        left: -15px;
    }
    .edublink-services-carousel .swiper-button-next::after,
    .edublink-services-carousel .swiper-button-prev::after,
    .edublink-shopify-stores-carousel .swiper-button-next::after,
    .edublink-shopify-stores-carousel .swiper-button-prev::after {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .edublink-services-wrapper,
    .edublink-shopify-stores-wrapper {
        padding: 40px 0;
    }
    
    .edublink-services-header,
    .edublink-shopify-stores-header {
        margin-bottom: 50px;
    }
    
    .edublink-services-title,
    .edublink-shopify-stores-title {
        font-size: 1.8rem;
    }
    
    .edublink-service-card,
    .edublink-shopify-store-card .store-content {
        padding: 20px 15px;
    }
    
    .edublink-service-card .service-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .edublink-service-card .service-icon i {
        font-size: 2rem;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edublink-service-card,
.edublink-shopify-store-card {
    animation: fadeInUp 0.6s ease-out;
}

.edublink-service-card:nth-child(2),
.edublink-shopify-store-card:nth-child(2) {
    animation-delay: 0.1s;
}

.edublink-service-card:nth-child(3),
.edublink-shopify-store-card:nth-child(3) {
    animation-delay: 0.2s;
}

.edublink-service-card:nth-child(4),
.edublink-shopify-store-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* ==========================================
   ELEMENTOR EDITOR STYLES
   ========================================== */

.elementor-editor-active .edublink-service-card,
.elementor-editor-active .edublink-shopify-store-card {
    animation: none;
}

.elementor-editor-active .edublink-service-card:hover,
.elementor-editor-active .edublink-shopify-store-card:hover {
    transform: none;
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.edublink-service-card .service-link:focus,
.edublink-shopify-store-card .store-link:focus,
.edublink-shopify-store-card .contact-button:focus {
    outline: 2px solid var(--edublink-primary-color, #667eea);
    outline-offset: 2px;
}

.edublink-carousel-arrows .arrow-prev:focus,
.edublink-carousel-arrows .arrow-next:focus {
    outline: 2px solid var(--edublink-primary-color, #667eea);
    outline-offset: 2px;
}

/* ==========================================
   HIGH CONTRAST MODE
   ========================================== */

@media (prefers-contrast: high) {
    .edublink-service-card,
    .edublink-shopify-store-card {
        border: 2px solid #000000;
    }

    .edublink-service-card .service-link,
    .edublink-shopify-store-card .store-link,
    .edublink-shopify-store-card .contact-button {
        border-width: 3px;
    }
}

/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .edublink-service-card,
    .edublink-shopify-store-card {
        animation: none;
        transition: none;
    }

    .edublink-service-card:hover,
    .edublink-shopify-store-card:hover {
        transform: none;
    }
}
