/* ============================================================
   OWL Advertising — Styles v1.7
   ============================================================ */

/* ── Ad Wall Page Header ─────────────────────────────────── */
.owl-adwall-hero {
    background: linear-gradient(135deg, #0a1a0a 0%, #111 50%, #0d1a0d 100%);
    border-bottom: 1px solid #1a3a1a;
    padding: 40px 30px 36px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle grid texture overlay */
.owl-adwall-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,200,83,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,200,83,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.owl-adwall-hero-inner {
    position: relative;
    z-index: 1;
}

.owl-adwall-hero h2 {
    color: #ffffff !important;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 0 8px;
    letter-spacing: 0.02em;
}

.owl-adwall-hero h2 span {
    color: #00c853;
}

.owl-adwall-hero-sub {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.owl-adwall-stats {
    display: inline-flex;
    gap: 0;
    border: 1px solid #1a3a1a;
    border-radius: 10px;
    overflow: hidden;
    background: #0d0d0d;
}

.owl-adwall-stat {
    padding: 14px 28px;
    text-align: center;
    border-right: 1px solid #1a3a1a;
}

.owl-adwall-stat:last-child {
    border-right: none;
}

.owl-adwall-stat-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: #00c853;
    line-height: 1;
    margin-bottom: 4px;
}

.owl-adwall-stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
}

.owl-adwall-hero-cta {
    margin-top: 24px;
}

.owl-adwall-hero-cta a {
    display: inline-block;
    background: #00c853;
    color: #000 !important;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.15s;
}

.owl-adwall-hero-cta a:hover {
    background: #00e865;
    transform: translateY(-1px);
}

/* ── Ad Wall Container ───────────────────────────────────── */
.owl-ad-wall {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 36px 36px 28px;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-top: 3px solid #00c853;
    border-radius: 12px;
}

.owl-adwall-section {
    margin-bottom: 44px;
}

.owl-adwall-section:last-child {
    margin-bottom: 0;
}

/* ── Section Title ───────────────────────────────────────── */
.owl-adwall-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #aaa;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #222;
}

.owl-adwall-section-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #00c853;
    border-radius: 50%;
    flex-shrink: 0;
}

.owl-adwall-section-title::after {
    content: none;
}

/* ── Text Ads ────────────────────────────────────────────── */
.owl-adwall-grid-text {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.owl-ad-text-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px 18px 14px;
    color: #ddd !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    line-height: 1.55;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    min-height: 90px;
    position: relative;
    overflow: hidden;
}

.owl-ad-text-item::before {
    content: 'AD';
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #333;
    background: #222;
    padding: 2px 6px;
    border-radius: 3px;
}

