/* يُسر - تطبيق تحليل النماذج والعملات */
/* iOS Theme - Matching App Design */

/* إعادة تعيين شاملة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #000000; /* Pure Black */
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', 'Cairo', 'Tajawal', 'Arial', sans-serif;
    color: #FFFFFF;
    line-height: 1.6;
    direction: rtl;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* إعادة تعيين أساسية */
.yosr-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.yosr-page {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', 'Cairo', 'Tajawal', 'Arial', sans-serif;
    background: #000000; /* Pure Black - matching iOS app */
    color: #FFFFFF; /* Pure White - matching iOS app */
    line-height: 1.6;
    direction: rtl;
    min-height: 100vh;
}

.yosr-privacy {
    background: #000000;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Top Navigation Header */
.top-nav-header {
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 0.5px solid rgba(142, 142, 147, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.nav-logo-link {
    display: flex;
    align-items: center;
}

.nav-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(0, 122, 255, 0.3));
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #8E8E93;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #FFFFFF;
    background: rgba(0, 122, 255, 0.1);
}

.nav-link.active {
    color: #007AFF;
    background: rgba(0, 122, 255, 0.15);
}

/* Header */
.yosr-header {
    text-align: center;
    padding: 100px 20px 50px;
    animation: fadeInDown 1s ease-in-out;
    background: linear-gradient(180deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.header-logo-container {
    margin-bottom: 30px;
    animation: fadeIn 1.2s ease-in-out;
}

.main-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(0, 122, 255, 0.5));
    transition: transform 0.3s ease;
    animation: pulse 3s ease-in-out infinite;
}

.main-logo:hover {
    transform: scale(1.05);
}

.yosr-tagline {
    font-size: 1.5em;
    opacity: 0.9;
    margin-bottom: 30px;
    font-weight: 400;
    color: #FFFFFF;
}

/* Container */
.yosr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Hero Section */
.yosr-hero {
    text-align: center;
    padding: 50px 30px;
    background: #1C1C1E; /* iOS Dark Surface */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-bottom: 80px;
    animation: fadeIn 1.5s ease-in-out;
    border: 0.5px solid rgba(142, 142, 147, 0.2); /* iOS border style */
}

.yosr-hero h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
    font-weight: 600;
}

.yosr-hero p {
    font-size: 1.3em;
    line-height: 1.9;
    max-width: 850px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.yosr-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.yosr-btn {
    padding: 16px 45px;
    font-size: 17px; /* iOS button text size */
    border: none;
    border-radius: 16px; /* iOS rounded corners */
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.yosr-btn-primary {
    background: #007AFF; /* iOS Blue */
    color: #FFFFFF;
    box-shadow: none; /* iOS style - no elevation */
}

.yosr-btn-primary:hover {
    background: #0A84FF; /* Lighter iOS Blue */
    transform: translateY(-2px);
}

.yosr-btn-secondary {
    background: transparent;
    color: #007AFF; /* iOS Blue */
    border: 1.5px solid #007AFF;
}

.yosr-btn-secondary:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-2px);
}

/* Features Grid */
.yosr-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    margin-bottom: 80px;
    width: 100%;
}

.yosr-feature-card {
    background: #1C1C1E; /* iOS Dark Surface */
    backdrop-filter: blur(10px);
    padding: 45px 35px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 0.5px solid rgba(142, 142, 147, 0.2); /* iOS border style */
    position: relative;
    overflow: hidden;
}

.yosr-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007AFF, #0A84FF); /* iOS Blue gradient */
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.yosr-feature-card:hover::before {
    transform: scaleX(1);
}

.yosr-feature-card:hover {
    transform: translateY(-8px);
    background: #2C2C2E; /* iOS Card Background */
    border-color: rgba(0, 122, 255, 0.4);
}

.yosr-feature-icon {
    font-size: 3.5em;
    margin-bottom: 25px;
    display: block;
    font-weight: 300;
}

.yosr-feature-card h3 {
    font-size: 2em;
    margin-bottom: 18px;
    font-weight: 600;
}

.yosr-feature-card p {
    font-size: 1.1em;
    line-height: 1.8;
    opacity: 0.95;
    font-weight: 300;
}

/* Section Title */
.yosr-section-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 700;
}

.yosr-section-subtitle {
    text-align: center;
    font-size: 1.3em;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 300;
}

