/* CSS tambahan untuk memastikan WordPress block editor berfungsi dengan baik */

/* Container utility (jika belum ada di Tailwind config) */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Custom classes untuk mengganti inline styles yang repetitif */
.template-card {
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.template-card:hover {
    transform: translateY(-0.75rem);
}

.badge-tag {
    background: #f0f0f0;
    padding: 0.25rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.8rem;
    display: inline-block;
}

.list-none-unstyled {
    list-style: none;
    margin-bottom: 2rem;
    padding-left: 0;
}

.prose {
    /* Perbaikan untuk list WordPress blocks */
}

.prose ul {
    list-style-type: disc !important;
    padding-left: 2rem !important;
    margin: 1.5rem 0 !important;
    display: block !important;
}

.prose ol {
    list-style-type: decimal !important;
    padding-left: 2rem !important;
    margin: 1.5rem 0 !important;
    display: block !important;
}

.prose li {
    display: list-item !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.75 !important;
    color: #374151 !important;
    padding-left: 0.5rem !important;
}

.prose li::marker {
    color: #16a34a !important;
    font-weight: bold !important;
}

/* Nested lists */
.prose ul ul,
.prose ol ol,
.prose ul ol,
.prose ol ul {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Perbaikan untuk headings */
.prose h2:not(.wp-block-heading h2),
.prose .wp-block-heading h2 {
    color: var(--tw-prose-bptgold, #2a2a2a) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    line-height: 1.25 !important;
}

.prose h3:not(.wp-block-heading h3),
.prose .wp-block-heading h3 {
    color: var(--tw-prose-bptgold, #2a2a2a) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
}

.prose h4:not(.wp-block-heading h4),
.prose .wp-block-heading h4,
.prose h5:not(.wp-block-heading h5),
.prose .wp-block-heading h5,
.prose h6:not(.wp-block-heading h6),
.prose .wp-block-heading h6 {
    color: var(--tw-prose-bptgold, #2a2a2a) !important;
    font-weight: 600 !important;
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
}

/* WordPress block quote */
.prose .wp-block-quote,
.prose blockquote {
    border-left: 4px solid var(--tw-prose-bptgold, #2a2a2a) !important;
    padding-left: 1.5rem !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    background-color: #f9fafb !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
    font-style: italic !important;
    margin: 1.5rem 0 !important;
}

.prose .wp-block-quote p,
.prose blockquote p {
    margin-bottom: 0.5rem !important;
}

.prose .wp-block-quote p:last-child,
.prose blockquote p:last-child {
    margin-bottom: 0 !important;
}

/* WordPress block images */
.prose .wp-block-image,
.prose .wp-block-media-text {
    margin-bottom: 2rem !important;
}

.prose .wp-block-image img {
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
}

.prose .wp-block-image figcaption {
    color: var(--tw-prose-bptgold, #2a2a2a) !important;
    text-align: center !important;
    font-size: 0.875rem !important;
    margin-top: 0.5rem !important;
    font-weight: 500 !important;
}

/* WordPress table blocks */
.prose .wp-block-table table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 1.5rem !important;
}

.prose .wp-block-table th {
    border: 1px solid #d1d5db !important;
    background-color: #f9fafb !important;
    padding: 0.75rem 1rem !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.prose .wp-block-table td {
    border: 1px solid #d1d5db !important;
    padding: 0.75rem 1rem !important;
}

.prose .wp-block-table tr:nth-child(odd) {
    background-color: white !important;
    color: var(--tw-prose-bptdarkblue, #1e293b) !important;
}

.prose .wp-block-table tr:nth-child(even) {
    background-color: var(--tw-prose-bptdarkblue, #1e293b) !important;
    color: white !important;
}

/* WordPress paragraph spacing */
.prose .wp-block-paragraph,
.prose p {
    margin-bottom: 1rem !important;
    line-height: 1.75 !important;
    color: #374151 !important;
}

/* WordPress code blocks */
.prose .wp-block-code {
    background-color: #111827 !important;
    color: white !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
    overflow-x: auto !important;
    margin-bottom: 1.5rem !important;
}

.prose code:not(.wp-block-code code) {
    background-color: #f3f4f6 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.25rem !important;
    font-size: 0.875rem !important;
    font-family: ui-monospace, monospace !important;
    color: #1f2937 !important;
}

/* Strong dan emphasis */
.prose strong {
    color: var(--tw-prose-bptgold, #2a2a2a) !important;
    font-weight: 600 !important;
}

.prose em {
    font-style: italic !important;
    color: #4b5563 !important;
}

/* Links */
.prose a {
    color: var(--tw-prose-bptgold, #2a2a2a) !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.prose a:hover {
    color: white !important;
    text-decoration: underline !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .prose {
        font-size: 0.95rem !important;
    }

    .prose h1 {
        font-size: 1.75rem !important;
    }

    .prose h2 {
        font-size: 1.375rem !important;
    }

    .prose h3 {
        font-size: 1.125rem !important;
    }

    .prose ul,
    .prose ol {
        padding-left: 1.25rem !important;
    }
}

/* ===== Glass Morphism & Luxury Design ===== */

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card-strong {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Frosted Glass Effect */
.frosted-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Luxury Gradient Text */
.luxury-gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Luxury Shadow */
.luxury-shadow {
    box-shadow:
        0 0 20px rgba(102, 126, 234, 0.3),
        0 10px 40px rgba(118, 75, 162, 0.2),
        0 20px 60px rgba(240, 147, 251, 0.1);
}

.luxury-shadow-hover {
    transition: all 0.3s ease;
}

.luxury-shadow-hover:hover {
    box-shadow:
        0 0 30px rgba(102, 126, 234, 0.4),
        0 15px 50px rgba(118, 75, 162, 0.3),
        0 25px 70px rgba(240, 147, 251, 0.2);
    transform: translateY(-5px);
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Glow Effect */
.glow-effect {
    box-shadow:
        0 0 10px rgba(102, 126, 234, 0.5),
        0 0 20px rgba(118, 75, 162, 0.3),
        0 0 30px rgba(240, 147, 251, 0.2);
}

.glow-effect-hover {
    transition: all 0.3s ease;
}

.glow-effect-hover:hover {
    box-shadow:
        0 0 20px rgba(102, 126, 234, 0.7),
        0 0 40px rgba(118, 75, 162, 0.5),
        0 0 60px rgba(240, 147, 251, 0.3);
}

/* Premium Button */
.btn-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Gradient Border */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Modern Card Hover */
.modern-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Blur Backdrop */
.blur-backdrop {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Premium Badge */
.premium-badge {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(253, 160, 133, 0.5);
}