/* ========================================
   JESYAHW CLEARNOW - COMPONENTS
   Version: 1.0.0
   ======================================== */

/* ----------------------------------------
   NEWS HEADER BLOCK
   ---------------------------------------- */
.news-header-block {
    display: none;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: rgba(0, 119, 182, 0.04);
    border: 1px solid rgba(0, 119, 182, 0.1);
    border-radius: var(--radius-xl);
    text-decoration: none;
    margin-right: auto;
    margin-left: var(--space-8);
    max-width: 450px;
    transition: all var(--transition-base);
}

.news-header-block:hover {
    background: rgba(0, 119, 182, 0.08);
    border-color: rgba(0, 119, 182, 0.2);
    transform: translateY(-1px);
}

.news-block-badge {
    background: var(--primary-gradient);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.news-block-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-block-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-block-date {
    font-size: 10px;
    color: var(--text-secondary);
    opacity: 0.8;
}

@media (min-width: 1024px) {
    .news-header-block {
        display: flex;
    }
}

/* ----------------------------------------
   HEADER & NAVIGATION
   ---------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 var(--space-4);
    max-width: var(--container-xl);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: var(--weight-bold);
}

.logo-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background-color: rgba(0, 119, 182, 0.08);
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.mobile-menu-btn:hover {
    background: var(--bg-light);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: var(--shadow-2xl);
    z-index: var(--z-modal);
    transition: right var(--transition-base);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: var(--z-modal-backdrop);
    transition: opacity var(--transition-base);
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: var(--space-4);
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--bg-light);
    color: var(--primary);
}

@media (min-width: 1024px) {
    .nav {
        display: block;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: var(--space-10) 0 var(--space-6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    color: var(--text-inverse);
    margin-bottom: var(--space-4);
}

.footer-brand .logo-text {
    -webkit-text-fill-color: white;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.footer-nav-title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--text-inverse);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.footer-nav-list {
    list-style: none;
}

.footer-nav-link {
    display: block;
    padding: var(--space-2) 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-decoration: none;
}

.footer-nav-link:hover {
    color: var(--text-inverse);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-legal a {
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--text-inverse);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-inverse);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 182, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-primary);
    border-color: var(--border-dark);
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-inverse);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.btn-success {
    background: var(--success);
    color: var(--text-inverse);
}

.btn-danger {
    background: var(--danger);
    color: var(--text-inverse);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* ----------------------------------------
   CARDS
   ---------------------------------------- */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: var(--space-5);
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}

.card-text {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.card-footer {
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}

.card-featured {
    border: 2px solid var(--primary);
    position: relative;
}

.card-featured::before {
    content: 'Featured';
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-1) var(--space-3);
    background: var(--primary-gradient);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
}

/* ----------------------------------------
   FORMS
   ---------------------------------------- */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-2);
}

.form-label-required::after {
    content: ' *';
    color: var(--danger);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input-lg {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-lg);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-helper {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-2);
}

.form-error {
    color: var(--danger);
}

.form-input.error {
    border-color: var(--danger);
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.search-input {
    padding-left: var(--space-10);
}

/* ----------------------------------------
   BADGES & TAGS
   ---------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    border-radius: var(--radius-full);
}

.badge-primary {
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary);
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-light);
    color: var(--danger);
}

.badge-neutral {
    background: var(--bg-light);
    color: var(--text-secondary);
}

.tag {
    display: inline-flex;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tag:hover,
.tag.active {
    color: var(--primary);
    background: rgba(0, 119, 182, 0.08);
    border-color: var(--primary);
}

/* ----------------------------------------
   ALERTS
   ---------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-1);
}

.alert-info {
    background: var(--info-light);
    color: var(--info);
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger);
}

/* ----------------------------------------
   PROGRESS BARS
   ---------------------------------------- */
.progress {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* ----------------------------------------
   LOADING STATES
   ---------------------------------------- */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--border-light) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ----------------------------------------
   AD PLACEHOLDERS (Disciplined & Friendly)
   ---------------------------------------- */
.ad-placeholder {
    background: rgba(0, 119, 182, 0.02);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-4);
    text-align: center;
    position: relative;
    margin: var(--space-8) 0;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.ad-placeholder:hover {
    background: rgba(0, 119, 182, 0.04);
    border-color: var(--primary-light);
}

.ad-placeholder-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    padding: 2px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
}

.ad-placeholder::before {
    content: "Affiliate Partner Content";
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.ad-placeholder-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: var(--space-3);
    font-style: italic;
}

.ad-placeholder-hint a {
    color: var(--primary);
    text-decoration: underline;
}

/* ----------------------------------------
   BREADCRUMBS
   ---------------------------------------- */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    margin-bottom: var(--space-5);
}

.breadcrumbs-link {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs-link:hover {
    color: var(--primary);
}

.breadcrumbs-separator {
    color: var(--text-muted);
}

.breadcrumbs-current {
    color: var(--text-primary);
    font-weight: var(--weight-medium);
}

/* ----------------------------------------
   READING TIME
   ---------------------------------------- */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ----------------------------------------
   VERIFICATION RESULT
   ---------------------------------------- */
.verify-result {
    text-align: center;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    animation: fadeInUp var(--transition-slow);
}

.verify-result-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-result.real {
    background: var(--success-light);
}

.verify-result.real .verify-result-icon {
    background: var(--success);
    color: white;
}

.verify-result.misleading {
    background: var(--warning-light);
}

.verify-result.misleading .verify-result-icon {
    background: var(--warning);
    color: white;
}

.verify-result.fake {
    background: var(--danger-light);
}

.verify-result.fake .verify-result-icon {
    background: var(--danger);
    color: white;
}

.verify-result-label {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-2);
}

.verify-result.real .verify-result-label {
    color: var(--success);
}

.verify-result.misleading .verify-result-label {
    color: var(--warning);
}

.verify-result.fake .verify-result-label {
    color: var(--danger);
}

/* ----------------------------------------
   CHECKLIST
   ---------------------------------------- */
.checklist {
    list-style: none;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
}

.checklist-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.checklist-check.checked {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.checklist-text {
    flex: 1;
    font-size: var(--text-base);
}

.checklist-item.completed .checklist-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* ----------------------------------------
   VENDOR CARD
   ---------------------------------------- */
.vendor-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.vendor-logo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-light);
}

.vendor-info {
    padding: var(--space-5);
}

.vendor-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}

.vendor-category {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.vendor-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.vendor-actions {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    border-top: 1px solid var(--border-light);
}