/**
 * FortiLabs Coupon Platform - Creator Videos & Deal Showcase Styles
 * High-authority, Claude-inspired design system
 *
 * @package FortiLabs_Coupons
 */

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.videos-hero {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 44px 0 36px;
    text-align: center;
}

.videos-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(217, 119, 87, 0.1);
    color: var(--accent);
    border: 1px solid rgba(217, 119, 87, 0.25);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.videos-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 auto 12px;
    max-width: 800px;
}

.videos-hero__desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 24px;
}

.videos-hero__search {
    max-width: 540px;
    margin: 0 auto;
}

.videos-hero__search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 5px 6px 5px 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.videos-hero__search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.15);
}

.videos-hero__search-icon {
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.videos-hero__search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.videos-hero__search-input::placeholder {
    color: var(--text-muted);
}

/* ==========================================================================
   2. FILTER NAVIGATION (LABS TABS)
   ========================================================================== */
.videos-filter-nav {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.videos-filter-nav__container {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.videos-filter-nav__container::-webkit-scrollbar {
    display: none;
}

.videos-filter-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none !important;
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.videos-filter-nav__link:hover {
    color: var(--text-primary);
    background: var(--bg-base);
}

.videos-filter-nav__link--active {
    background: var(--accent) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 6px rgba(217, 119, 87, 0.3);
}

/* ==========================================================================
   3. FEATURED SPOTLIGHT CARD
   ========================================================================== */
.video-spotlight {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.25s ease;
}

.video-spotlight:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(217, 119, 87, 0.35);
}

.video-spotlight__media {
    position: relative;
    background: #000;
    overflow: hidden;
}

.video-spotlight__thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.video-spotlight__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-spotlight:hover .video-spotlight__thumb {
    transform: scale(1.02);
}

.video-spotlight__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(20, 20, 19, 0.85);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.video-spotlight:hover .video-spotlight__play-btn {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.08);
    border-color: #FFFFFF;
}

.video-spotlight__content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-spotlight__badge-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.video-spotlight__title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
}

.video-spotlight__title a {
    color: var(--text-primary);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.video-spotlight__title a:hover {
    color: var(--accent);
}

.video-spotlight__desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 20px;
}

.video-spotlight__meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.video-spotlight__creator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-spotlight__actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ==========================================================================
   4. VIDEOS GRID & CARDS
   ========================================================================== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 24px;
}

.video-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(217, 119, 87, 0.35);
}

.video-card__thumb-link {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0F172A;
    overflow: hidden;
}

.video-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:hover .video-card__thumb {
    transform: scale(1.03);
}

.video-card__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 19, 0.85);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.video-card:hover .video-card__play-btn {
    background: var(--accent);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: #FFFFFF;
}

.video-card__duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    z-index: 2;
    pointer-events: none;
    line-height: 1.2;
}

.video-card__featured-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.video-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.video-card__creator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.video-card__creator-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.video-card__creator-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.video-card__creator-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.verified-blue-tick {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 3px;
    color: #1D9BF0;
    flex-shrink: 0;
}

.verified-blue-tick svg {
    display: block;
}

.video-card__verified-badge {
    color: #1D9BF0;
    display: inline-flex;
    align-items: center;
}

.video-card__category-tag {
    margin-left: auto;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-base);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
}

.video-card__title {
    font-size: 0.975rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.video-card__title-link {
    color: var(--text-primary);
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.video-card__title-link:hover {
    color: var(--accent);
}

.video-card__deal-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-base);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    border: 1px solid var(--border-color);
}

.video-card__store-logo {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    object-fit: contain;
}

.video-card__deal-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.video-card__store-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.video-card__discount-pill {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(217, 119, 87, 0.12);
    padding: 2px 6px;
    border-radius: 3px;
}

.video-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.video-card__code-preview {
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-card__code-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.video-card__code-val {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-base);
    padding: 1px 5px;
    border: 1px dashed var(--border-color);
    border-radius: 3px;
}