.owl-ad-text-item::after {
    content: 'Visit →';
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #00c853;
    margin-top: 10px;
    letter-spacing: 0.04em;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.owl-ad-text-item:hover {
    border-color: #00c853;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(0,200,83,0.12);
    transform: translateY(-2px);
}

.owl-ad-text-item:hover::after {
    opacity: 1;
}

/* ── Banner Ads ──────────────────────────────────────────── */
.owl-adwall-grid-banners {
    display: grid;
    grid-template-columns: repeat(2, 468px);
    gap: 16px;
    justify-content: center;
}

.owl-ad-banner-item {
    display: block;
    width: 468px;
    max-width: 100%;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.owl-ad-banner-item img {
    display: block;
    width: 468px;
    max-width: 100%;
    height: 60px;
    object-fit: contain;
}

.owl-ad-banner-item:hover {
    box-shadow: 0 6px 24px rgba(0,200,83,0.3);
    transform: translateY(-2px);
}

/* ── Button Ads ──────────────────────────────────────────── */
.owl-adwall-grid-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.owl-ad-button-item {
    display: block;
    width: 125px;
    height: 125px;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.owl-ad-button-item img {
    display: block;
    width: 125px;
    height: 125px;
    object-fit: contain;
}

.owl-ad-button-item:hover {
    box-shadow: 0 8px 24px rgba(0,200,83,0.3);
    transform: translateY(-3px);
}

.owl-adwall-empty {
    text-align: center;
    padding: 60px 20px;
    color: #555;
}

.owl-adwall-empty a {
    color: #00c853;
}

/* ── My Ads Management ───────────────────────────────────── */
.owl-ads-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.owl-ads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px 24px;
}

.owl-ads-quota {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.owl-ads-quota-used {
    font-size: 2rem;
    font-weight: 800;
    color: #00c853;
}

.owl-ads-quota-sep { color: #555; font-size: 1.4rem; }

.owl-ads-quota-max {
    font-size: 1.4rem;
    font-weight: 700;
    color: #555;
}

.owl-ads-quota-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-left: 8px;
}

.owl-ads-form-card {
    background: #1a1a1a;
    border: 1px solid #00c853;
    border-radius: 8px;
    padding: 24px;
}

.owl-ads-form-card h3 {
    color: #00c853 !important;
    margin: 0 0 20px 0;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.owl-form-group { margin-bottom: 16px; }

.owl-form-group label {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.owl-form-group input[type="text"],
.owl-form-group input[type="url"],
.owl-form-group textarea,
.owl-form-group select {
    width: 100%;
    max-width: 500px;
    padding: 10px 14px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
}

.owl-form-group input:focus,
.owl-form-group textarea:focus,
.owl-form-group select:focus {
    outline: none;
    border-color: #00c853;
}

.owl-field-hint { color: #666; font-size: 0.8rem; margin-top: 4px; }

.owl-form-actions { display: flex; gap: 10px; margin-top: 20px; }

.owl-ad-image-preview { margin: 8px 0; min-height: 0; display: block; }

.owl-ad-image-preview img {
    display: block !important;
    max-width: 468px !important;
    max-height: 125px !important;
    width: auto !important;
    height: auto !important;
    border-radius: 4px;
    border: 1px solid #444;
}

.owl-ad-preview-image { margin: 8px 0 12px; display: block; }

.owl-ad-preview-image img {
    display: block !important;
    max-width: 100% !important;
    border-radius: 4px;
}

.owl-ad-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.owl-ad-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #2a2a2a;
}

.owl-ad-card-title { font-weight: 600; color: #e0e0e0; font-size: 0.95rem; }
.owl-ad-card-body { padding: 14px 20px; }

.owl-ad-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.owl-ad-type-badge {
    background: #2a2a2a;
    color: #888;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 3px;
}

.owl-ad-stats { color: #666; font-size: 0.8rem; }
.owl-ad-preview-text { color: #bbb; font-size: 0.9rem; font-style: italic; margin: 0; }
.owl-ad-rejected-note { color: #f87171; font-size: 0.85rem; margin: 8px 0 0; }

.owl-ad-card-actions {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #2a2a2a;
    background: #141414;
}

.owl-ad-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.owl-ad-status-active   { background: rgba(0,200,83,0.15);    color: #00c853; }
.owl-ad-status-pending  { background: rgba(245,158,11,0.15);  color: #f59e0b; }
.owl-ad-status-rejected { background: rgba(239,68,68,0.15);   color: #f87171; }
.owl-ad-status-inactive { background: rgba(100,100,100,0.15); color: #666; }
.owl-ad-status-overlimit { background: rgba(239,68,68,0.15);  color: #f87171; }

.owl-btn-sm { padding: 6px 14px !important; font-size: 0.8rem !important; }
.owl-btn-danger { border-color: #ef4444 !important; color: #ef4444 !important; }
.owl-btn-danger:hover { background: #ef4444 !important; color: #fff !important; }

/* ── Recruitment Panel (non-members) ────────────────────── */
.owl-adwall-recruit {
    max-width: 1100px;
    margin: 0 auto 36px;
    padding: 0 20px;
}

.owl-adwall-recruit-inner {
    background: linear-gradient(135deg, #0a1f0a 0%, #111827 100%);
    border: 1px solid #1a3a1a;
    border-left: 4px solid #00c853;
    border-radius: 10px;
    padding: 32px 36px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.owl-adwall-recruit-inner-generic {
    border-left: 4px solid #00c853;
}

.owl-adwall-recruit-avatar {
    flex-shrink: 0;
}

.owl-adwall-recruit-avatar img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    border: 2px solid #00c853;
    display: block;
}

.owl-adwall-recruit-content {
    flex: 1;
}

.owl-adwall-recruit-eyebrow {
    color: #00c853;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
}

.owl-adwall-recruit-headline {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.3;
}

.owl-adwall-recruit-body {
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0 0 16px;
    max-width: 700px;
}

.owl-adwall-recruit-points {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.owl-adwall-recruit-points span {
    color: #00c853;
    font-size: 0.85rem;
    font-weight: 700;
}

.owl-adwall-recruit-btn {
    display: inline-block;
    background: #00c853;
    color: #000 !important;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}

.owl-adwall-recruit-btn:hover {
    background: #00e865;
    color: #000 !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* ── Member Share Reminder Bar ───────────────────────────── */
.owl-adwall-member-share {
    max-width: 1100px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #0d2d1a;
    border: 1px solid #1a3a1a;
    border-radius: 8px;
    padding: 14px 20px;
    flex-wrap: wrap;
}

.owl-adwall-share-label {
    color: #888;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.owl-adwall-share-input {
    flex: 1;
    min-width: 220px;
    padding: 8px 12px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #00c853;
    font-size: 0.85rem;
    cursor: pointer;
}

.owl-adwall-share-input:focus {
    outline: none;
    border-color: #00c853;
}

/* ── My Ads Page — Personal Ad Wall Link Box ─────────────── */
.owl-adwall-myads-share {
    background: #0d2d1a;
    border: 1px solid #1a3a1a;
    border-left: 4px solid #00c853;
    border-radius: 8px;
    padding: 20px 24px;
}

.owl-adwall-myads-share-label {
    color: #aaa;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.owl-adwall-myads-share-label strong {
    color: #00c853;
}

.owl-adwall-myads-share-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.owl-adwall-myads-share-row .owl-adwall-share-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 6px;
    color: #00c853;
    font-size: 0.9rem;
    cursor: pointer;
}

/* ── Dashboard Ad Wall Link Box ──────────────────────────── */
.owl-adwall-link-box {
    margin-top: 12px;
}

.owl-adwall-link-box input {
    color: #00c853 !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
    .owl-adwall-grid-banners {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .owl-adwall-stats {
        flex-direction: column;
        border-radius: 10px;
    }
    .owl-adwall-stat { border-right: none; border-bottom: 1px solid #1a3a1a; }
    .owl-adwall-stat:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
    .owl-adwall-grid-text { grid-template-columns: 1fr; }
    .owl-ads-header { flex-direction: column; align-items: flex-start; }
    .owl-adwall-hero { padding: 28px 16px 24px; }
    .owl-adwall-hero h2 { font-size: 1.3rem; }
    .owl-ad-wall { padding: 20px 16px; border-radius: 8px; }
}

/* ── Inline Ad Shortcodes ────────────────────────────────── */
.owl-ads-inline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.owl-ads-inline-banners .owl-ad-banner-item {
    width: 468px;
    max-width: 100%;
}

.owl-ads-inline-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.owl-ads-inline-buttons .owl-ad-button-item {
    width: 125px;
    height: 125px;
    flex-shrink: 0;
}

/* ── Misc UI ─────────────────────────────────────────────── */
.owl-ads-quotas { display: flex; gap: 24px; align-items: center; }
.owl-ads-quota-storage .owl-ads-quota-used { color: #888; }
.owl-quota-over { color: #ef4444 !important; }
.owl-ad-card-badges { display: flex; gap: 6px; align-items: center; }
.owl-ad-card-over-limit { border-color: #3a1a1a; opacity: 0.75; }
.owl-ad-pending-note { color: #f59e0b; font-size: 0.85rem; margin: 8px 0 0; }
.owl-toggle-msg { padding: 8px 16px; font-size: 0.85rem; border-radius: 4px; margin-bottom: 8px; }

.owl-notice-warning {
    background: rgba(245,158,11,0.1);
    border: 1px solid #b45309;
    border-radius: 6px;
    padding: 12px 16px;
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.owl-upload-label {
    display: inline-block;
    cursor: pointer;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 6px;
    color: #ccc;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s;
    user-select: none;
}

.owl-upload-label:hover { border-color: #00c853; color: #00c853; }
