/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600&family=Poppins:wght@400&display=swap');

/* Peyda font - Local font files */
@font-face {
    font-family: 'Peyda';
    src: url('/static/fonts/peydaWeb-extralight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda';
    src: url('/static/fonts/peydaWeb-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda';
    src: url('/static/fonts/PeydaWeb-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda';
    src: url('/static/fonts/PeydaWeb-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda';
    src: url('/static/fonts/PeydaWeb-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda';
    src: url('/static/fonts/PeydaWeb-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda';
    src: url('/static/fonts/PeydaWeb-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda';
    src: url('/static/fonts/PeydaWeb-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

/* Montserrat font - Local font files */
@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Peyda', 'Vazir', sans-serif;
    direction: ltr;
    text-align: right;
    overflow-x: hidden;
    font-feature-settings: "liga" 1, "kern" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    background-color: #000000;
}

/* Main container - Mobile optimized */
.main-container {
    position: relative;
    width: 320px;
    height: 100%;
    margin: 0 auto;
    z-index: 1;
}

/* Black background - Mobile */
.bg-black {
    position: fixed;
    min-width: 100%;
    min-height: 100%;
    background-color: #000000;
    z-index: -2;
    top: 0;
    left: 0;
    right: 0;
}

/* Background gradient - Mobile */
.bg-gradient {
    position: absolute;
    width: 100vw;
    height: 600px;
    background: linear-gradient(to bottom, #000000 22%, #244234 150%);
    transform: rotate(180deg);
    z-index: -1;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

/* Vector decoration - Mobile */
.vector-decoration {
    position: absolute;
    width: 661.125px;
    height: 661.125px;
    top: calc(50% - 468.938px);
    left: calc(50% - 735.438px);
    transform: translate(-50%, -50%);
    background-image: url('/static/images/dashboard/e424e56698e8040ea15cb00fb591ef66289e576c.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Header - Mobile */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    z-index: 10;
}

.header-content {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.13), rgba(0, 0, 0, 0));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 8px 0;
    position: relative;
    top: 0;
    pointer-events: auto;
    width: 100%;
}

.header-container {
    width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 24px;
    max-width: 100%;
}

.logo {
    background-image: url('/static/images/dashboard/52f0ff4d47ca70bed919dfe9fc963c8f0b7704d2.webp');
    background-position: 49.85% 50.12%;
    background-repeat: no-repeat;
    background-size: 169.24% 302.93%;
    height: 32px;
    width: 57px;
    flex-shrink: 0;
}

.nav-bar {
    display: none;
}

/* Hamburger menu button - only show on mobile */
.hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

/* Hide hamburger menu on desktop */
@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
}

.hamburger-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-menu svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.hamburger-menu.active svg {
    transform: rotate(90deg);
}

/* Mobile navigation menu */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    max-height: 300px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
}

.mobile-nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Peyda', sans-serif;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
    direction: rtl;
    text-align: right;
}

.mobile-nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-nav-links a:last-child {
    border-bottom: none;
}

/* Footer - Mobile */
.footer {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
    padding: 24px 24px 32px 24px;
    width: 320px;
    background: linear-gradient(to right, rgba(2, 7, 49, 0.08), rgba(255, 255, 255, 0.1));
    margin-top: 100px;
    clear: both;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.footer-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-end;
    justify-content: flex-start;
    width: auto;
}

.footer-label {
    font-family: 'Peyda', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-align: right;
    line-height: 1.5;
    direction: rtl;
}

.footer-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.footer-value[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.footer-item:nth-child(2) .footer-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-variation-settings: 'wdth' 100, 'wght' 400;
}

.footer-item:nth-child(3) .footer-value {
    display: flex;
    gap: 7px;
    align-items: center;
    white-space: nowrap;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.footer-logo {
    height: 24px;
    width: 216px;
    background-image: url('/static/images/dashboard/ba61a178b0044ceb3c5473284c4b8dead198b652.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer-copyright {
    font-family: 'Peyda', sans-serif;
    font-weight: 400;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    white-space: normal;
    line-height: 1.5;
    direction: rtl;
    width: 100%;
    max-width: 216px;
}

/* Mobile-specific adjustments */
@media (max-width: 320px) {
    .main-container {
        width: 100%;
    }
    
    .header-inner {
        padding: 0 16px;
    }
}

/* Ensure header is always full width on mobile */
@media (max-width: 767px) {
    .header {
        width: 100vw !important;
        max-width: none !important;
    }
    
    .header-content {
        width: 100% !important;
        max-width: none !important;
    }
    
    .header-container {
        width: 100% !important;
        max-width: none !important;
    }
    
    .header-inner {
        width: 100% !important;
        max-width: none !important;
    }
}
