/* Everday Popup Styles */

.everday-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.everday-popup-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation-duration: 0.3s;
    animation-timing-function: ease-out;
    animation-fill-mode: both;
}

.everday-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 1000;
    line-height: 1;
    transition: color 0.2s ease;
}

.everday-popup-close:hover {
    color: #333;
}

.everday-popup-content {
    padding: 40px;
    padding-top: 40px;
    /* text-align: center; */
}

.everday-popup-content h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    line-height: 1.3;
    /* text-align: center; */
}

.everday-popup-body {
    line-height: 1.6;
}

.everday-popup-body p {
    margin-bottom: 15px;
}

.everday-popup-body a {
    color: #0073aa;
    text-decoration: none;
}

.everday-popup-body a:hover {
    text-decoration: underline;
}

/* Featured Image Styles */
.everday-popup-image {
    margin-bottom: 15px;
    text-align: center;
    overflow: hidden;
    border-radius: 6px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-height: 50vw;
    
}

.everday-popup-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 6px;
}

/* Button Styles */
.everday-popup-button-wrapper {
    margin-top: 20px;
    text-align: center;
}

.everday-popup-button {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 120px;
}

.everday-popup-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.everday-popup-button:active {
    transform: translateY(0);
}

/* Button Styles - Primary */
.everday-popup-button-primary:hover {
    opacity: 0.9;
}

/* Button Styles - Secondary */
.everday-popup-button-secondary:hover {
    opacity: 0.8;
}

/* Button Styles - Outline */
.everday-popup-button-outline:hover {
    color: #ffffff !important;
    background-color: currentColor;
}

/* Animationer */
.everday-popup-fade {
    animation-name: everdayPopupFadeIn;
}

.everday-popup-slide {
    animation-name: everdayPopupSlideIn;
}

.everday-popup-zoom {
    animation-name: everdayPopupZoomIn;
}

@keyframes everdayPopupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes everdayPopupSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes everdayPopupZoomIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsiv design */
@media (max-width: 768px) {
    .everday-popup-container {
        margin: 20px;
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }
    
    .everday-popup-content {
        padding: 15px;
        padding-top: 35px;
    }
    
    .everday-popup-content h2 {
        font-size: 20px;
    }
    
    .everday-popup-close {
        top: 8px;
        right: 12px;
        font-size: 24px;
    }
    
    .everday-popup-button {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .everday-popup-image {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .everday-popup-container {
        margin: 10px;
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .everday-popup-content {
        padding: 12px;
        padding-top: 32px;
    }
    
    .everday-popup-content h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .everday-popup-button {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .everday-popup-image {
        margin-bottom: 10px;
    }
}