/* Frontend Styles for CogniReklame Plugin */

/* Import Google Fonts for Revolutionary Templates */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Poppins:wght@300;400;600;800&family=Inter:wght@400;500;700&family=Raleway:wght@400;800&family=Montserrat:wght@300;900&display=swap');

.cognireklame-ads-container {
    margin: 20px 0;
    padding: 0;
}

/* Revolutionary Ad Wrapper */
.revolutionary-ad-wrapper {
    margin: 25px auto;
    max-width: 600px;
    position: relative;
}

/* Classic Ad Container (Legacy) */
.cognireklame-ad-container {
    position: relative;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-family: sans-serif;
    color: #333;
    overflow: hidden; /* For SVG animations */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0),
                      linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    /* Additional background effects */
    animation: background-pan 10s linear infinite;
}

.cognireklame-ad-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    background-position: 10px 10px, 0 0;
}

@keyframes background-pan {
    from {
        background-position: 0% 0%, 10px 10px;
    }
    to {
        background-position: 100% 100%, 110px 110px;
    }
}

.cognireklame-ad-frame {
    position: relative;
    padding: 10px;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    margin-bottom: 15px;
}

.cognireklame-svg-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: #0073aa;
    stroke-width: 3;
    fill: none;
    transition: stroke 0.3s ease-in-out;
}

.cognireklame-ad-container:hover .cognireklame-svg-frame {
    stroke: #0056b3;
}

.cognireklame-svg-border-effect {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw-border 4s linear infinite;
}

@keyframes draw-border {
    to {
        stroke-dashoffset: 0;
    }
}

.cognireklame-ad-image,
.cognireklame-ad-logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.cognireklame-ad-headline {
    font-size: 2em;
    color: #0056b3;
    margin-bottom: 10px;
    line-height: 1.2;
}

.cognireklame-ad-slogan {
    font-size: 1.2em;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.cognireklame-ad-description {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.cognireklame-ad-quote {
    border-left: 4px solid #28a745;
    padding-left: 15px;
    margin-left: 0;
    font-size: 1.1em;
    color: #444;
    font-style: italic;
}

.cognireklame-lottie-animation {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.cognireklame-no-ads {
    text-align: center;
    color: #888;
    padding: 20px;
    border: 1px dashed #ccc;
    border-radius: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cognireklame-ad-headline {
        font-size: 1.5em;
    }
    .cognireklame-ad-slogan {
        font-size: 1em;
    }
    .cognireklame-ad-description {
        font-size: 0.9em;
    }
    .cognireklame-ad-quote {
        font-size: 1em;
    }
}
