/* ============================================================
   OWL DIRECTOR'S NEST STYLES
   ============================================================ */

/* ── Message Button on Dashboard ───────────────────────── */
.owl-dn-button-wrap {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.owl-dn-message-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0d2d1a 0%, #1a3a1a 100%);
    border: 1px solid #00AA44;
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 18px 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    width: 100%;
    max-width: 520px;
}

.owl-dn-message-btn:hover {
    background: linear-gradient(135deg, #1a3a1a 0%, #0d4020 100%);
    border-color: #00cc55;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 170, 68, 0.25);
}

/* ── NEW Badge ──────────────────────────────────────────── */
.owl-dn-new-badge {
    display: inline-block;
    background: #ff4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    animation: owl-dn-pulse 1.4s ease-in-out infinite;
}

@keyframes owl-dn-pulse {
    0%   { opacity: 1; transform: scale(1); }
    50%  { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* ── Preview Link (Directors only) ─────────────────────── */
.owl-dn-preview-link {
    background: none;
    border: none;
    color: #666;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    text-decoration: underline;
}

.owl-dn-preview-link:hover {
    color: #00AA44;
}

/* ── Modal Overlay ──────────────────────────────────────── */
.owl-dn-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* ── Modal Box ──────────────────────────────────────────── */
.owl-dn-modal {
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: 3px solid #00AA44;
    border-radius: 10px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: owl-dn-modal-in 0.2s ease-out;
}

@keyframes owl-dn-modal-in {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Modal Close Button ─────────────────────────────────── */
.owl-dn-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 1;
}

.owl-dn-modal-close:hover {
    color: #ffffff;
}

/* ── Modal Header ───────────────────────────────────────── */
.owl-dn-modal-header {
    padding: 20px 50px 16px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid #2a2a2a;
}

.owl-dn-preview-label {
    background: #1a1200;
    color: #ffa000;
    font-size: 0.8rem;
    padding: 8px 24px;
    border-bottom: 1px solid #2a2000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.owl-dn-director-link {
    color: #00AA44 !important;
    text-decoration: none !important;
}

.owl-dn-director-link:hover {
    text-decoration: underline !important;
}

/* ── Modal Body ─────────────────────────────────────────── */
.owl-dn-modal-body {
    padding: 24px;
}

.owl-dn-modal-message {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 20px 0;
    padding: 16px;
    background: #111;
    border-left: 3px solid #00AA44;
    border-radius: 4px;
}

/* ── Video Embed ────────────────────────────────────────── */
.owl-dn-video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}

.owl-dn-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Director's Nest Page ───────────────────────────────── */
.owl-dn-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.owl-dn-section {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.owl-dn-section-title {
    color: #00AA44 !important;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 8px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #2a2a2a;
}

.owl-dn-section-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 12px 0 24px;
}

/* ── Director's form fields ─────────────────────────────── */
.owl-dn-form .owl-form-group {
    margin-bottom: 20px;
}

.owl-dn-form label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}

.owl-dn-form label small {
    font-weight: normal;
    color: #888;
}

.owl-dn-form input[type="text"],
.owl-dn-form input[type="url"],
.owl-dn-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ffffff;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    font-family: inherit;
}

.owl-dn-form input:focus,
.owl-dn-form textarea:focus {
    outline: none;
    border-color: #00AA44;
}

.owl-field-tip {
    display: block;
    color: #00AA44;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}
.owl-dn-char-count {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    text-align: right;
}

#owl_dn_char_remaining {
    font-weight: 700;
    color: #888;
}

/* ── Preview note ───────────────────────────────────────── */
.owl-dn-preview-note {
    background: #0d1a0d;
    border: 1px solid #1a3a1a;
    border-radius: 6px;
    padding: 12px 16px;
    color: #aaa;
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.owl-dn-preview-note a {
    color: #00AA44 !important;
    text-decoration: none !important;
}

/* ── Preview button in Director's Nest form ─────────────── */
.owl-dn-preview-btn-wrap {
    margin-top: 10px;
}

.owl-dn-preview-btn {
    background: none;
    border: 1px solid #333;
    color: #888;
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.owl-dn-preview-btn:hover {
    border-color: #00AA44;
    color: #00AA44;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .owl-dn-modal {
        max-height: 95vh;
    }
    .owl-dn-section {
        padding: 20px;
    }
    .owl-dn-message-btn {
        font-size: 0.9rem;
        padding: 12px 18px;
    }
}
