/**
 * Purple Gradient Override for WordPress Blocks
 * Overrides inline styles with !important
 */

/* CTA sections - override inline blue gradients */
.wp-block-group.alignfull.has-background[style*="gradient"],
.wp-block-group.has-background[style*="linear-gradient"],
.wp-block-cover[style*="gradient"] {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
    background-image: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
}

/* Features section - dark gradient background with radial decorations */
.wp-block-statusdrift-features {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%) !important;
}

/* Feature cards - white background with shadows */
.wp-block-statusdrift-features .feature-card {
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05) !important;
}

.wp-block-statusdrift-features .feature-card h3 {
    color: #111827 !important;
}

.wp-block-statusdrift-features .feature-card p {
    color: #4b5563 !important;
}

/* CTA text colors for good contrast */
.wp-block-group.alignfull.has-background[style*="gradient"] h2,
.wp-block-group.alignfull.has-background[style*="gradient"] .wp-block-heading {
    color: #fff !important;
}

.wp-block-group.alignfull.has-background[style*="gradient"] p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* CTA button styling */
.wp-block-group.alignfull.has-background[style*="gradient"] .wp-block-button__link {
    background: #fff !important;
    color: #8B5CF6 !important;
    border: none !important;
}

.wp-block-group.alignfull.has-background[style*="gradient"] .wp-block-button__link:hover {
    background: #f9fafb !important;
    color: #7C3AED !important;
}

/* ========================================
   Purple Button Hover Fix - Ensure readable text
   ======================================== */

/* Primary purple buttons - ensure white text on hover */
.wp-block-button__link.has-primary-background-color:hover,
.wp-block-button__link[style*="8B5CF6"]:hover,
.wp-block-button .wp-block-button__link:hover {
    background-color: #7C3AED !important;
    color: #fff !important;
}

/* Buttons with primary background */
.has-primary-background-color:hover {
    background-color: #7C3AED !important;
    color: #fff !important;
}

/* Header CTA button */
.header-cta .wp-block-button__link:hover {
    background-color: #7C3AED !important;
    color: #fff !important;
}

/* General WordPress block buttons */
.wp-element-button:hover {
    color: #fff !important;
}

/* Outline buttons on hover */
.is-style-outline .wp-block-button__link:hover {
    background-color: #8B5CF6 !important;
    color: #fff !important;
    border-color: #8B5CF6 !important;
}

/* ========================================
   Pricing Page - WordPress Columns Fix
   Scoped to main content only (not footer)
   ======================================== */

/* Convert to flex grid for 3+1 layout - only in main content */
.page-pricing main .wp-block-columns.is-layout-flex {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    justify-content: center !important;
    padding-top: 1rem;
}

/* First 3 columns take 1/3 width each */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column {
    flex: 0 0 calc(33.333% - 1.5rem) !important;
    max-width: calc(33.333% - 1.5rem) !important;
}

/* Enterprise (4th column) - horizontal compact layout */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-top: 1rem;
    padding: 2rem 2.5rem !important;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    border: none !important;
    color: #fff;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2rem !important;
}

/* Enterprise - horizontal content layout */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) > * {
    margin: 0 !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) h3 {
    font-size: 1.5rem !important;
    margin-bottom: 0.25rem !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) > p:first-of-type {
    flex: 0 0 auto;
    max-width: 200px;
}

/* Enterprise features list - horizontal */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) ul,
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) .wp-block-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem 1.5rem !important;
    flex: 1 !important;
    margin: 0 !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) li {
    margin-bottom: 0 !important;
    font-size: 0.875rem !important;
}

/* Enterprise button */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) .wp-block-button {
    flex-shrink: 0 !important;
}

