/* === ADVERTISEMENT STYLES === */

/* 1. Top Banner Ad (Below Header) */
.ad-top-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 16px auto;
    max-width: 1200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ad-top-banner a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ad-top-banner a:hover {
    text-decoration: underline;
}

/* 2. Sidebar Ad (Right side of preview) */
.ad-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.dark .ad-sidebar {
    background: #1f2937;
    border-color: #374151;
}

.ad-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.dark .ad-sidebar-title {
    color: #f3f4f6;
}

.ad-sidebar-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.dark .ad-sidebar-text {
    color: #9ca3af;
}

.ad-sidebar-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

.ad-sidebar-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 3. Example Page Ad (Between examples) */
.ad-example-banner {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    margin: 32px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ad-example-banner h3 {
    color: white;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ad-example-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 16px;
}

.ad-example-banner a {
    background: white;
    color: #f5576c;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

.ad-example-banner a:hover {
    transform: scale(1.05);
}

/* 4. Thank You Page Ad (After save/download) */
.ad-thankyou {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    margin: 24px auto;
    max-width: 600px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ad-thankyou h2 {
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}

.ad-thankyou p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ad-thankyou-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ad-thankyou-button {
    background: white;
    color: #4facfe;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ad-thankyou-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.ad-thankyou-button.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

/* Responsive */
@media (max-width: 768px) {
    .ad-sidebar {
        position: static;
        margin: 16px 0;
    }

    .ad-top-banner {
        font-size: 12px;
        padding: 10px 16px;
    }

    .ad-thankyou {
        padding: 24px 16px;
    }
}

/* Hide ads in print */
@media print {

    .ad-top-banner,
    .ad-sidebar,
    .ad-example-banner,
    .ad-thankyou {
        display: none !important;
    }
}