/* Majoon theme overrides. Scoped, additive only. */

/* Brand tokens + theme variable remap */
:root {
    --majoon-deep-navy: #0B1026;
    --majoon-warm-cream: #FFF5E6;
    --majoon-mint: #26D0B3;
    --majoon-coral: #FF6B5E;
    --majoon-royal-blue: #3764FF;
    --majoon-yellow: #FFD23F;
    --majoon-soft-teal: #72CFC3;
    --majoon-dark-blue: #10295F;
    --majoon-salmon: #E75F70;

    --tg-body-font-family: 'Inter', sans-serif;
    --tg-heading-font-family: 'Poppins', sans-serif;
    --tg-heading2-font-family: 'Poppins', sans-serif;

    --tg-theme-primary: var(--majoon-mint);
    --tg-heading-color: var(--majoon-deep-navy);
    --tg-body-color: var(--majoon-warm-cream);

    --tg-color-dark: var(--majoon-deep-navy);
    --tg-color-white-default: var(--majoon-warm-cream);
    --tg-color-black-2: var(--majoon-dark-blue);
    --tg-color-light-blue: var(--majoon-royal-blue);
    --tg-color-yellow-default: var(--majoon-yellow);
    --tg-color-red-default: var(--majoon-coral);
}

body {
    background: var(--majoon-deep-navy);
    color: var(--majoon-warm-cream);
}

h1, h2, h3, h4, h5, h6,
.title,
.section__title .title {
    color: var(--majoon-warm-cream);
}

a {
    color: var(--majoon-warm-cream);
}

a:hover {
    color: var(--majoon-mint);
}

.text-theme {
    color: var(--majoon-mint) !important;
}

.btn-two,
.btn-two::after {
    background: var(--majoon-coral) !important;
}

.btn-two:hover,
.btn-two:focus {
    background: var(--majoon-mint) !important;
}

.black-bg {
    background: var(--majoon-deep-navy) !important;
}

.black2-bg {
    background: var(--majoon-dark-blue) !important;
}

/* Arabic typography */
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select {
    font-family: 'Tajawal', 'Baloo Bhaijaan 2', sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .title {
    font-family: 'Tajawal', 'Baloo Bhaijaan 2', sans-serif;
    font-weight: 700;
}

.hero-style3 .hero-title.majoon-hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.hero-style3 .hero-title.majoon-hero-title .majoon-hero-title__accent {
    color: var(--majoon-mint);
}

@media (min-width: 1200px) {
    .hero-style3 .hero-title.majoon-hero-title {
        font-size: 180px;
    }
}

html[lang="ar"] .hero-style3 .hero-title.majoon-hero-title {
    font-family: 'Tajawal', 'Baloo Bhaijaan 2', sans-serif;
}

/* App showcase cards (home + related) */
.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 32px 24px;
    border-radius: 20px;
    background: var(--black-color2, #14132b);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: var(--theme-color, #c5fb00);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.app-card__icon {
    width: 104px;
    height: 104px;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.app-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card__title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.app-card__title a {
    color: var(--white-color, #fff);
}

.app-card__title a:hover {
    color: var(--theme-color, #c5fb00);
}

.app-card__meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-bottom: 18px;
}

.app-card__meta i {
    color: var(--theme-color, #c5fb00);
    margin-inline-end: 4px;
}

.app-card__stores {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: auto;
}

.app-card__stores a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white-color, #fff);
    transition: background .3s ease, color .3s ease;
}

.app-card__stores a:hover {
    background: var(--theme-color, #c5fb00);
    color: #000;
}

/* App screenshots gallery (single app page) */
.app-screenshot {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.app-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-hero__icon {
    width: 140px;
    height: 140px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.app-hero__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.app-store-badges .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Home top slider: match screenshot ratio exactly */
#apps .project-slider3 .swiper-slide {
    width: clamp(180px, 22vw, 280px);
}

#apps .project-slider3 .project-card3 {
    width: 100%;
}

#apps .project-slider3 .project-card3 .project-thumb {
    aspect-ratio: 1290 / 2796;
    height: auto;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
}

#apps .project-slider3 .project-card3 .project-thumb .thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#apps .project-slider3 .project-card3 .project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Pre-footer app icons strip: force clean square icon tiles */
.instagram-area-1 .instagram-card .instagram-thumb {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.instagram-area-1 .instagram-card .instagram-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* New homepage masonry apps section (pure CSS columns) */
.apps-masonry-grid {
    column-count: 4;
    column-gap: 20px;
}

.apps-masonry-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 20px;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease;
}

.apps-masonry-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.apps-masonry-thumb {
    display: block;
    background: rgba(0, 0, 0, 0.25);
}

.apps-masonry-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.apps-masonry-content {
    padding: 16px 16px 18px;
}

.apps-masonry-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
    color: #fff;
}

.apps-masonry-title a {
    color: inherit;
}

.apps-masonry-stickers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-sticker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1;
    color: #fff;
    border: 1px solid transparent;
}

.store-sticker--android {
    background: rgba(61, 220, 132, 0.15);
    border-color: rgba(61, 220, 132, 0.45);
}

.store-sticker--ios {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 1199.98px) {
    .apps-masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 767.98px) {
    .apps-masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 575.98px) {
    .apps-masonry-grid {
        column-count: 1;
    }
}

/* ===================== Legal / Privacy pages ===================== */
.legal-area {
    background: var(--majoon-deep-navy);
    padding: 200px 0 120px;
}

.legal-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
}

.legal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--majoon-warm-cream);
    font-size: 48px;
    line-height: 1.1;
    margin: 0 0 18px;
}

.legal-updated {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--majoon-deep-navy);
    background: var(--majoon-mint);
    padding: 6px 16px;
    border-radius: 999px;
}

.legal-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 245, 230, 0.08);
    border-radius: 20px;
    padding: 48px;
}

.legal-content p {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 245, 230, 0.82);
    font-size: 16px;
    line-height: 2;
    margin: 0;
}

.legal-content strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--majoon-warm-cream);
    font-size: 22px;
    line-height: 1.3;
    margin: 40px 0 12px;
}

.legal-content p > strong:first-child {
    margin-top: 0;
}

.legal-content a {
    color: var(--majoon-mint);
    text-decoration: none;
    border-bottom: 1px solid rgba(38, 208, 179, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
    word-break: break-word;
}

.legal-content a:hover {
    color: var(--majoon-warm-cream);
    border-color: var(--majoon-warm-cream);
}

@media (max-width: 991.98px) {
    .legal-area {
        padding: 170px 0 100px;
    }
}

@media (max-width: 767.98px) {
    .legal-area {
        padding: 150px 0 80px;
    }

    .legal-title {
        font-size: 34px;
    }

    .legal-content {
        padding: 28px 22px;
        border-radius: 16px;
    }

    .legal-content strong {
        font-size: 19px;
    }
}

/* RTL rules are centralized in majoon-rtl.css */