/* Accessibility Section */
.yosr-accessibility {
    background: #1C1C1E; /* iOS Dark Surface */
    backdrop-filter: blur(10px);
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 80px;
    border: 0.5px solid rgba(142, 142, 147, 0.2);
}

.yosr-accessibility-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    text-align: right;
}

.yosr-accessibility-item {
    background: #2C2C2E; /* iOS Card Background */
    padding: 30px 25px;
    border-radius: 16px; /* iOS rounded corners */
    transition: all 0.3s ease;
    border: 0.5px solid rgba(142, 142, 147, 0.2);
}

.yosr-accessibility-item:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: scale(1.03);
    border-color: rgba(0, 122, 255, 0.4);
}

.yosr-accessibility-item strong {
    display: block;
    font-size: 1.4em;
    margin-bottom: 12px;
    color: #fff;
    font-weight: 600;
}

.yosr-accessibility-item p {
    font-size: 1.05em;
    line-height: 1.7;
    font-weight: 300;
}

/* Countries Section */
.yosr-countries {
    background: #1C1C1E; /* iOS Dark Surface */
    backdrop-filter: blur(10px);
    padding: 60px 40px;
    border-radius: 20px;
    margin-bottom: 80px;
    border: 0.5px solid rgba(142, 142, 147, 0.2);
}

.yosr-countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.yosr-country-card {
    background: #2C2C2E; /* iOS Card Background */
    padding: 30px 20px;
    border-radius: 16px; /* iOS rounded corners */
    transition: all 0.3s ease;
    text-align: center;
    border: 0.5px solid rgba(142, 142, 147, 0.2);
}

.yosr-country-card:hover {
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-8px);
    border-color: rgba(0, 122, 255, 0.4);
}

.yosr-country-flag {
    font-size: 3.5em;
    margin-bottom: 15px;
}

.yosr-country-card strong {
    display: block;
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: 600;
}

.yosr-country-card p {
    font-size: 1em;
    opacity: 0.9;
    font-weight: 300;
}

/* Footer */
.yosr-footer {
    padding: 50px 40px;
    background: #1C1C1E; /* iOS Dark Surface */
    margin-top: 80px;
    border-top: 0.5px solid rgba(142, 142, 147, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    direction: rtl;
}

.footer-left {
    text-align: right;
    flex: 1;
}

.footer-right {
    text-align: left;
    flex: 1;
    direction: ltr;
}

.yosr-footer p {
    margin: 12px 0;
    opacity: 0.95;
    font-size: 1.05em;
    color: #FFFFFF;
}

.footer-links {
    margin-top: 20px;
}

.yosr-footer a {
    color: #007AFF; /* iOS Blue */
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 122, 255, 0.5);
    transition: all 0.3s ease;
    padding-bottom: 2px;
}

.yosr-footer a:hover {
    border-bottom-color: #0A84FF;
    color: #0A84FF;
}

.footer-organization {
    font-size: 0.95em;
    line-height: 1.8;
}

.footer-organization strong {
    color: #007AFF;
}

.footer-organization span {
    opacity: 0.85;
    font-size: 0.95em;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(0, 122, 255, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(0, 122, 255, 0.6));
    }
}

