.gradient-bg {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%);
}
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    clip-path: circle(0% at var(--click-x, 50%) var(--click-y, 50%));
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}
.page-transition.active {
    clip-path: circle(150% at var(--click-x, 50%) var(--click-y, 50%));
}
.page-transition .preview-header {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 50%, #dc2626 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.page-transition .preview-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}
.page-transition .preview-meta {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
}
.prose h1 { font-size: 2rem; font-weight: bold; margin: 1.5rem 0; }
.prose h2 { font-size: 1.5rem; font-weight: bold; margin: 1.25rem 0; }
.prose h3 { font-size: 1.25rem; font-weight: bold; margin: 1rem 0; }
.prose p { margin: 1rem 0; line-height: 1.75; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 2rem; }
.prose li { margin: 0.5rem 0; }
.prose a { color: #dc2626; text-decoration: underline; }
.prose blockquote { border-left: 4px solid #dc2626; padding-left: 1rem; font-style: italic; margin: 1rem 0; color: #6b7280; }
.prose code { background: #f3f4f6; padding: 0.25rem 0.5rem; border-radius: 0.25rem; font-size: 0.875rem; }
.prose pre { background: #1f2937; color: white; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; }
.prose hr { border-color: #e5e7eb; margin: 2rem 0; }
.youtube-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #000;
}
.youtube-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}
.fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}

.cta-popup {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 340px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    animation: slideInRight 0.6s ease-out 2s forwards;
    transition: transform 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(120px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cta-popup.hidden {
    display: none;
}

.cta-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.cta-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.cta-content {
    padding: 1.5rem;
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.cta-text {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #dc2626;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}

.cta-button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 10px;
    height: 10px;
    opacity: 1;
}

.particle.confetti {
    width: 8px;
    height: 12px;
    animation: confettiFall 2s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--rotate));
    }
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(var(--rotate)) scale(0.3);
    }
}

@media (max-width: 1400px) {
    .cta-popup {
        right: 1.5rem;
        bottom: 1.5rem;
        width: 300px;
    }

    .cta-image {
        height: 160px;
    }
}

@media (max-width: 1280px) {
    .cta-popup {
        right: 1rem;
        bottom: 1rem;
        width: 280px;
    }

    .cta-image {
        height: 150px;
    }

    .cta-content {
        padding: 1.25rem;
    }

    .cta-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 1024px) {
    .cta-popup {
        right: 50%;
        bottom: 1rem;
        transform: translateX(50%);
        width: calc(100% - 2rem);
        max-width: 500px;
        animation: slideInBottom 0.6s ease-out 2s forwards;
    }

    @keyframes slideInBottom {
        from {
            opacity: 0;
            transform: translateX(50%) translateY(100px);
        }
        to {
            opacity: 1;
            transform: translateX(50%) translateY(0);
        }
    }

    .cta-popup .cta-image {
        height: 140px;
    }
}

@media (max-width: 768px) {
    .cta-popup {
        display: none;
    }

    .cta-popup .cta-image {
        height: 120px;
    }

    .cta-content {
        padding: 1rem;
    }

    .cta-title {
        font-size: 1rem;
    }

    .cta-text {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 0.65rem 1.25rem;
        font-size: 0.8rem;
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(120px);
    }
}