/* Mobile: stack vertically */
@media (max-width: 900px) {
    .page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem !important;
    }

    .page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) > p:first-of-type {
        max-width: none;
    }

    .page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) ul,
    .page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) .wp-block-list {
        justify-content: center !important;
    }
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) h3,
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) .wp-block-heading {
    color: #fff !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) p {
    color: #9ca3af !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) li {
    color: #d1d5db !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) li::before {
    color: #8B5CF6 !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) .wp-block-button__link {
    background: #fff !important;
    color: #111827 !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) .wp-block-button__link:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

/* Tablet: 2 columns for first 3, full width Enterprise */
@media (max-width: 1024px) {
    .page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }

    .page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Mobile: stack cards vertically */
@media (max-width: 768px) {
    .page-pricing main .wp-block-columns.is-layout-flex {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Reset featured card scale on mobile */
    .page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(2) {
        transform: none !important;
    }

    .page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(2):hover {
        transform: translateY(-2px) !important;
    }
}

/* Pricing cards - more padding and better spacing - only in main content */
.page-pricing main .wp-block-columns {
    gap: 2rem;
}

/* Reset outer column - let inner wp-block-group handle styling */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 1rem;
    transition: all 0.2s ease;
}

/* Style the inner wp-block-group as the card */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column > .wp-block-group {
    padding: 2.5rem 2rem !important;
    border-radius: 1rem !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    height: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
}

/* Push button to bottom of card */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column > .wp-block-group > .wp-block-buttons,
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column > .wp-block-group > .wp-block-button {
    margin-top: auto !important;
}

/* Feature list grows to fill space */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column > .wp-block-group > .wp-block-list,
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column > .wp-block-group > ul {
    flex-grow: 1;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:hover > .wp-block-group {
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1);
    transform: translateY(-2px);
}

/* Fix bullet lists in pricing cards */
.page-pricing main .wp-block-column ul,
.page-pricing main .wp-block-column .wp-block-list {
    padding-left: 0;
    margin-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.page-pricing main .wp-block-column li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1rem;
    padding-left: 0;
    padding-right: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #374151;
}

.page-pricing main .wp-block-column li::before {
    content: "✓";
    color: #10b981;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0;
}

/* Unavailable features - red X */
.page-pricing main .wp-block-column li.feature-unavailable {
    color: #9ca3af;
}

.page-pricing main .wp-block-column li.feature-unavailable::before {
    content: "✕";
    color: #ef4444;
}

/* Inline monitor dropdown in feature list */
.page-pricing main li.has-monitor-dropdown {
    padding: 0 !important;
}

.page-pricing main li.has-monitor-dropdown::before {
    display: none !important;
}

.pricing-monitor-inline {
    width: 100%;
    padding: 0.5rem 2.5rem 0.5rem 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    color: #111827;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat 0.5rem center,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat calc(100% - 0.75rem) center,
        #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-size: 16px 16px, 12px 12px;
}

.pricing-monitor-inline:focus {
    outline: none;
    border-color: #8B5CF6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.pricing-monitor-inline:hover {
    border-color: #8B5CF6;
}

/* Remove default list markers */
.page-pricing main .wp-block-column ul li::marker,
.page-pricing main .wp-block-column .wp-block-list li::marker {
    content: none;
}

/* Price styling */
.page-pricing main .wp-block-column h3:first-of-type {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Featured card styling (Starter - 2nd card) */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(2) {
    position: relative;
    z-index: 1;
    transform: scale(1.02);
}

/* Featured card inner group - purple border via box-shadow */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(2) > .wp-block-group {
    border: none !important;
    box-shadow: 0 0 0 2px #8B5CF6, 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(2):hover {
    transform: scale(1.02) translateY(-2px);
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(2):hover > .wp-block-group {
    transform: none;
}

/* Most Popular badge for Starter */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(2)::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #8B5CF6;
    color: #fff;
    padding: 4px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
}

/* Hide duplicate "MOST POPULAR" text inside card */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(2) > p:first-of-type {
    display: none !important;
}

/* Comparison table fixes */
.page-pricing main .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
}

.page-pricing main .wp-block-table th,
.page-pricing main .wp-block-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.page-pricing main .wp-block-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.page-pricing main .wp-block-table tbody tr:hover {
    background: #f9fafb;
}

/* ========================================
   FAQ Section - Reset pricing card styles
   These rules must come AFTER the pricing card rules to override them
   ======================================== */

/* FAQ section uses .has-gray-50-background-color class - reset ALL card styles */
.page-pricing main .has-gray-50-background-color .wp-block-columns,
.page-pricing main .has-gray-50-background-color .wp-block-column {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    border-color: transparent !important;
    z-index: auto !important;
    position: static !important;
}

.page-pricing main .has-gray-50-background-color .wp-block-column:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Explicitly reset the 2nd column featured styling in FAQ */
.page-pricing main .has-gray-50-background-color .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(2) {
    border-color: transparent !important;
    box-shadow: none !important;
    transform: none !important;
    z-index: auto !important;
    position: static !important;
}

.page-pricing main .has-gray-50-background-color .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(2):hover {
    transform: none !important;
}

/* Remove "Most Popular" badge from FAQ columns */
.page-pricing main .has-gray-50-background-color .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(2)::before {
    content: none !important;
    display: none !important;
}

/* Reset list styles in FAQ - no checkmarks */
.page-pricing main .has-gray-50-background-color .wp-block-column li::before {
    content: none !important;
    display: none !important;
}

.page-pricing main .has-gray-50-background-color .wp-block-column li {
    display: list-item !important;
    color: inherit !important;
}

/* ========================================
   Enterprise Plan - Fix layout and text colors
   ======================================== */

/* Remove inner white background and make it transparent to show outer dark gradient */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) > .wp-block-group {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
}

/* The Enterprise plan (4th column) needs white/light text */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4),
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) * {
    color: #fff !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) p {
    color: #d1d5db !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) li {
    color: #e5e7eb !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) li::before {
    color: #8B5CF6 !important;
}

/* Contact Sales button container - centered, not full width */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) .wp-block-button {
    margin-top: 1.5rem !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) .wp-block-buttons {
    justify-content: center !important;
    width: 100% !important;
}

/* Center the Enterprise column contents */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Also center the inner group content for Enterprise */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) > .wp-block-group {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* Make buttons wrapper full width so centering works */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) .wp-block-buttons {
    width: 100% !important;
    justify-content: center !important;
}

/* Override 100% width on Enterprise button */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) .wp-block-button.wp-block-button__width-100 {
    width: auto !important;
    flex: none !important;
}

/* Contact Sales button - white background on dark card */
.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) .wp-block-button__link {
    background: #fff !important;
    color: #111827 !important;
    padding: 0.875rem 2.5rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    display: inline-block !important;
    width: auto !important;
    min-width: 200px !important;
    max-width: 250px !important;
    transition: all 0.2s ease !important;
}

.page-pricing main .wp-block-columns.is-layout-flex > .wp-block-column:nth-child(4) .wp-block-button__link:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