.video-card__badge-deal {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.video-card__deal-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(217, 119, 87, 0.08);
    border: 1px solid rgba(217, 119, 87, 0.25);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.video-card__deal-btn:hover {
    background: var(--accent);
    color: #FFFFFF !important;
    border-color: var(--accent);
    transform: translateY(-1px);
}

.video-card__view-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.video-card__view-count svg {
    opacity: 0.75;
}

.video-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.video-card__cta:hover {
    color: var(--accent-hover);
    transform: translateX(2px);
}

/* ==========================================================================
   5. VIDEO WATCH THEATER & DEAL CENTER
   ========================================================================== */
.video-theater {
    width: 100%;
    margin-bottom: 24px;
}

.video-theater__embed-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
}

.video-theater__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-header {
    margin-top: 20px;
}

.video-header__badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.video-header__duration {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.video-header__title {
    font-size: clamp(1.4rem, 3.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin: 0 0 10px;
}

.video-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.video-header__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.video-header__meta-sep {
    color: var(--border-color);
}

/* ==========================================================================
   6. CREATOR & DEAL COMMAND CENTER (CONVERSION BAR)
   ========================================================================== */
.creator-deal-center {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.creator-deal-center__creator {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-right: 1px solid var(--border-color);
    background: var(--bg-surface);
}

.creator-deal-center__avatar-wrap {
    flex-shrink: 0;
}

.creator-deal-center__avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.creator-deal-center__avatar-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.creator-deal-center__creator-name-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.creator-deal-center__creator-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.creator-deal-center__verified-badge {
    color: var(--accent);
    display: inline-flex;
}

.creator-deal-center__tagline {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0 6px;
}

.creator-deal-center__channel-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none !important;
}

.creator-deal-center__channel-link:hover {
    text-decoration: underline !important;
}

.creator-deal-center__deal {
    padding: 24px;
    background: linear-gradient(135deg, rgba(217, 119, 87, 0.04) 0%, var(--bg-surface) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.creator-deal-center__store-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.creator-deal-center__store-logo {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    object-fit: contain;
}

.creator-deal-center__featured-deal-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.creator-deal-center__store-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.creator-deal-center__discount-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.creator-deal-center__action-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.creator-deal-center__code-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px dashed var(--accent);
    padding: 5px 6px 5px 12px;
    border-radius: var(--radius-md);
}

.creator-deal-center__code-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-muted);
}

.creator-deal-center__code-val {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.creator-deal-center__copy-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.creator-deal-center__copy-btn.btn--copied {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #16A34A !important;
    border-color: #16A34A !important;
}

.creator-deal-center__claim-btn {
    padding: 9px 18px;
    font-size: 0.875rem;
    font-weight: 700;
}

.creator-deal-center__direct-link {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-block;
    margin-top: 6px;
}

.creator-deal-center__direct-link:hover {
    color: var(--accent);
    text-decoration: underline !important;
}
    font-size: 0.875rem;
    font-weight: 700;
}

/* ==========================================================================
   7. LAYOUT & SIDEBAR
   ========================================================================== */
.video-layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
}

.video-card-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.video-card-section__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.video-sidebar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.video-sidebar-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.video-sidebar-card__trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (260px - 2560px)
   ========================================================================== */
@media (max-width: 960px) {
    .video-spotlight {
        grid-template-columns: 1fr;
    }
    .creator-deal-center {
        grid-template-columns: 1fr;
    }
    .creator-deal-center__creator {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .video-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    .video-spotlight__content {
        padding: 20px;
    }
    .creator-deal-center__creator,
    .creator-deal-center__deal {
        padding: 16px;
    }
    .creator-deal-center__action-group {
        flex-direction: column;
        align-items: stretch;
    }
    .creator-deal-center__code-box {
        justify-content: space-between;
    }
    .creator-deal-center__claim-btn {
        justify-content: center;
        text-align: center;
    }
    .video-card-section {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .video-header__meta {
        gap: 4px 8px;
        font-size: 0.75rem;
    }
    .video-card__footer {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .videos-hero {
        padding: 28px 0 20px;
    }
    .videos-hero__title {
        font-size: 1.35rem;
    }
    .video-card__body {
        padding: 12px;
    }
    .video-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .video-card__deal-btn,
    .video-card__cta {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    .creator-deal-center__avatar {
        width: 44px;
        height: 44px;
    }
    .creator-deal-center__discount-text {
        font-size: 1rem;
    }
    .creator-deal-center__claim-btn {
        font-size: 0.8125rem;
        padding: 8px 12px;
    }
}