/* Responsive - Mobile First */
@media (max-width: 768px) {
    /* Navigation */
    .top-nav-header {
        padding: 18px 0;
    }
    
    .nav-container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .nav-logo {
        width: 42px;
        height: 42px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    /* Header */
    .main-logo {
        width: 80px;
        height: 80px;
    }
    
    .yosr-header {
        padding: 60px 15px 30px;
        text-align: center;
    }
    
    .yosr-tagline {
        font-size: 1em;
        padding: 0 20px;
    }
    
    /* Hero Section */
    .yosr-hero {
        padding: 30px 20px;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .yosr-hero h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .yosr-hero p {
        font-size: 0.95em;
        line-height: 1.7;
        text-align: center;
    }
    
    /* Buttons */
    .yosr-cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .yosr-btn {
        width: 100%;
        padding: 13px 25px;
        font-size: 15px;
    }
    
    /* Features */
    .yosr-features {
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .yosr-feature-card {
        padding: 25px 20px;
        text-align: center;
    }
    
    .yosr-feature-icon {
        font-size: 2.8em;
        margin-bottom: 15px;
    }
    
    .yosr-feature-card h3 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }
    
    .yosr-feature-card p {
        font-size: 0.95em;
        line-height: 1.6;
    }
    
    /* Sections */
    .yosr-section-title {
        font-size: 1.8em;
        padding: 0 15px;
        text-align: center;
    }
    
    .yosr-section-subtitle {
        font-size: 1em;
        padding: 0 20px;
        text-align: center;
    }
    
    .yosr-container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Accessibility Section */
    .yosr-accessibility {
        padding: 35px 20px;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .yosr-accessibility-features {
        gap: 15px;
        grid-template-columns: 1fr;
    }
    
    .yosr-accessibility-item {
        padding: 20px 18px;
        text-align: center;
    }
    
    .yosr-accessibility-item strong {
        font-size: 1.1em;
    }
    
    .yosr-accessibility-item p {
        font-size: 0.95em;
        line-height: 1.6;
    }
    
    /* Countries Section */
    .yosr-countries {
        padding: 35px 20px;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .yosr-countries-grid {
        gap: 15px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .yosr-country-card {
        padding: 20px 12px;
    }
    
    .yosr-country-flag {
        font-size: 2.8em;
        margin-bottom: 10px;
    }
    
    .yosr-country-card strong {
        font-size: 1.1em;
    }
    
    .yosr-country-card p {
        font-size: 0.9em;
    }
    
    /* Footer */
    .yosr-footer {
        padding: 35px 20px;
        margin-top: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        max-width: 100%;
        align-items: center;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
        width: 100%;
    }
    
    .footer-right {
        direction: rtl;
    }
    
    .yosr-footer p {
        font-size: 0.95em;
        text-align: center;
    }
    
    .footer-organization {
        font-size: 0.85em;
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
}

/* Privacy Page Styles */
.yosr-privacy {
    background: #000000; /* Pure Black - iOS style */
    min-height: 100vh;
    padding: 0;
}

/* Privacy Page Specific */

.yosr-privacy-container {
    max-width: 950px;
    margin: 40px auto;
    background: #1C1C1E; /* iOS Dark Surface */
    padding: 60px 50px;
    border-radius: 20px; /* iOS rounded corners */
    border: 0.5px solid rgba(142, 142, 147, 0.2);
    color: #FFFFFF; /* Pure White */
    direction: rtl;
    text-align: right;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.privacy-section {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 0.5px solid rgba(142, 142, 147, 0.15);
}

.privacy-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.yosr-privacy-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #007AFF; /* iOS Blue */
}

.yosr-privacy h1 {
    color: #007AFF; /* iOS Blue */
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: 700;
}

.yosr-privacy-date {
    color: #8E8E93; /* iOS Secondary Text */
    font-size: 1em;
    font-style: italic;
    font-weight: 300;
}

.yosr-privacy h2 {
    color: #0A84FF; /* Lighter iOS Blue */
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-right: 3px solid #007AFF; /* iOS Blue */
    padding-right: 20px;
    font-weight: 600;
    text-align: right;
}

.yosr-privacy p {
    margin-bottom: 15px;
    text-align: right;
    line-height: 2;
    font-size: 1.05em;
    color: #FFFFFF; /* Pure White */
    direction: rtl;
}

.yosr-privacy ul {
    margin: 20px 0;
    padding-right: 25px;
    text-align: right;
    direction: rtl;
    list-style: none;
}

.yosr-privacy li {
    margin: 12px 0;
    line-height: 1.9;
    font-size: 1.05em;
    text-align: right;
    padding-right: 25px;
    position: relative;
}

.yosr-privacy li::before {
    content: "•";
    color: #007AFF;
    font-weight: bold;
    font-size: 1.5em;
    position: absolute;
    right: 0;
}

.yosr-privacy strong {
    color: #007AFF; /* iOS Blue */
    font-weight: 600;
}

.yosr-highlight-box {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(10, 132, 255, 0.1));
    border-right: 3px solid #007AFF; /* iOS Blue */
    padding: 25px 30px;
    margin: 25px 0;
    border-radius: 16px; /* iOS rounded corners */
    border: 0.5px solid rgba(0, 122, 255, 0.3);
    text-align: right;
    direction: rtl;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.1);
}

.yosr-highlight-box ul {
    padding-right: 25px;
}

.yosr-contact-box {
    background: linear-gradient(135deg, #2C2C2E, #1C1C1E);
    color: #FFFFFF;
    padding: 35px 40px;
    border-radius: 20px;
    margin-top: 30px;
    text-align: center;
    border: 0.5px solid rgba(0, 122, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.15);
}

.yosr-contact-box h2 {
    color: #007AFF !important; /* iOS Blue */
    border: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

.yosr-contact-box p {
    color: #FFFFFF;
    font-size: 1.1em;
    text-align: center;
}

.yosr-contact-box a {
    color: #007AFF; /* iOS Blue */
    text-decoration: none;
    border-bottom: 2px solid rgba(0, 122, 255, 0.5);
    font-weight: 600;
    transition: all 0.3s ease;
}

.yosr-contact-box a:hover {
    border-bottom-color: #0A84FF;
    color: #0A84FF;
}

.yosr-back-link {
    display: inline-block;
    margin-top: 40px;
    padding: 16px 40px;
    background: #007AFF; /* iOS Blue */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 16px; /* iOS rounded corners */
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 17px; /* iOS button text size */
}

.yosr-back-link:hover {
    background: #0A84FF; /* Lighter iOS Blue */
    transform: translateY(-2px);
}

/* Privacy Page Mobile */
@media (max-width: 768px) {
    .yosr-privacy-container {
        padding: 40px 20px;
        margin: 20px 15px;
        border-radius: 15px;
    }
    
    .yosr-privacy-header {
        margin-bottom: 35px;
        padding-bottom: 25px;
    }
    
    .yosr-privacy h1 {
        font-size: 1.8em;
    }
    
    .yosr-privacy h2 {
        font-size: 1.4em;
        padding-right: 15px;
    }
    
    .yosr-privacy p {
        font-size: 1em;
        line-height: 1.8;
    }
    
    .yosr-privacy li {
        font-size: 1em;
        padding-right: 20px;
    }
    
    .yosr-privacy li::before {
        font-size: 1.3em;
    }
    
    .yosr-highlight-box {
        padding: 20px 25px;
        margin: 20px 0;
    }
    
    .yosr-contact-box {
        padding: 30px 25px;
        margin-top: 25px;
    }
    
    .yosr-contact-box h2 {
        font-size: 1.5em;
    }
    
    .yosr-contact-box p {
        font-size: 0.95em;
    }
    
    .privacy-section {
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
}

/* Extra Small Devices (phones in portrait, less than 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo {
        width: 32px;
        height: 32px;
    }
    
    .nav-links {
        gap: 5px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .main-logo {
        width: 70px;
        height: 70px;
    }
    
    .yosr-tagline {
        font-size: 0.9em;
        padding: 0 15px;
    }
    
    .yosr-hero {
        padding: 25px 15px;
    }
    
    .yosr-hero h2 {
        font-size: 1.3em;
    }
    
    .yosr-hero p {
        font-size: 0.9em;
    }
    
    .yosr-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .yosr-feature-card {
        padding: 20px 15px;
    }
    
    .yosr-feature-icon {
        font-size: 2.5em;
    }
    
    .yosr-feature-card h3 {
        font-size: 1.3em;
    }
    
    .yosr-feature-card p {
        font-size: 0.9em;
    }
    
    .yosr-section-title {
        font-size: 1.6em;
    }
    
    .yosr-section-subtitle {
        font-size: 0.95em;
    }
    
    .yosr-accessibility {
        padding: 25px 15px;
    }
    
    .yosr-accessibility-item {
        padding: 18px 15px;
    }
    
    .yosr-accessibility-item strong {
        font-size: 1em;
    }
    
    .yosr-accessibility-item p {
        font-size: 0.9em;
    }
    
    .yosr-countries {
        padding: 25px 15px;
    }
    
    .yosr-countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .yosr-country-card {
        padding: 18px 10px;
    }
    
    .yosr-country-flag {
        font-size: 2.5em;
    }
    
    .yosr-country-card strong {
        font-size: 1em;
    }
    
    .yosr-country-card p {
        font-size: 0.85em;
    }
    
    .yosr-footer {
        padding: 25px 15px;
    }
    
    .footer-content {
        align-items: center;
    }
    
    .footer-left,
    .footer-right {
        width: 100%;
    }
    
    .yosr-footer p {
        font-size: 0.9em;
        text-align: center;
    }
    
    .footer-organization {
        font-size: 0.8em;
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    /* Privacy Page */
    .yosr-privacy-container {
        padding: 25px 15px;
        margin: 15px 10px;
    }
    
    .yosr-privacy h1 {
        font-size: 1.5em;
    }
    
    .yosr-privacy h2 {
        font-size: 1.2em;
    }
    
    .yosr-privacy p,
    .yosr-privacy li {
        font-size: 0.9em;
    }
}