/* ============================================================
   LancerTube — Premium Medical Video Platform (Light Theme)
   ============================================================ */

/* Reset for LancerTube container */
.lt-app {
    background: #f5f7fa;
    color: #333;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    padding-bottom: 60px;
}

.lt-app *, .lt-app *::before, .lt-app *::after { box-sizing: border-box; }

/* Standalone subscribe wrapper — no visual footprint, modals still work */
.lt-subscribe-standalone {
    min-height: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    position: relative;
}

/* ============================================================
   HEADER
   ============================================================ */
.lt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: #fff;
    border-bottom: 1px solid #e0e4ea;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lt-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lt-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.lt-logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.lt-tagline {
    font-size: 15px;
    font-weight: 600;
    color: #4A90D9;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.lt-search-box input {
    background: #f0f2f5;
    border: 1px solid #dde1e7;
    color: #333;
    padding: 10px 18px;
    border-radius: 25px;
    width: 320px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.lt-search-box input:focus {
    border-color: #4A90D9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.12);
}
.lt-search-box input::placeholder { color: #999; }

.lt-user-badge {
    color: #555;
    font-size: 14px;
}
.lt-user-badge small {
    background: #4A90D9;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 5px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.lt-btn {
    display: inline-block;
    padding: 10px 22px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.lt-btn-primary { background: #4A90D9; color: #fff; }
.lt-btn-primary:hover { background: #3a7bc8; color: #fff; }

.lt-btn-accent { background: #e50914; color: #fff; margin-left: 8px; }
.lt-btn-accent:hover { background: #b20710; color: #fff; }

.lt-btn-full { width: 100%; padding: 12px; font-size: 16px; }

.lt-btn-plan {
    background: #4A90D9;
    color: #fff;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
}
.lt-btn-plan:hover { background: #3a7bc8; color: #fff; }

/* ============================================================
   CATEGORY TABS
   ============================================================ */
.lt-category-tabs {
    display: flex;
    gap: 8px;
    padding: 15px 30px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid #e8ebf0;
}

.lt-cat-tab {
    background: #f0f2f5;
    color: #666;
    border: 1px solid #dde1e7;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.lt-cat-tab:hover { border-color: #4A90D9; color: #4A90D9; background: rgba(74, 144, 217, 0.06); }
.lt-cat-tab.active { background: #4A90D9; color: #fff; border-color: #4A90D9; }

/* ============================================================
   VIDEO GRID
   ============================================================ */
.lt-category-section {
    padding: 30px 30px 15px;
}

.lt-section-title {
    color: #222;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 18px;
    padding-left: 14px;
    border-left: 3px solid #4A90D9;
}

.lt-video-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 10px;
}

/* ============================================================
   VIDEO CARD
   ============================================================ */
.lt-video-card {
    background: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.lt-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Thumbnail wrapper */
.lt-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #e8ebf0;
}

.lt-thumb-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.lt-thumb-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8ebf0;
    color: #bbb;
    font-size: 48px;
}

/* Preview video (hidden by default, shows on hover) */
.lt-preview-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 2;
}

.lt-video-card:hover .lt-preview-video.lt-playing {
    opacity: 1;
}
.lt-video-card:hover .lt-thumb-img {
    opacity: 0.3;
}

/* Lock overlay */
.lt-lock-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.lt-lock-icon {
    color: rgba(255, 215, 0, 0.9);
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Access level badge */
.lt-access-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 4;
}

.lt-access-basic { background: rgba(74, 144, 217, 0.9); color: #fff; }
.lt-access-pro { background: rgba(230, 81, 0, 0.9); color: #fff; }
.lt-access-max { background: rgba(123, 31, 162, 0.9); color: #fff; }

/* Card info */
.lt-card-info { padding: 14px 16px; }

.lt-video-code {
    font-size: 11px;
    color: #4A90D9;
    font-weight: 700;
    letter-spacing: 1px;
}

.lt-video-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin: 4px 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lt-video-desc {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px;
    line-height: 1.4;
}

.lt-card-meta {
    font-size: 12px;
    color: #999;
}

/* ============================================================
   FOOTER AREA
   ============================================================ */
.lt-footer-area {
    text-align: center;
    padding: 50px 30px;
    color: #aaa;
    font-size: 14px;
    border-top: 1px solid #e0e4ea;
    margin-top: 20px;
}

.lt-footer-area p { margin: 5px 0; }

.lt-footer-area .lt-footer-brand {
    color: #4A90D9;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ============================================================
   MODALS (keep dark for focus/cinematic feel)
   ============================================================ */
.lt-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lt-modal-content {
    background: #fff;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.lt-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}
.lt-modal-close:hover { color: #333; }

/* Player Modal — stays dark for video viewing */
.lt-player-modal-content {
    width: 90%;
    max-width: 900px;
    padding: 0;
    background: #111;
}

.lt-player-wrapper {
    position: relative;
    background: #000;
    width: 100%;
}

.lt-player-wrapper video {
    width: 100%;
    display: block;
    max-height: 500px;
}

.lt-player-shield {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: calc(100% - 40px);
    z-index: 1;
    cursor: pointer;
}

.lt-player-info {
    padding: 20px;
}
.lt-player-info h2 {
    color: #fff;
    font-size: 20px;
    margin: 5px 0 10px;
}
.lt-player-info p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.6;
}

/* Subscribe Modal */
.lt-subscribe-modal-content {
    width: 90%;
    max-width: 800px;
    padding: 30px;
}

.lt-subscribe-header {
    text-align: center;
    margin-bottom: 25px;
}
.lt-subscribe-header h2 { color: #222; font-size: 24px; margin: 0 0 8px; }
.lt-subscribe-header p { color: #888; font-size: 14px; margin: 0; }

.lt-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.lt-plan-card {
    background: #f8f9fb;
    border: 2px solid #e0e4ea;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.lt-plan-card:hover { border-color: #4A90D9; box-shadow: 0 4px 15px rgba(74, 144, 217, 0.12); }

.lt-plan-name { color: #222; font-size: 20px; margin: 0 0 12px; }

.lt-price-amount { font-size: 32px; font-weight: 800; color: #4A90D9; }
.lt-price-cycle { color: #888; font-size: 14px; }

/* Billing Cycle Toggle Bar */
.lt-billing-toggle-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 25px;
    background: #f0f2f5;
    border-radius: 25px;
    padding: 4px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.lt-cycle-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 22px;
    background: transparent;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.lt-cycle-btn.active {
    background: #4A90D9;
    color: #fff;
}

.lt-plan-yearly { color: #999; font-size: 13px; margin-top: 5px; }

.lt-plan-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
}
.lt-plan-features li {
    color: #666;
    font-size: 13px;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}
.lt-plan-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

/* Auth Modals */
.lt-auth-modal-content {
    width: 90%;
    max-width: 500px;
    padding: 30px;
}

.lt-auth-modal-content h2 {
    color: #222;
    text-align: center;
    margin: 0 0 20px;
}

.lt-auth-form .lt-form-group {
    margin-bottom: 15px;
}

.lt-auth-form label {
    display: block;
    color: #555;
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 600;
}
.lt-auth-form label span { color: #e50914; }

.lt-auth-form input {
    width: 100%;
    padding: 10px 14px;
    background: #f8f9fb;
    border: 1px solid #dde1e7;
    color: #333;
    border-radius: 6px;
    font-size: 14px;
}
.lt-auth-form input:focus {
    border-color: #4A90D9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.lt-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lt-auth-switch {
    text-align: center;
    margin-top: 15px;
    color: #999;
    font-size: 13px;
}
.lt-auth-switch a { color: #4A90D9; text-decoration: none; }

.lt-auth-msg {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    min-height: 20px;
}
.lt-auth-msg.lt-error { color: #e50914; }
.lt-auth-msg.lt-success { color: #4caf50; }

/* Plan Selection in Register */
.lt-plan-select-title {
    color: #222;
    font-size: 16px;
    margin: 20px 0 10px;
    text-align: center;
}

.lt-plan-select-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.lt-plan-select-card {
    flex: 1;
    cursor: pointer;
}
.lt-plan-select-card input { display: none; }

.lt-plan-select-inner {
    background: #f8f9fb;
    border: 2px solid #dde1e7;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: border-color 0.3s;
}

.lt-plan-select-card input:checked + .lt-plan-select-inner {
    border-color: #4A90D9;
    background: rgba(74, 144, 217, 0.06);
}

.lt-plan-select-inner strong { display: block; color: #222; font-size: 14px; }
.lt-plan-select-inner span { color: #4A90D9; font-size: 13px; }

.lt-billing-toggle {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.lt-toggle-option {
    color: #666;
    font-size: 14px;
    cursor: pointer;
}
.lt-toggle-option input { margin-right: 5px; }

/* ============================================================
   YOUTUBE TEASER BUTTON + MODAL
   ============================================================ */
.lt-teaser-btn {
    background: rgba(255, 0, 0, 0.08);
    color: #e50914;
    border: 1px solid rgba(255, 0, 0, 0.2);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    margin-left: 8px;
}
.lt-teaser-btn:hover {
    background: rgba(255, 0, 0, 0.15);
}
.lt-teaser-btn svg { flex-shrink: 0; }

.lt-teaser-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.lt-teaser-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px 8px 0 0;
}

/* ============================================================
   USER DROPDOWN
   ============================================================ */
.lt-user-dropdown {
    position: relative;
}

.lt-user-badge {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.2s;
}
.lt-user-badge:hover { background: rgba(74, 144, 217, 0.08); }

.lt-dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    color: #999;
}

.lt-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    min-width: 160px;
    padding: 6px 0;
    display: none;
    z-index: 200;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.lt-dropdown-menu.lt-dropdown-open { display: block; }

.lt-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}
.lt-dropdown-menu a:hover {
    background: rgba(74, 144, 217, 0.08);
    color: #4A90D9;
}

/* ============================================================
   CONTINUE WATCHING — Progress Bar
   ============================================================ */
.lt-watch-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.lt-watch-progress-fill {
    height: 100%;
    background: #e50914;
    border-radius: 0 2px 2px 0;
    transition: width 0.3s;
}

.lt-resume-label {
    color: #4A90D9;
    font-size: 12px;
    font-weight: 600;
}

.lt-continue-watching-section {
    border-bottom: 1px solid #e8ebf0;
    padding-bottom: 20px;
}

/* ============================================================
   MY ACCOUNT MODAL
   ============================================================ */
.lt-account-modal-content {
    width: 90%;
    max-width: 600px;
    padding: 30px;
}

.lt-account-modal-content h2 {
    color: #222;
    text-align: center;
    margin: 0 0 25px;
    font-size: 22px;
}

.lt-account-section {
    margin-bottom: 25px;
}

.lt-account-section h3 {
    color: #4A90D9;
    font-size: 16px;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8ebf0;
}

.lt-account-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lt-account-info-item {
    background: #f8f9fb;
    border: 1px solid #e8ebf0;
    border-radius: 8px;
    padding: 12px 15px;
}

.lt-info-label {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lt-info-value {
    color: #222;
    font-size: 14px;
    font-weight: 600;
}

/* Account Action Buttons */
.lt-account-actions {
    margin-bottom: 20px;
}

/* Payment History Table inside My Account */
.lt-payment-history-table {
    max-height: 250px;
    overflow-y: auto;
}

.lt-payment-history-table table {
    width: 100%;
    border-collapse: collapse;
}

.lt-payment-history-table th {
    background: #f8f9fb;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    padding: 8px 12px;
    text-align: left;
    position: sticky;
    top: 0;
}

.lt-payment-history-table td {
    padding: 8px 12px;
    color: #555;
    font-size: 13px;
    border-bottom: 1px solid #f0f2f5;
}

.lt-payment-history-table tr:hover td {
    background: rgba(74, 144, 217, 0.04);
}

/* Badges */
.lt-account-modal-content .lt-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.lt-badge-active { background: rgba(76, 175, 80, 0.12); color: #2e7d32; }
.lt-badge-expired { background: rgba(255, 152, 0, 0.12); color: #e65100; }
.lt-badge-cancelled { background: rgba(244, 67, 54, 0.12); color: #c62828; }
.lt-badge-pending { background: rgba(255, 193, 7, 0.12); color: #f57f17; }
.lt-badge-success { background: rgba(76, 175, 80, 0.12); color: #2e7d32; }
.lt-badge-failed { background: rgba(244, 67, 54, 0.12); color: #c62828; }
.lt-badge-basic { background: rgba(74, 144, 217, 0.12); color: #2968a8; }
.lt-badge-pro { background: rgba(230, 81, 0, 0.12); color: #e65100; }
.lt-badge-max { background: rgba(123, 31, 162, 0.12); color: #7b1fa2; }

/* ============================================================
   WP MENU — LancerTube Login/Account Link
   ============================================================ */
.lt-menu-login-link a,
.lt-menu-account-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.lt-menu-login-link a { color: #4A90D9 !important; }
.lt-menu-account-link a { color: #2e7d32 !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .lt-header { padding: 12px 15px; flex-wrap: wrap; gap: 10px; }
    .lt-header-center { order: 3; width: 100%; }
    .lt-search-box input { width: 100%; }
    .lt-category-tabs { padding: 10px 15px; }
    .lt-category-section { padding: 15px; }
    .lt-video-row { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .lt-plans-grid { grid-template-columns: 1fr; }
    .lt-form-grid-2 { grid-template-columns: 1fr; }
    .lt-plan-select-grid { flex-direction: column; }
    .lt-subscribe-modal-content, .lt-auth-modal-content, .lt-account-modal-content { width: 95%; padding: 20px; }
    .lt-account-info-grid { grid-template-columns: 1fr; }
}
