/* WUP Elementor Widgets CSS */

/* Base styles for all WUP widgets */
.wup-widget-container {
    position: relative;
    overflow: hidden;
}

/* Animation classes */
.wup-animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.wup-animate-on-scroll.wup-animated {
    opacity: 1;
    transform: translateY(0);
}

/* WUP Hero Section */
.wup-hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.wup-hero-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wup-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.wup-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 2rem;
}

.wup-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.wup-hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.wup-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.wup-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.wup-stat-item {
    text-align: center;
}

.wup-stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #51d65e;
    display: block;
    margin-bottom: 0.5rem;
}

.wup-stat-suffix {
    color: #51d65e;
    font-weight: 900;
}

.wup-stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

/* Buttons */
.wup-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    line-height: 1;
}

.wup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    text-decoration: none;
}

.wup-btn-primary {
    background-color: #51d65e;
    color: #153939;
}

.wup-btn-primary:hover {
    background-color: #153939;
    color: #51d65e;
}

.wup-btn-secondary {
    background-color: white;
    color: #153939;
    border: 2px solid #153939;
}

.wup-btn-secondary:hover {
    background-color: #153939;
    color: white;
}

/* WUP Features Section */
.wup-features-section {
    padding: 5rem 0;
}

.wup-section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.wup-section-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 900;
    color: #153939;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.wup-section-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.wup-highlight {
    color: #51d65e;
}

.wup-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.wup-feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    height: 100%;
}

.wup-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.wup-feature-icon {
    width: 4rem;
    height: 4rem;
    background-color: #153939;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    color: white;
    font-size: 2rem;
}

.wup-feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0.75rem;
    height: 0.75rem;
    background-color: #51d65e;
    border-radius: 50%;
}

.wup-feature-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #153939;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.wup-feature-description {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* WUP Resources Section */
.wup-resources-section {
    padding: 5rem 0;
    background: white;
}

.wup-resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.wup-resource-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wup-resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.wup-resource-image-wrapper {
    height: 200px;
    overflow: hidden;
}

.wup-resource-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wup-resource-card:hover .wup-resource-image {
    transform: scale(1.05);
}

.wup-resource-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wup-resource-icon {
    width: 3rem;
    height: 3rem;
    background-color: #153939;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #51d65e;
    font-size: 1.5rem;
}

.wup-resource-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #153939;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.wup-resource-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.wup-resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #153939;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.wup-resource-link:hover {
    background-color: #51d65e;
    color: #153939;
    transform: translateY(-2px);
    text-decoration: none;
}

/* WUP Membership Section */
.wup-membership-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #153939 0%, #0f2e2e 100%);
    color: white;
}

.wup-membership-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.wup-membership-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.wup-membership-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.wup-membership-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.wup-membership-feature {
    text-align: center;
}

.wup-membership-icon {
    width: 4rem;
    height: 4rem;
    background-color: #51d65e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #153939;
    font-size: 2rem;
}

.wup-membership-feature-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
}

.wup-membership-feature-desc {
    opacity: 0.8;
    line-height: 1.6;
}

.wup-membership-cta-wrapper {
    margin-top: 2rem;
}

.wup-membership-cta {
    background-color: #51d65e;
    color: #153939;
}

/* WUP Newsletter Section */
.wup-newsletter-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #51d65e 0%, #3dd65a 100%);
    color: white;
}

.wup-newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.wup-newsletter-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.wup-newsletter-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.wup-newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.wup-form-horizontal .wup-form-fields {
    display: flex;
    gap: 1rem;
}

.wup-form-vertical .wup-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wup-newsletter-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    background-color: white;
    color: #333;
}

.wup-newsletter-input::placeholder {
    color: #666;
    opacity: 0.7;
}

.wup-newsletter-button {
    background-color: #153939;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
    white-space: nowrap;
}

.wup-newsletter-button:hover {
    background-color: white;
    color: #153939;
    transform: translateY(-2px);
}

.wup-newsletter-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.wup-gdpr-field {
    margin-top: 1rem;
    text-align: left;
}

.wup-gdpr-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.wup-gdpr-label input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.wup-gdpr-text {
    line-height: 1.4;
    opacity: 0.9;
}

.wup-form-messages {
    margin-top: 1rem;
}

.wup-form-success {
    background-color: rgba(255,255,255,0.2);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.wup-form-error {
    background-color: rgba(220,53,69,0.8);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(220,53,69,0.3);
}

/* WUP Stats Counter */
.wup-stats-counter {
    padding: 3rem 0;
}

.wup-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.wup-stat-item {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.wup-stat-item:hover {
    transform: translateY(-5px);
}

.wup-stat-icon {
    margin-bottom: 1rem;
    color: #153939;
}

.wup-stat-number-wrapper {
    margin-bottom: 0.5rem;
}

.wup-stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #51d65e;
    display: inline-block;
}

.wup-stat-suffix {
    color: #51d65e;
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.wup-stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* Loading states */
.wup-loading {
    opacity: 0.7;
    pointer-events: none;
}

.wup-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #51d65e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wup-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .wup-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .wup-form-horizontal .wup-form-fields {
        flex-direction: column;
    }
    
    .wup-newsletter-input,
    .wup-newsletter-button {
        width: 100%;
    }
    
    .wup-features-grid,
    .wup-resources-grid {
        grid-template-columns: 1fr;
    }
    
    .wup-membership-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .wup-hero-content,
    .wup-feature-card,
    .wup-resource-content {
        padding: 1.5rem;
    }
    
    .wup-widget-container {
        padding: 3rem 0;
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .wup-stat-number[data-target] {
    animation: none !important;
}

.elementor-editor-active .wup-animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}

/* Print Styles */
@media print {
    .wup-hero-section,
    .wup-newsletter-section,
    .wup-membership-section {
        background: white !important;
        color: black !important;
    }
    
    .wup-btn {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: white !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wup-feature-card,
    .wup-resource-card {
        border: 2px solid #000;
    }
    
    .wup-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .wup-hero-wrapper {
        background-attachment: scroll !important;
    }
}