/* 
 * OX CHART Landing Page Styles
 * تنسيقات صفحة الهبوط لتطبيق OX CHART
 */

:root {
    --primary-color: #0284C7;
    --primary-dark: #036AA1;
    --primary-light: #BFDBFE;
    --secondary-color: #10B981;
    --accent-color: #7C3AED;
    --dark-color: #0F172A;
    --light-color: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --success-color: #10B981;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    --info-color: #3B82F6;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--primary-light);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/grid-pattern.svg');
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    max-width: 180px;
    animation: float 5s ease-in-out infinite;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-light), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.domain {
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    border-radius: 50px;
    margin-bottom: 40px;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.coming-soon {
    margin-top: 50px;
}

.coming-soon span {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--warning-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: inline-block;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

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

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.countdown-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.countdown-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--gray-300);
}

/* Market Ticker */
.market-data {
    background-color: var(--gray-800);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
    z-index: 100;
}

.market-ticker {
    width: 100%;
    overflow: hidden;
}

.ticker-wrapper {
    display: flex;
    animation: ticker 60s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* تكرار العناصر لضمان التكرار المستمر */
.ticker-wrapper > * {
    margin-right: 20px;
}

.ticker-wrapper:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    margin-right: 35px;
    padding: 5px 15px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-item .category {
    background-color: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 8px;
    text-transform: uppercase;
}

.ticker-item:nth-child(4n+1) .category {
    background-color: var(--primary-color);
}

.ticker-item:nth-child(4n+2) .category {
    background-color: var(--secondary-color);
}

.ticker-item:nth-child(4n+3) .category {
    background-color: var(--accent-color);
}

.ticker-item:nth-child(4n+4) .category {
    background-color: var(--warning-color);
}

.ticker-item .symbol {
    font-weight: bold;
    margin-left: 10px;
}

.ticker-item .price {
    margin-left: 10px;
    color: var(--gray-300);
    font-family: 'Cairo', sans-serif;
}

.ticker-item .change {
    font-weight: bold;
}

.ticker-item .change.positive {
    color: var(--success-color);
}

.ticker-item .change.negative {
    color: var(--danger-color);
}

.ticker-loading {
    padding: 0 20px;
    font-style: italic;
    color: var(--gray-400);
}

.loading-pulse {
    display: inline-block;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--gray-100);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    height: 300px;
    perspective: 1500px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: var(--box-shadow);
    border-radius: 10px;
}

.feature-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.card-front {
    background: linear-gradient(120deg, var(--light-color), var(--gray-100));
    border: 1px solid var(--gray-200);
}

.card-back {
    background: linear-gradient(130deg, var(--primary-dark), var(--dark-color));
    color: white;
    transform: rotateY(180deg);
}

.icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-card:hover .icon {
    transform: scale(1.2);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.mini-chart, .mini-visual {
    width: 100%;
    height: 80px;
    margin-top: 15px;
}

.mini-chart canvas {
    width: 100%;
    height: 100%;
}

.scanner-grid {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
}

.scanner-grid::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--danger-color));
    opacity: 0.1;
    z-index: -1;
}

.strategy-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--success-color), var(--primary-color));
}

.education-module {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 4px;
}

.education-module::before {
    content: '';
    position: absolute;
    width: 30%;
    height: 40%;
    background: var(--primary-light);
    border-radius: 3px;
    opacity: 0.2;
    top: 5px;
    left: 5px;
}

.education-module::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 15%;
    background: var(--primary-light);
    border-radius: 3px;
    opacity: 0.2;
    bottom: 5px;
    right: 5px;
}

.news-feed {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.news-feed::before,
.news-feed::after {
    content: '';
    height: 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.news-feed::before {
    width: 100%;
}

.news-feed::after {
    width: 70%;
    margin-top: 5px;
}

/* Live Preview Section */
.live-preview {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--gray-100), var(--light-color));
}

.preview-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.dashboard-preview {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.preview-container:hover .dashboard-preview {
    transform: scale(1.02);
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-container:hover .preview-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.play-button i {
    color: white;
    font-size: 2rem;
    margin-left: 5px; /* Small offset for better visual centering */
}

.play-button:hover {
    transform: scale(1.1);
}

/* Subscribe Section */
.subscribe {
    padding: 80px 0;
    background-color: var(--primary-dark);
    color: var(--light-color);
    position: relative;
}

.subscribe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
}

.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 30px auto;
    position: relative;
}

.email-input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
}

.email-input:invalid:not(:focus):not(:placeholder-shown) {
    border: 1px solid var(--danger-color);
}

.email-input:valid:not(:placeholder-shown) {
    border: 1px solid var(--success-color);
}

.subscribe-button {
    background-color: var(--primary-light);
    color: var(--light-color);
    border: none;
    padding: 0 25px;
    border-radius: 0 5px 5px 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-button:hover {
    background-color: var(--primary-color);
}

.error-message {
    width: 100%;
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    text-align: right;
    min-height: 20px;
}

.privacy-note {
    margin-top: 20px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    width: 60px;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gray-300);
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-info {
    margin-bottom: 20px;
    color: var(--gray-400);
}

.copyright {
    margin-top: 30px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .cards-container {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .email-input {
        border-radius: 50px;
        margin-bottom: 10px;
    }
    
    .subscribe-button {
        border-radius: 50px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: 10px;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 1.5rem;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
}
