/* Neue June Font - You need to add the font files to wwwroot/fonts/ */
@font-face {
    font-family: 'Neue June';
    src: url('/fonts/NeueJune-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue June';
    src: url('/fonts/NeueJune-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue June';
    src: url('/fonts/NeueJune-Medium.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Neue June';
    src: url('/fonts/NeueJune-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --masar-teal-900: #004851;
    --masar-vivid-turquoise-300: #81e1df;
    --deep-pink-500: #903373;
    --neutral-10: #ffffff;
    --neutral-130: #000000;
    
    /* Typography */
    --font-base: 'Neue June', sans-serif;
    --size-01: 14px;
    --size-02: 16px;
    --size-03: 18px;
    --size-04: 20px;
    --size-05: 24px;
    --size-06: 32px;
    --size-07: 40px;
    --size-08: 56px;
    
    --line-height-01: 20px;
    --line-height-02: 22px;
    --line-height-03: 24px;
    --line-height-04: 28px;
    --line-height-05: 36px;
    --line-height-06: 48px;
    --line-height-07: 66px;
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 64px;
    
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-xxl: 40px;
    --radius-full: 9999px;
}

body {
    font-family: var(--font-base);
    color: var(--neutral-130);
    background: #050506;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Default link styles to prevent iOS Safari blue underlined phone numbers */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* RTL Support */
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

body[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

/* Typography Styles */
.h1 {
    font-size: var(--size-08);
    line-height: var(--line-height-07);
    font-weight: 400;
}

.h2 {
    font-size: var(--size-08);
    line-height: var(--line-height-07);
    font-weight: 500;
}

.h6 {
    font-size: var(--size-06);
    line-height: var(--line-height-05);
    font-weight: 500;
}

.p1 {
    font-size: var(--size-04);
    line-height: var(--line-height-03);
    font-weight: 400;
}

.p2 {
    font-size: var(--size-03);
    line-height: var(--line-height-03);
    font-weight: 400;
}

.body-md {
    font-size: var(--size-02);
    line-height: var(--line-height-03);
    font-weight: 400;
}

.body-md-medium {
    font-size: var(--size-02);
    line-height: var(--line-height-03);
    font-weight: 500;
}

/* Layout */
.page-container {
    min-height: 100vh;
    position: relative;
    width: 100%;
}

.content-wrapper {
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
}

/* Navigation */
.navigation {
    background: white;
    border-bottom: 1px solid var(--masar-teal-900);
    height: 136px;
    width: 100%;
    position: relative;
    z-index: 100;
}

.nav-content {
    max-width: 1920px;
    margin: 0 auto;
    height: 100%;
    padding: 0 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* iOS Safari specific fix for logo margin */
@supports (-webkit-touch-callout: none) {
    .nav-content .logo {
        margin-left: 16px;
    }
    
    body[dir="rtl"] .nav-content .logo {
        margin-left: 0;
        margin-right: 16px;
    }
}

.logo {
    height: 70px;
    width: auto;
    color: var(--masar-teal-900);
    background-color: 'red';
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 300;
    color: var(--neutral-130);
}

.breadcrumb-separator {
    width: 1px;
    height: 18px;
    background: var(--neutral-130);
}

.language-switcher {
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: var(--size-03);
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    display: none;
}

.language-switcher:hover {
    background: rgba(0, 0, 0, 0.05);
}

.language-switcher-white {
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.language-switcher-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 60px 65px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    z-index: 10;
}

.footer-copyright {
    font-size: 16px;
    line-height: 23px;
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 16px;
}

.footer-link {
    color: white;
    text-decoration: none;
    line-height: 38px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.social-icon {
    width: 51px;
    height: 51px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Coming Soon Specific */
.coming-soon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.coming-soon-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive background images based on screen width */
@media (max-width: 1920px) {
    .coming-soon-bg img {
        content: url('/images/background-1920.png');
    }
}

@media (min-width: 1921px) {
    .coming-soon-bg img {
        content: url('/images/background-3840.png');
    }
}

.coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #767676 0%, #54003A 100%);
    opacity: 0.7;
    mix-blend-mode: overlay;
}

.coming-soon-radial-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 102.73% 102.73% at 50.00% 50.00%, rgba(0, 0, 0, 0.90) 0%, white 100%);
    opacity: 0.7;
    mix-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: white;
    padding-top: 318px;
}

.hero-title {
    font-size: var(--size-08);
    line-height: 66px;
    font-weight: 400;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: var(--size-04);
    line-height: var(--line-height-03);
    max-width: 588px;
    margin: 0 auto 48px;
}

.coming-soon-badge {
    font-size: var(--size-06);
    line-height: var(--line-height-05);
    font-weight: 500;
    margin-bottom: 16px;
}

/* Email Signup */
.email-signup {
    max-width: 500px;
    margin: 0 auto;
    margin-top: 48px;
}

.email-signup-label {
    font-size: var(--size-03);
    line-height: var(--line-height-03);
    color: white;
    margin-bottom: 16px;
    display: block;
}

.email-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--masar-vivid-turquoise-300);
    border-radius: var(--radius-full);
    padding: 8px 8px 8px 20px;
    gap: 8px;
}

.email-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--size-02);
    line-height: var(--line-height-03);
    font-family: var(--font-base);
    padding: 8px 0;
}

.email-input::placeholder {
    color: var(--neutral-130);
    opacity: 0.5;
}

.send-button {
    background: var(--deep-pink-500);
    color: white;
    border: none;
    border-radius: var(--radius-xxl);
    padding: 8px 24px;
    font-size: var(--size-02);
    font-weight: 500;
    font-family: var(--font-base);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    transition: background 0.3s ease;
}

.send-button:hover {
    background: #7a2c61;
}

/* Content Pages (Privacy, Terms) */
.content-page {
    background: white;
    min-height: 100vh;
}

.content-page body {
    background: white !important;
}

.content-page-bg {
    position: absolute;
    top: 165px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 0;
}

.content-page-inner {
    position: relative;
    z-index: 1;
    max-width: 1920px;
    margin: 0 auto;
    padding: 80px 128px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
}

.sidebar-title {
    font-size: var(--size-08);
    line-height: var(--line-height-07);
    font-weight: 500;
    color: var(--neutral-130);
}

.content-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: var(--size-06);
    line-height: var(--line-height-05);
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--neutral-130);
}

