/* ══════════════════════════════════════
   ROXYHITS HOMEPAGE — Dark Tech UI
   Digital Solutions Store
   ══════════════════════════════════════ */

/* Google Fonts loaded via functions.php */

/* ── HERO SECTION ────────────────────── */
.rh-hero {
    background: linear-gradient(135deg, #0A1628 0%, #0F1D32 40%, #1B2A4A 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.rh-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,180,216,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rh-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123,104,238,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rh-hero__content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.rh-hero__title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: 2.8rem;
    color: #F0F4F8;
    margin: 0 0 16px;
    line-height: 1.3;
}

.rh-hero__title span {
    color: #00B4D8;
}

.rh-hero__subtitle {
    font-family: 'Tajawal', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    color: #94A3B8;
    margin: 0 0 32px;
    line-height: 1.8;
}

.rh-hero__ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.rh-hero__cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #00B4D8, #0096B7);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,180,216,0.3);
}

.rh-hero__cta-primary:hover {
    background: linear-gradient(135deg, #48CAE4, #00B4D8);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,180,216,0.4);
    color: #fff !important;
}

.rh-hero__cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #F0F4F8 !important;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1.5px solid rgba(240,244,248,0.25);
    transition: all 0.3s ease;
}

.rh-hero__cta-secondary:hover {
    border-color: #00B4D8;
    color: #00B4D8 !important;
    background: rgba(0,180,216,0.06);
}

.rh-hero__trust-strip {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: #94A3B8;
}

.rh-hero__trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── TRUST BAR ───────────────────────── */
.rh-trust-bar {
    background: #1B2A4A;
    padding: 28px 20px;
    border-bottom: 1px solid rgba(0,180,216,0.1);
}

