/* ITC Core — front styles. Scoped under .itc- namespace.
 * Uses semantic CSS variables that the child theme defines (dark editorial palette).
 * Plugin provides fallback values for environments without the child theme active. */
:root {
    /* Semantic palette (theme will override these; these are fallbacks) */
    --itc-bg:           #1a1a1a;
    --itc-elevated:     #232323;
    --itc-text:         #ebe3d2;
    --itc-text-strong:  #f5efe6;
    --itc-text-muted:   #8a8478;
    --itc-accent:       #a1cae4;
    --itc-accent-warm:  #e483b3;   /* saturated soft fuchsia v1.2.3 — matches theme palette */
    --itc-line:         #2e2e2e;
    --itc-radius:       5px;
    --itc-font-serif: 'Cormorant Garamond', Georgia, serif;
    --itc-font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Legacy aliases for backward compat — point at new semantic colors */
    --itc-cream:   var(--itc-text-strong);
    --itc-beige:   var(--itc-line);
    --itc-brown:   var(--itc-text);
    --itc-black:   var(--itc-bg);
    --itc-muted:   var(--itc-text-muted);
}

/* ===== Reel Grid ===== */
.itc-reel-grid-wrap { width: 100%; }

.itc-reel-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px; justify-content: center;
}
.itc-filter {
    background: transparent; border: 1px solid var(--itc-text-strong);
    color: var(--itc-text-strong);
    padding: 6px 16px; font-family: var(--itc-font-sans); font-size: 13px;
    letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
    border-radius: var(--itc-radius); transition: all 0.2s ease;
}
.itc-filter:hover { border-color: var(--itc-accent); }
.itc-filter.is-active { background: var(--itc-text-strong); color: var(--itc-bg); }

.itc-reel-grid {
    display: grid;
    grid-template-columns: repeat(var(--itc-cols, 3), 1fr);
    gap: 16px;
}
@media (max-width: 768px) {
    .itc-reel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .itc-reel-grid { grid-template-columns: 1fr; }
}

.itc-reel-card {
    text-decoration: none; color: inherit; display: block;
    transition: transform 0.3s ease;
}
.itc-reel-card:hover { transform: translateY(-2px); }

.itc-reel-thumb {
    position: relative; width: 100%; aspect-ratio: 9/16;
    background: var(--itc-elevated) center/cover no-repeat;
    border-radius: var(--itc-radius); overflow: hidden;
}
.itc-reel-overlay {
    position: absolute; inset: 0; background: transparent;
    transition: background 0.3s ease;
}
.itc-reel-platform {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,0.7); color: var(--itc-text-strong);
    padding: 3px 8px; font-size: 10px; letter-spacing: 0.05em;
    text-transform: uppercase; border-radius: 2px;
}
.itc-reel-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    color: var(--itc-text-strong); font-size: 36px; opacity: 0; transition: opacity 0.2s ease;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.itc-reel-card:hover .itc-reel-play { opacity: 1; }

.itc-reel-hook {
    font-family: var(--itc-font-serif); font-style: italic;
    font-size: 14px; line-height: 1.4; color: var(--itc-text);
    margin: 12px 0 0; padding: 0;
}

.itc-empty {
    color: var(--itc-text-muted); text-align: center; padding: 40px 20px;
    font-family: var(--itc-font-sans);
}

/* ===== Form — Dark Editorial v1.2.2 =====
 * Editorial form treatment:
 *  - Italic Cormorant labels in pastel fuchsia (22px)
 *  - Field borders 1px sky blue, transparent bg
 *  - Required asterisk in pastel fuchsia (same as label, more visible than peach)
 *  - Focus: border deepens, subtle bg tint
 *  - Generous spacing between label and field, and between rows
 */
.itc-form {
    max-width: 600px; margin: 0 auto;
    font-family: var(--itc-font-sans);
    color: var(--itc-text-strong);
}
.itc-form-title {
    font-family: var(--itc-font-serif); font-style: italic;
    font-size: 32px; margin: 0 0 36px; text-align: center;
    color: var(--itc-text-strong);
    font-weight: 400;
}

.itc-form-row { margin-bottom: 36px; }

