/* Blockversity Suite - Pages minimal styles */
.bgd-wrap { max-width: 1440px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .bgd-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .bgd-wrap { padding: 0 60px; } }
[x-cloak] { display: none !important; }
.bgd-hero-top { display:block; }
.bv-grid { display:grid; grid-template-columns: 70% 30%; gap: 40px; align-items:flex-start; }
@media (max-width: 900px) { .bv-grid { grid-template-columns: 1fr; } }
/* Hide the page title on the Group Details page */
.entry-title, .page-title { display: none !important; }

/* Cover image styles */
.bgd-cover { width: 100%; height: auto; overflow: hidden; position: relative; border-radius: 0.5rem; margin-bottom: 1rem; background: #f3f4f6; max-height: 50vh; }
.bgd-cover img, .bgd-cover video, .bgd-cover iframe { width: 100%; height: auto; max-height: 50vh; display: block; object-fit: cover; }
/* hide SSR fallback once Alpine component signals hydration */
.alpine-ready .bgd-cover .bgd-fallback { display: none !important; }

/* Album Style - Gallery/Media Picker */
.bgd-gallery { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.bgd-thumb { border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; cursor: pointer; background: #fff; transition: all 0.2s ease; }
.bgd-thumb:hover { border-color: var(--bgd-primary, #C05DEE); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.bgd-thumb.is-active { border-color: var(--bgd-primary, #C05DEE); box-shadow: 0 0 0 2px rgba(192,93,238,0.2) inset; }
.bgd-thumb:focus { outline: 3px solid rgba(192,93,238,0.65); outline-offset: 2px; }
.bgd-thumb img { width: 100%; height: 90px; object-fit: cover; display:block; }
.bgd-thumb .bgd-video-pill { display:flex; justify-content:center; align-items:center; height: 90px; background:#111; color:#fff; font-size: 12px; font-weight: 600; }

/* Content styles */
.bgd-title { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 2.25rem; line-height: 2.5rem; letter-spacing: 0.05em; margin: 0.5rem 0 1rem; text-transform: uppercase; text-align: left; color: #6c63ff; }
.bgd-meta, .bv-card-title { text-transform: none; }
.bgd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; font-family: 'Montserrat', sans-serif; margin-bottom: 1rem; color: #000; }
.bgd-desc { font-size: 0.95rem; line-height: 1.6rem; margin-top: 1rem; text-align: left; color: #000; }
.bgd-brief { font-size: 0.9rem; line-height: 1.5rem; margin-top: 1rem; text-align: left; color: #666; font-style: italic; }

/* Affiliate Dashboard Styles */
.bv-affiliate-wrap {
    max-width: 100%;
}

.bv-affiliate-stats {
    margin: 1.5rem 0;
}

.stat-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-value.clicks { color: #7c3aed; }
.stat-value.conversions { color: #059669; }
.stat-value.earnings { color: #dc2626; }

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.bv-affiliate-tools {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.tool-item {
    margin-bottom: 1.5rem;
}

.tool-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: #374151;
    font-weight: 600;
}

.tool-item input[type="text"] {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.875rem;
    width: 100%;
}

.tool-item input[type="text"]:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.tool-item button {
    background: #6b7280;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.2s ease;
}

.tool-item button:hover {
    background: #4b5563;
}

.tool-item button.primary {
    background: #7c3aed;
}

.tool-item button.primary:hover {
    background: #6d28d9;
}

.tool-item .description {
    margin: 0.25rem 0 0 0;
    font-size: 0.75rem;
    color: #6b7280;
}

.quick-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-actions button {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

/* Stripe Congratulations Page Styles */
.stripe-congratulations-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.success-icon {
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.whats-next {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.step {
    transition: transform 0.2s ease;
}

.step:hover {
    transform: translateY(-4px);
}

.step h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.step p {
    margin: 0;
    line-height: 1.5;
}

.primary-button {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.39) !important;
    transition: all 0.2s ease !important;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(124, 58, 237, 0.5) !important;
}

.secondary-button {
    transition: all 0.2s ease !important;
}

.secondary-button:hover {
    background: #f8fafc !important;
    border-color: #7c3aed !important;
    color: #7c3aed !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.group-info-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.group-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.support-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

.support-section a {
    transition: color 0.2s ease;
}

.support-section a:hover {
    color: #5b21b6;
}

/* Hide page title and header on Stripe congratulations page */
body.page-stripe-account-return .entry-title,
body.page-stripe-account-return h1.entry-title,
body.page-stripe-account-return .page-header,
body.page-stripe-account-return .page-header h1,
body.page-stripe-account-return h1.page-title,
body.page-stripe-account-return .entry-header,
body.page-stripe-account-return .entry-header h1,
body.page-stripe-account-return header h1,
body.page-stripe-account-return .breadcrumb,
body.page-stripe-account-return .woocommerce-breadcrumb,
body.post-stripe-account-return .entry-title,
body.post-stripe-account-return h1.entry-title,
body.post-stripe-account-return .page-header,
body.post-stripe-account-return .page-header h1,
body.post-stripe-account-return h1.page-title,
body.post-stripe-account-return .entry-header,
body.post-stripe-account-return .entry-header h1,
body.post-stripe-account-return header h1,
body.post-stripe-account-return .breadcrumb,
body.post-stripe-account-return .woocommerce-breadcrumb {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* Also hide any theme-specific page headers (but keep site header) */
body.page-stripe-account-return .page-title-area,
body.page-stripe-account-return .hero-section,
body.page-stripe-account-return .wp-block-post-title,
body.page-stripe-account-return .h1,
body.page-stripe-account-return .page-heading,
body.page-stripe-account-return .content-header {
    display: none !important;
}

/* Ensure the congratulations content is visible */
body.page-stripe-account-return .stripe-congratulations-wrap {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Sidebar card */
.bv-aside { margin-top: 0; }
.bv-card { background:#fff; border:1px solid #e5e7eb; border-radius: 16px; padding: 16px; text-align: center; box-shadow: 0 1px 6px rgba(0,0,0,0.06); }
.bv-card-cover { width:100%; height:140px; border-radius: 12px; overflow:hidden; background:#eee; }
.bv-card-cover img { width:100%; height:100%; object-fit: cover; display:block; }
.bv-card-avatar { margin-top:-36px; }
.bv-card-avatar img { width:72px; height:72px; border-radius:999px; border:4px solid #fff; object-fit:cover; }
.bv-card-title { margin-top:10px; font-weight:600; }
.bv-card-cta { margin-top:14px; }
.bv-cta { background: var(--bgd-primary, #C05DEE); color:#fff; border:none; padding: 12px 16px; border-radius: 9999px; font-weight:600; cursor:pointer; width:100%; }
.bv-cta:hover { opacity: 0.95; }
.bv-powered { margin-top:14px; font-size:12px; color:#7a7a7a; }
body.bv-modal-open { overflow: hidden; }
.bv-login-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 9999; }
.bv-login-modal[hidden] { display: none !important; }
.bv-login-modal__overlay { position: absolute; inset: 0; background: rgba(20, 0, 40, 0.55); backdrop-filter: blur(2px); }
.bv-login-modal__dialog { position: relative; background: #fff; border-radius: 20px; padding: 32px; width: 100%; max-width: 420px; box-shadow: 0 24px 60px rgba(82, 43, 141, 0.25); font-family: 'Montserrat', sans-serif; text-align: left; }
.bv-login-modal__close { position: absolute; top: 18px; right: 18px; background: transparent; border: none; color: #6b46c1; font-size: 28px; line-height: 1; cursor: pointer; padding: 4px; }
.bv-login-modal__header h2 { margin: 0 0 6px 0; font-size: 1.75rem; color: #4c1d95; line-height: 1.2; }
.bv-login-modal__header p { margin: 0 0 20px 0; color: #4b5563; font-size: 0.95rem; }
.bv-login-modal__toggle { display: flex; gap: 8px; margin-bottom: 24px; background: #f3f4f6; padding: 4px; border-radius: 10px; }
.bv-login-modal__toggle-btn { flex: 1; padding: 10px 16px; border: none; background: transparent; color: #6b7280; font-weight: 600; font-size: 0.95rem; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; }
.bv-login-modal__toggle-btn:hover { color: #4c1d95; }
.bv-login-modal__toggle-btn[aria-pressed="true"], .bv-login-modal__toggle-btn.is-active { background: #fff; color: var(--bgd-primary, #C05DEE); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.bv-login-modal__forms { position: relative; }
.bv-login-modal__form { display: flex; flex-direction: column; gap: 12px; }
.bv-login-modal__form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bv-login-modal__form-group { display: flex; flex-direction: column; gap: 8px; }
.bv-login-modal__consent { margin-top: 4px; }
.bv-login-modal__checkbox { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 0.9rem; color: #4b5563; }
.bv-login-modal__checkbox input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.bv-login-modal__checkbox a { color: var(--bgd-primary, #C05DEE); text-decoration: none; }
.bv-login-modal__checkbox a:hover { text-decoration: underline; }
.bv-login-modal__label { font-weight: 600; color: #4338ca; font-size: 0.9rem; }
.bv-login-modal__input { border: 1px solid #d1d5db; border-radius: 10px; padding: 12px 14px; font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.bv-login-modal__input:focus { outline: none; border-color: var(--bgd-primary, #C05DEE); box-shadow: 0 0 0 3px rgba(192, 93, 238, 0.2); }
.bv-login-modal__submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: none; cursor: pointer; background: linear-gradient(135deg, var(--bgd-primary, #C05DEE), #8b5cf6); color: #fff; font-weight: 600; font-size: 1rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.bv-login-modal__submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(139, 92, 246, 0.25); }
.bv-login-modal__submit:disabled { opacity: 0.6; cursor: default; }
.bv-login-modal__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.6); border-top-color: #fff; animation: bv-spin 0.8s linear infinite; }
.bv-login-modal.is-loading .bv-login-modal__submit-text { opacity: 0; }
.bv-login-modal.is-loading .bv-login-modal__spinner { display: inline-block; }
.bv-login-modal__messages { min-height: 22px; margin-top: 12px; font-size: 0.9rem; }
.bv-login-modal__error { color: #b91c1c; margin: 0; }
.bv-login-modal__success { color: #047857; margin: 0; }
.bv-login-modal__footer { margin-top: 18px; font-size: 0.95rem; color: #4b5563; display: flex; flex-direction: column; gap: 6px; }
.bv-login-modal__footer-text { margin: 0; }
.bv-login-modal__link { background: transparent; border: none; color: var(--bgd-primary, #C05DEE); padding: 0; margin-left: 6px; font-weight: 600; cursor: pointer; text-decoration: underline; font-size: 0.95rem; }
.bv-login-modal__link:hover { text-decoration: none; }
@media (max-width: 540px) {
  .bv-login-modal__dialog { padding: 28px 22px; }
  .bv-login-modal__header h2 { font-size: 1.5rem; }
  .bv-login-modal__form-row { grid-template-columns: 1fr; }
}
@keyframes bv-spin {
  to { transform: rotate(360deg); }
}
/* Admin cropper helpers */
.bv-admin .cropper-container { z-index: 10; }
.bv-admin .cropper-bg { background-color: rgba(0,0,0,0.3); }
.bv-admin .cropper-view-box { outline: 2px solid #3b82f6; }