.rh-trust-bar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.rh-trust-bar__item {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

.rh-trust-bar__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.rh-trust-bar__icon--delivery { background: rgba(16,185,129,0.15); color: #10B981; }
.rh-trust-bar__icon--original { background: rgba(0,180,216,0.15); color: #00B4D8; }
.rh-trust-bar__icon--secure { background: rgba(123,104,238,0.15); color: #7B68EE; }
.rh-trust-bar__icon--support { background: rgba(245,158,11,0.15); color: #F59E0B; }

.rh-trust-bar__text {
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #F0F4F8;
}

.rh-trust-bar__text small {
    display: block;
    font-weight: 400;
    font-size: 0.78rem;
    color: #94A3B8;
    margin-top: 2px;
}

/* ── SECTION COMMONS ─────────────────── */
.rh-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.rh-section--dark {
    background: #0A1628;
}

.rh-section--surface {
    background: #0F1D32;
}

.rh-section__header {
    text-align: center;
    margin-bottom: 40px;
}

.rh-section__title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #F0F4F8;
    margin: 0 0 8px;
}

.rh-section__title span {
    color: #00B4D8;
}

.rh-section__subtitle {
    font-family: 'Tajawal', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    color: #94A3B8;
    margin: 0;
}

/* ── PRODUCT CARDS (Digital) ─────────── */
.rh-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.rh-product-card {
    background: #1B2A4A;
    border: 1px solid rgba(0,180,216,0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.rh-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,180,216,0.2);
}

.rh-product-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.rh-product-card__body {
    padding: 20px;
}

.rh-product-card__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.rh-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    white-space: nowrap;
}

.rh-badge--instant { background: #10B981; color: #fff; }
.rh-badge--original { background: #00B4D8; color: #fff; }
.rh-badge--pro { background: linear-gradient(135deg, #7B68EE, #6C5CE7); color: #fff; }
.rh-badge--hot { background: #EF4444; color: #fff; }
.rh-badge--save { background: #F59E0B; color: #0A1628; }
.rh-badge--subscription { border: 1px solid #00B4D8; color: #00B4D8; background: transparent; }
.rh-badge--license { border: 1px solid #7B68EE; color: #7B68EE; background: transparent; }

/* Pulse animation for instant delivery badge */
@keyframes rh-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.rh-badge--instant {
    animation: rh-pulse 3s ease-in-out infinite;
}

.rh-product-card__title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #F0F4F8;
    margin: 0 0 8px;
    line-height: 1.4;
}

.rh-product-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.rh-product-card__features li {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.82rem;
    color: #94A3B8;
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rh-product-card__features li::before {
    content: '✓';
    color: #10B981;
    font-weight: 700;
    font-size: 0.75rem;
}

.rh-product-card__price {
    margin-bottom: 16px;
}

.rh-product-card__price-old {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #94A3B8;
    text-decoration: line-through;
    margin-left: 8px;
}

.rh-product-card__price-current {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #00B4D8;
}

.rh-product-card__price-currency {
    font-size: 0.8rem;
    color: #94A3B8;
    font-weight: 400;
}

.rh-product-card__cta {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00B4D8, #0096B7);
    color: #fff !important;
    text-align: center;
    border: none;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.rh-product-card__cta:hover {
    background: linear-gradient(135deg, #48CAE4, #00B4D8);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,180,216,0.3);
    color: #fff !important;
}

/* ── CATEGORY CARDS ──────────────────── */
.rh-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.rh-category-card {
    background: #1B2A4A;
    border: 1px solid rgba(0,180,216,0.1);
    border-radius: 16px;
    padding: 32px 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.rh-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,180,216,0.3);
    box-shadow: 0 8px 32px rgba(0,180,216,0.15);
}

.rh-category-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.6rem;
}

.rh-category-card__icon--software { background: linear-gradient(135deg, #00B4D8, #0096B7); color: #fff; }
.rh-category-card__icon--security { background: linear-gradient(135deg, #10B981, #059669); color: #fff; }
.rh-category-card__icon--productivity { background: linear-gradient(135deg, #7B68EE, #6C5CE7); color: #fff; }
.rh-category-card__icon--entertainment { background: linear-gradient(135deg, #EF4444, #DC2626); color: #fff; }
.rh-category-card__icon--creative { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; }

.rh-category-card__name {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: #F0F4F8;
    margin: 0 0 4px;
}

.rh-category-card__count {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.78rem;
    color: #94A3B8;
}

/* ── WHY ROXYHITS ────────────────────── */
.rh-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.rh-why-card {
    background: #1B2A4A;
    border: 1px solid rgba(0,180,216,0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.rh-why-card:hover {
    border-color: rgba(0,180,216,0.3);
}

.rh-why-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.rh-why-card__title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #F0F4F8;
    margin: 0 0 8px;
}

.rh-why-card__desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    color: #94A3B8;
    line-height: 1.6;
    margin: 0;
}

/* ── NEWSLETTER ──────────────────────── */
.rh-newsletter {
    background: linear-gradient(135deg, #1B2A4A 0%, #0F1D32 100%);
    border-radius: 20px;
    padding: 48px 32px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    border: 1px solid rgba(0,180,216,0.15);
}

.rh-newsletter__title {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #F0F4F8;
    margin: 0 0 8px;
}

.rh-newsletter__desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    color: #94A3B8;
    margin: 0 0 24px;
}

.rh-newsletter__form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.rh-newsletter__input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid rgba(0,180,216,0.2);
    border-radius: 10px;
    background: #0A1628;
    color: #F0F4F8;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.rh-newsletter__input:focus {
    border-color: #00B4D8;
}

.rh-newsletter__input::placeholder {
    color: #94A3B8;
}

.rh-newsletter__btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #00B4D8, #0096B7);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.rh-newsletter__btn:hover {
    background: linear-gradient(135deg, #48CAE4, #00B4D8);
    transform: translateY(-1px);
}

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 1024px) {
    .rh-categories-grid { grid-template-columns: repeat(3, 1fr); }
    .rh-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .rh-hero { min-height: 400px; padding: 60px 16px; }
    .rh-hero__title { font-size: 2rem; }
    .rh-hero__subtitle { font-size: 1rem; }
    .rh-trust-bar__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .rh-categories-grid { grid-template-columns: repeat(2, 1fr); }
    .rh-products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .rh-why-grid { grid-template-columns: repeat(2, 1fr); }
    .rh-newsletter__form { flex-direction: column; }
    .rh-section { padding: 40px 16px; }
    .rh-section__title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .rh-hero__title { font-size: 1.6rem; }
    .rh-trust-bar__grid { grid-template-columns: 1fr; }
    .rh-categories-grid { grid-template-columns: 1fr 1fr; }
    .rh-products-grid { grid-template-columns: 1fr; }
    .rh-why-grid { grid-template-columns: 1fr; }
    .rh-hero__ctas { flex-direction: column; align-items: center; }
}

/* ── PAGE BODY OVERRIDE ──────────────── */
body.page-template-page-roxyhits-home {
    background: #0A1628 !important;
}

body.page-template-page-roxyhits-home .site-content {
    background: #0A1628;
}

body.page-template-page-roxyhits-home #content > .ast-container {
    max-width: 100%;
    padding: 0;
}

/* ── SEARCH BAR DARK THEME ───────────── */
.rc-header-search-row,
.rc-header-search-row--fibosearch {
    background: #1B2A4A !important;
    border-bottom: 1px solid rgba(0,180,216,0.1) !important;
}

.rc-header-search-row .rc-search-wrap,
.rc-header-search-row--fibosearch .rc-search-wrap {
    max-width: 700px;
    margin: 0 auto;
}

/* FiboSearch input dark theme */
.rc-header-search-row--fibosearch .dgwt-wcas-search-wrapp {
    background: transparent !important;
}

.rc-header-search-row--fibosearch .dgwt-wcas-sf-wrapp {
    background: #0F1D32 !important;
    border: 1px solid rgba(0,180,216,0.2) !important;
    border-radius: 12px !important;
}

.rc-header-search-row--fibosearch input.dgwt-wcas-search-input {
    background: transparent !important;
    color: #F0F4F8 !important;
    -webkit-text-fill-color: #F0F4F8 !important;
}

.rc-header-search-row--fibosearch input.dgwt-wcas-search-input::placeholder {
    color: #94A3B8 !important;
    -webkit-text-fill-color: #94A3B8 !important;
}

.rc-header-search-row--fibosearch .dgwt-wcas-search-submit,
.rc-header-search-row--fibosearch .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit {
    background: #00B4D8 !important;
    border: none !important;
    border-radius: 0 12px 12px 0 !important;
}

/* Astra header icons */
.ast-header-woo-cart .ast-cart-menu-wrap .count,
.ast-header-woo-cart .ast-woo-header-cart-info-wrap {
    color: #00B4D8 !important;
}

.ast-header-account-wrap .ast-header-account-type-icon .ahfb-svg-iconset svg,
.ast-header-woo-cart .ast-cart-menu-wrap svg {
    fill: #F0F4F8 !important;
}

/* Astra header icon links */
header .ast-header-woo-cart a,
header .ast-header-account-wrap a,
.ast-site-header-cart a {
    color: #F0F4F8 !important;
}

header .ast-header-woo-cart a:hover,
header .ast-header-account-wrap a:hover {
    color: #00B4D8 !important;
}

/* Remove cyan sidebar strip */
.ast-separate-container .ast-article-single,
.ast-separate-container .comments-area,
.ast-page-builder-template .entry-content {
    background: transparent !important;
}

/* Site container background */
.ast-separate-container,
.ast-page-builder-template .site-content > .ast-container {
    background: transparent !important;
}

/* ── HEADER EDGE FIXES ───────────────── */
/* Fix cyan strip on left side of below-header */
.ast-below-header .ast-builder-grid-row {
    background: transparent !important;
}

.ast-below-header .site-below-header-wrap,
.ast-below-header-bar {
    background: linear-gradient(135deg, #0A1628 0%, #0F1D32 100%) !important;
}

/* Astra mobile hamburger */
.ast-mobile-menu-trigger-minimal,
.ast-button-wrap .menu-toggle {
    color: #F0F4F8 !important;
    background: transparent !important;
    border: 1px solid rgba(240, 244, 248, 0.2) !important;
}

/* Header top bar background */
.ast-above-header-bar,
.ast-above-header {
    background: #0A1628 !important;
}

/* Primary header */
#ast-desktop-header .ast-primary-header-bar,
.ast-primary-header-bar {
    background: #0A1628 !important;
    border-bottom: 1px solid rgba(0, 180, 216, 0.1) !important;
}

/* Cart amount color */
.ast-header-woo-cart .ast-woo-header-cart-info-wrap,
.ast-site-header-cart .ast-addon-cart-wrap {
    color: #00B4D8 !important;
}
