/* Dashboard — Sell your console advertisement */

.site-sell-console-ad {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgb(245 158 11 / 0.35);
    background: linear-gradient(135deg, rgb(49 46 129 / 0.5), rgb(30 27 75 / 0.85));
}

.site-sell-console-ad-inner {
    position: relative;
    padding: 1.5rem 1.5rem 1.25rem;
}

@media (min-width: 640px) {
    .site-sell-console-ad-inner {
        padding: 1.75rem 1.75rem 1.5rem;
    }
}

.site-sell-console-ad-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 1.5rem;
}

.site-sell-console-ad-header {
    display: flex;
    flex: 1 1 18rem;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.25rem;
    min-width: 0;
}
.site-sell-console-ad-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    font-size: 1.625rem;
    line-height: 1;
    background: linear-gradient(135deg, rgb(245 158 11 / 0.28), rgb(99 102 241 / 0.35));
    border: 1px solid rgb(245 158 11 / 0.25);
}

.site-sell-console-ad-title-wrap {
    flex: 1 1 14rem;
    min-width: 0;
}

.site-sell-console-ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(252 211 77);
    background: rgb(245 158 11 / 0.14);
    border: 1px solid rgb(245 158 11 / 0.35);
}

.site-sell-console-ad-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.35;
}

.site-sell-console-ad-lead {
    font-size: 0.875rem;
    color: rgb(203 213 225);
    margin: 0.5rem 0 0;
    line-height: 1.55;
    max-width: 36rem;
}

.site-sell-console-ad-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

@media (max-width: 639px) {
    .site-sell-console-ad-actions {
        width: 100%;
        margin-left: 0;
        justify-content: stretch;
    }

    .site-sell-console-ad-cta {
        width: 100%;
    }
}

.site-sell-console-ad-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.625rem 1.15rem;
    border-radius: 0.75rem;
    border: 1px solid rgb(129 140 248 / 0.45);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, rgb(99 102 241), rgb(79 70 229));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    animation: site-sell-ad-cta-glow 3s ease-in-out infinite;
}

.site-sell-console-ad-cta-shimmer {
    position: absolute;
    inset: -1px;
    background: linear-gradient(
        110deg,
        transparent 0%,
        rgb(255 255 255 / 0.1) 40%,
        rgb(252 211 77 / 0.18) 50%,
        rgb(255 255 255 / 0.1) 60%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: site-sell-ad-cta-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

.site-sell-console-ad-cta-inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.site-sell-console-ad-cta:hover {
    transform: translateY(-1px);
    border-color: rgb(165 180 252 / 0.65);
    box-shadow: 0 8px 24px rgb(99 102 241 / 0.35);
    color: white;
}

.site-sell-console-ad-cta:hover .site-sell-console-ad-cta-inner svg {
    transform: translateX(3px);
}

.site-sell-console-ad-cta-inner svg {
    transition: transform 0.2s ease;
}

@keyframes site-sell-ad-cta-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgb(99 102 241 / 0.25);
    }
    50% {
        box-shadow: 0 0 18px 2px rgb(99 102 241 / 0.22);
    }
}

@keyframes site-sell-ad-cta-shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

html[data-theme='light'] .site-sell-console-ad {
    background: linear-gradient(135deg, rgb(255 251 235), rgb(238 242 255));
    border-color: rgb(251 191 36 / 0.45);
}

html[data-theme='light'] .site-sell-console-ad-title {
    color: rgb(15 23 42);
}

html[data-theme='light'] .site-sell-console-ad-lead {
    color: rgb(51 65 85);
}

html[data-theme='light'] .site-sell-console-ad-badge {
    color: rgb(180 83 9);
    background: rgb(254 243 199);
    border-color: rgb(251 191 36 / 0.55);
}

@media (prefers-reduced-motion: reduce) {
    .site-sell-console-ad-cta,
    .site-sell-console-ad-cta-shimmer {
        animation: none !important;
    }

    .site-sell-console-ad-cta:hover {
        transform: none;
    }
}