.section-text {
    font-size: var(--size-04);
    line-height: var(--line-height-03);
    font-weight: 400;
    color: var(--neutral-130);
    margin-bottom: 16px;
}

.bullet-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.bullet-list li {
    position: relative;
    padding-left: 37px;
    font-size: var(--size-04);
    line-height: var(--line-height-03);
    margin-bottom: 24px;
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--neutral-130);
    border-radius: 50%;
}

body[dir="rtl"] .bullet-list li {
    padding-left: 0;
    padding-right: 37px;
}

body[dir="rtl"] .bullet-list li::before {
    left: auto;
    right: 0;
}

/* Decorative Circle */
.decorative-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
}

/* Responsive */
@media (min-width: 1025px) and (max-width: 1200px) {
    .footer {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 40px 32px;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 1440px) {
    .content-page-inner {
        padding: 60px 80px;
    }
}

@media (max-width: 1024px) {
    .nav-content {
        padding: 0 32px;
    }
    
    .content-page-inner {
        grid-template-columns: 1fr;
        padding: 40px 32px;
    }
    
    /* Background image adjustments */
    .coming-soon-bg {
        height: 100%;
    }
    
    .coming-soon-bg img {
        object-position: center;
    }
    
    /* Hero content spacing */
    .hero-content {
        padding: 0 32px;
        padding-top: 220px;
        min-height: calc(100vh - 320px);
    }
    
    .hero-title {
        font-size: 48px !important;
        line-height: 56px !important;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 18px !important;
        line-height: 26px !important;
        margin-bottom: 40px;
    }
    
    .email-signup {
        margin-top: 40px;
        margin-bottom: 60px;
    }
    
    /* Social icons */
    .social-icons {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 60px;
        margin-bottom: 40px;
        justify-content: center;
        gap: 16px;
    }
    
    .footer {
        padding: 32px 32px;
        padding-top: 40px;
        padding-bottom: 40px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        position: relative;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    /* Logo positioning */
    .page-container > div:nth-child(2) {
        top: 32px !important;
        width: 140px !important;
        height: 82px !important;
    }
    
    /* Language switcher positioning */
    .page-container > div:nth-child(3) {
        top: 32px !important;
        right: 24px !important;
    }
    
    .language-switcher {
        padding: 4px 12px;
        font-size: 14px;
    }
    
    /* Background image adjustments */
    .coming-soon-bg {
        height: 100%;
    }
    
    .coming-soon-bg img {
        object-position: center;
    }
    
    /* Hero content */
    .hero-content {
        padding: 0 24px;
        padding-top: 180px;
        display: flex;
        flex-direction: column;
        min-height: calc(100vh - 320px);
    }
    
    .hero-title {
        font-size: 40px !important;
        line-height: 48px !important;
        margin-bottom: 20px;
        margin-top: 20px;
    }
    
    .hero-subtitle {
        font-size: 16px !important;
        line-height: 24px !important;
        margin-bottom: 40px;
    }
    
    .coming-soon-badge {
        font-size: 24px !important;
        line-height: 32px !important;
        padding: 8px 16px;
        margin-bottom: 12px;
    }
    
    /* Email signup */
    .email-signup {
        max-width: 100%;
        margin-top: 40px;
        margin-bottom: 60px;
    }
    
    .email-input-wrapper {
        padding: 12px 16px;
    }
    
    .email-input {
        font-size: 14px;
    }
    
    .send-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Footer */
    .footer {
        padding: 24px 24px;
        position: relative;
        margin-top: 0;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .footer-copyright {
        font-size: 14px;
        line-height: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
        font-size: 14px;
    }
    
    /* Social icons */
    .social-icons {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 60px;
        margin-bottom: 40px;
        justify-content: center;
        gap: 20px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    /* Navigation */
    .navigation {
        height: 80px;
    }
    
    .nav-content {
        padding: 0 24px;
    }
    
    .logo {
        height: 50px;
    }
    
    /* RTL specific margin fix for Arabic pages */
    body[dir="rtl"] .nav-content .logo {
        margin-right: 0;
    }
    
    .breadcrumbs {
        display: none;
    }
    
    /* Content pages */
    .sidebar-title {
        font-size: 32px !important;
        line-height: 40px !important;
    }
    
    .section-title {
        font-size: 20px !important;
        line-height: 28px !important;
    }
    
    .section-text {
        font-size: 14px !important;
        line-height: 22px !important;
    }
    
    /* Reduce bullet point font size in mobile */
    .bullet-list li {
        font-size: 14px !important;
        line-height: 22px !important;
    }
    
    .bullet-list li::before {
        top: 6px;
        width: 6px;
        height: 6px;
    }
    
    .content-page-inner {
        padding: 24px 24px;
    }
    
    /* Tables responsive */
    table {
        font-size: 14px !important;
    }
    
    table th,
    table td {
        padding: 8px !important;
        white-space: normal !important;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    
    /* Background image for small screens */
    .coming-soon-bg {
        height: 100%;
    }
    
    .coming-soon-bg img {
        object-position: center center;
    }
    
    .hero-content {
        padding-top: 140px;
        min-height: calc(100vh - 200px);
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-title {
        font-size: 32px !important;
        line-height: 40px !important;
        margin-bottom: 16px;
        margin-top: 16px;
    }
    
    .hero-subtitle {
        font-size: 14px !important;
        line-height: 22px !important;
        margin-bottom: 32px;
    }
    
    .coming-soon-badge {
        font-size: 20px !important;
        line-height: 28px !important;
        padding: 6px 12px;
        margin-bottom: 10px;
    }
    
    .email-signup {
        margin-top: 32px;
        margin-bottom: 50px;
    }
    
    .footer {
        padding: 20px 16px;
        padding-top: 32px;
        padding-bottom: 32px;
    }
    
    .nav-content {
        padding: 0 16px;
    }
    
    .content-page-inner {
        padding: 20px 16px;
    }
    
    .sidebar-title {
        font-size: 28px !important;
        line-height: 36px !important;
    }
    
    .section-title {
        font-size: 18px !important;
        line-height: 26px !important;
    }
    
    /* Make tables responsive without horizontal scroll */
    .content-section table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .content-section table th,
    .content-section table td {
        white-space: normal !important;
        word-wrap: break-word;
        min-width: 100px;
    }
}

/* Blazor Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Blazor Reconnection Modal */
#components-reconnect-modal {
    font-family: var(--font-base);
}

#components-reconnect-modal > div {
    background: var(--neutral-10);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

#components-reconnect-modal h3 {
    font-size: var(--size-05);
    font-weight: 500;
    color: var(--neutral-130);
}

#components-reconnect-modal p {
    font-size: var(--size-02);
    color: #666;
}

#components-reconnect-modal a {
    font-family: var(--font-base);
    font-size: var(--size-02);
    background: var(--masar-teal-900);
    transition: background 0.3s ease;
}

#components-reconnect-modal a:hover {
    background: var(--deep-pink-500);
}