/* Label block */
.itc-form-row > label {
    display: block;
    cursor: pointer;
}
.itc-form-label {
    display: block;
    font-family: var(--itc-font-serif);
    font-style: italic;
    font-size: 22px;
    line-height: 1.2;
    color: var(--itc-accent-warm);   /* pastel fuchsia */
    margin-bottom: 18px;
    letter-spacing: 0;
    font-weight: 400;
}
.itc-form-req {
    color: var(--itc-accent-warm);   /* fuchsia, full opacity */
    margin-left: 4px;
    font-style: normal;
    font-family: var(--itc-font-sans);
    font-size: 16px;
    vertical-align: 2px;
}

/* Input / textarea / select — transparent bg, 1px sky-blue border */
.itc-form input[type="text"],
.itc-form input[type="email"],
.itc-form textarea,
.itc-form select {
    width: 100%; padding: 16px 18px;
    font-family: var(--itc-font-sans); font-size: 16px;
    background: transparent;
    color: var(--itc-text-strong);
    border: 1px solid var(--itc-accent);   /* sky blue */
    border-radius: 5px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    box-sizing: border-box;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Select dropdown chrome — custom arrow in sky blue */
.itc-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--itc-accent) 50%),
                      linear-gradient(135deg, var(--itc-accent) 50%, transparent 50%);
    background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 44px;
    cursor: pointer;
}
.itc-form select option {
    background: var(--itc-bg);
    color: var(--itc-text-strong);
    font-family: var(--itc-font-sans);
    font-size: 15px;
}

/* Placeholders — italic muted */
.itc-form input::placeholder,
.itc-form textarea::placeholder {
    color: var(--itc-text-muted);
    opacity: 0.75;
    font-style: italic;
    font-size: 15px;
}

/* Focus — border becomes brighter blue + slight tint */
.itc-form input:focus,
.itc-form textarea:focus,
.itc-form select:focus {
    outline: none;
    border-color: #c4dcef;   /* lifted sky-blue on focus */
    background-color: rgba(161, 202, 228, 0.05);
}

.itc-form textarea { resize: vertical; min-height: 140px; }

/* Checkbox row — hairline separation above */
.itc-form-row-checkbox {
    margin-bottom: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--itc-line);
}
.itc-form-row-checkbox > label {
    display: flex; align-items: center; gap: 14px;
    font-size: 15px;
    letter-spacing: 0.01em;
    color: var(--itc-text);
    cursor: pointer;
    font-family: var(--itc-font-sans);
    font-style: normal;
}
.itc-form-row-checkbox > label > span {
    line-height: 1.4;
}
.itc-form-row-checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px; height: 20px;
    background: transparent;
    border: 1px solid var(--itc-accent);   /* sky-blue border like fields */
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.itc-form-row-checkbox input[type="checkbox"]:hover {
    border-color: var(--itc-accent-warm);
}
.itc-form-row-checkbox input[type="checkbox"]:checked {
    background: var(--itc-accent-warm);   /* fills fuchsia when checked — accent pop */
    border-color: var(--itc-accent-warm);
}
.itc-form-row-checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px; top: 2px;
    width: 5px; height: 11px;
    border: solid var(--itc-bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Submit button — outline matching site global */
.itc-form-submit {
    background: transparent;
    color: var(--itc-text-strong);
    border: 1px solid var(--itc-text-strong);
    padding: 16px 40px;
    font-family: var(--itc-font-sans); font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em; text-transform: uppercase;
    cursor: pointer; border-radius: 5px;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    margin-top: 12px;
}
.itc-form-submit:hover {
    background: transparent;
    color: var(--itc-text-strong);
    border-color: var(--itc-accent);
}
.itc-form-submit:disabled { opacity: 0.5; cursor: wait; }

.itc-form-message {
    margin-top: 20px; padding: 14px 18px; border-radius: 5px;
    font-size: 14px; min-height: 0;
    font-family: var(--itc-font-sans);
}
.itc-form-message.is-success {
    background: rgba(161, 202, 228, 0.08);
    color: var(--itc-text-strong);
    border: 1px solid var(--itc-accent);
}
.itc-form-message.is-error {
    background: rgba(236, 179, 210, 0.06);
    color: var(--itc-accent-warm);
    border: 1px solid var(--itc-accent-warm);
}

/* Admin lead status pills */
.itc-status {
    display: inline-block; padding: 2px 10px; border-radius: 12px;
    font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
}
.itc-status-new      { background: #e8f3ff; color: #1d4480; }
.itc-status-replying { background: #fff4dc; color: #7a5400; }
.itc-status-booked   { background: #e3f4e3; color: #2c662c; }
.itc-status-archived { background: #eee; color: #555; }
