/* Import Tajawul Font */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

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

body {
    font-family: 'Tajawal', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0b0f1a 0%, #0e1420 50%, #0b0f1a 100%);
    color: #e6e0d0;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7; /* Increased for better readability */
    font-size: 16px; /* Base size for better clarity */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(184, 156, 90, 0.12) 0%, transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(138, 110, 59, 0.08) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(198, 169, 106, 0.06) 0%, transparent 60%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin: 80px 0 60px 0;
}

.slogan {
    margin-bottom: 30px;
    padding: 30px;
    background: rgba(21, 26, 36, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(27, 34, 48, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(5, 8, 14, 0.5);
}

.slogan-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

.slogan-line .english-text {
    background: linear-gradient(45deg, #8a6e3b, #c6a96a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.market-analysis {
    text-align: center;
}

.analysis-title {
    display: block;
    font-size: 1.1rem;
    color: #8b8f99;
    margin-bottom: 15px;
    font-weight: 400;
}

.markets {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.market-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.market-item .english-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b89c5a;
}

.market-item .arabic-text {
    font-size: 0.95rem;
    color: #8b8f99;
    font-weight: 400;
}

.separator {
    color: #8b8f99;
    font-size: 1.2rem;
    margin: 0 5px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 60px 0 30px 0;
    position: relative;
}

.logo-image {
    width: 100px;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 0 20px rgba(184, 156, 90, 0.4));
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(184, 156, 90, 0.6));
}

.logo-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 3.2rem; /* Slightly larger for better clarity */
    font-weight: 800; /* Bolder weight for Tajawul */
    color: #e6e0d0;
    text-shadow: 0 0 28px rgba(184, 156, 90, 0.35);
    letter-spacing: -0.01em; /* Slightly tighter for Arabic */
    line-height: 1.2; /* Better spacing for tall letters */
}

.subtitle {
    font-size: 1.3rem; /* Slightly larger for better readability */
    color: #8b8f99;
    font-weight: 400; /* Regular weight for clarity */
    letter-spacing: 0.5px; /* Better spacing for Arabic text */
}

.links-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.links-grid::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 156, 90, 0.3), transparent);
    margin: 20px 0;
}

.social-link.featured ~ * {
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 25px 30px;
    background: rgba(21, 26, 36, 0.95);
    border: 1px solid rgba(27, 34, 48, 0.9);
    border-radius: 20px;
    text-decoration: none;
    color: #e6e0d0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 156, 90, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(5, 8, 14, 0.6);
    border-color: rgba(184, 156, 90, 0.5);
}

/* Featured Link Styling - Subtle border glow effect */
.social-link.featured {
    background: rgba(21, 26, 36, 0.95);
    border: 1px solid rgba(184, 156, 90, 0.7);
    position: relative;
    margin-bottom: 0;
    padding: 25px 30px;
    box-shadow: 0 0 20px rgba(184, 156, 90, 0.15);
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% {
        box-shadow: 0 0 20px rgba(184, 156, 90, 0.15);
    }
    50% {
        box-shadow: 0 0 25px rgba(184, 156, 90, 0.25);
    }
    100% {
        box-shadow: 0 0 20px rgba(184, 156, 90, 0.15);
    }
}

.social-link.featured::before {
    display: none;
}

.social-link.featured::after {
    content: 'FEATURED';
    position: absolute;
    top: 8px;
    right: 20px;
    background: linear-gradient(45deg, #8a6e3b, #c6a96a);
    color: #05080e;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    border: 1px solid rgba(184, 156, 90, 0.3);
    backdrop-filter: blur(2px);
}

.social-link.featured .icon-container img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.social-link.featured:hover .icon-container img {
    transform: scale(1.05);
}

.social-link .link-info h3 {
    color: #e6e0d0;
    font-size: 1.25rem; /* Slightly larger for clarity */
    margin-bottom: 6px; /* Better spacing */
    font-weight: 600; /* Medium-bold for readability */
    letter-spacing: 0.3px; /* Better for Arabic text */
}

.social-link .link-info p {
    color: #8b8f99;
    font-size: 0.95rem; /* Slightly larger for clarity */
    font-weight: 400; /* Regular weight */
    line-height: 1.5; /* Better line height for readability */
    letter-spacing: 0.2px; /* Better spacing */
}

.social-link.featured:hover {
    background: rgba(21, 26, 36, 0.95);
    border: 1px solid rgba(184, 156, 90, 0.9); /* Stronger border on hover */
    box-shadow: 0 0 30px rgba(184, 156, 90, 0.25); /* Enhanced glow on hover */
    transform: translateY(-5px);
}

.social-link.instagram:hover {
    background: rgba(21, 26, 36, 0.95);
    border-color: rgba(184, 156, 90, 0.55);
}

.social-link.tiktok:hover {
    background: rgba(21, 26, 36, 0.95);
    border-color: rgba(184, 156, 90, 0.55);
}

.social-link.telegram:hover {
    background: rgba(21, 26, 36, 0.95);
    border-color: rgba(184, 156, 90, 0.55);
}

.social-link.youtube:hover {
    background: rgba(21, 26, 36, 0.95);
    border-color: rgba(184, 156, 90, 0.55);
}

.social-link.website:hover {
    background: rgba(21, 26, 36, 0.95);
    border-color: rgba(184, 156, 90, 0.55);
}

.icon-container {
    margin-right: 20px;
}

.icon-container i {
    font-size: 2rem;
    background: linear-gradient(45deg, #8a6e3b, #c6a96a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-link.instagram .icon-container i {
    background: linear-gradient(45deg, #8a6e3b, #c6a96a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-link.tiktok .icon-container i {
    background: linear-gradient(45deg, #8a6e3b, #c6a96a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-link.telegram .icon-container i {
    background: linear-gradient(45deg, #8a6e3b, #c6a96a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-link.youtube .icon-container i {
    background: linear-gradient(45deg, #8a6e3b, #c6a96a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-link.website .icon-container i {
    background: linear-gradient(45deg, #8a6e3b, #c6a96a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.link-info {
    flex: 1;
}

.arrow {
    margin-left: 20px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.arrow i {
    font-size: 1.2rem;
    color: #8b8f99;
}

.social-link:hover .arrow {
    opacity: 1;
    transform: translateX(5px);
}

.social-link:hover .arrow i {
    color: #b89c5a;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding: 40px;
    background: rgba(21, 26, 36, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(27, 34, 48, 0.9);
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-label-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #8a6e3b, #c6a96a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label-arabic {
    font-size: 0.8rem;
    color: #b89c5a;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.3), transparent);
    margin: 40px auto;
    width: 80%;
    max-width: 600px;
}

.footer {
    margin-top: 0;
    padding: 30px 0;
    border-top: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    color: #8b8f99;
    font-size: 0.9rem;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b89c5a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #e6e0d0;
}

.footer-links .separator {
    color: #8b8f99;
    margin: 0;
    font-size: 0.9rem;
}

.footer-icons {
    display: flex;
    gap: 15px;
}

.footer-icons i {
    font-size: 1.2rem;
    color: #b89c5a;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-icons i:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .slogan {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .slogan-line {
        flex-direction: column;
        gap: 10px;
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .markets {
        gap: 12px;
    }
    
    .market-item {
        gap: 6px;
    }
    
    .market-item .english-text {
        font-size: 1rem;
    }
    
    .market-item .arabic-text {
        font-size: 0.85rem;
    }
    
    .separator {
        margin: 0 3px;
        font-size: 1rem;
    }
    
    .logo-image {
        width: 80px;
        height: auto;
        max-height: 80px;
    }
    
    .logo-text {
        font-size: 2.5rem;
    }
    
    .links-grid {
        gap: 15px;
    }
    
    .social-link {
        padding: 20px 25px;
    }
    
    .stats {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
}

/* Additional mobile-friendly styles */
@media (max-width: 480px) {
    /* Improve touch targets and font readability */
    body {
        font-size: 17px; /* Larger base size for mobile */
    }
    
    .social-link {
        min-height: 60px;
        padding: 18px 20px;
    }
    
    .social-link .link-info h3 {
        font-size: 1.3rem; /* Larger titles on mobile */
        margin-bottom: 8px;
    }
    
    .social-link .link-info p {
        font-size: 1rem; /* Larger descriptions */
        line-height: 1.6;
    }
    
    .logo-text {
        font-size: 2.8rem; /* Larger logo text */
    }
    
    .subtitle {
        font-size: 1.4rem; /* Larger subtitle */
    }
    
    /* Better spacing for mobile */
    .header {
        margin: 60px 0 30px 0;
    }
    
    .slogan {
        margin-bottom: 20px;
        padding: 20px 15px;
    }
    
    .links-grid {
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .stats {
        gap: 20px;
        padding: 25px 15px;
        margin-top: 40px;
    }
    
    .footer {
        margin-top: 60px;
        padding: 25px 0;
    }
    
    /* Better font sizing for readability */
    body {
        font-size: 14px;
    }
    
    /* Ensure proper RTL support for Arabic text */
    .arabic-text {
        direction: rtl;
        unicode-bidi: embed;
    }
    
    /* Prevent horizontal overflow */
    .container {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Better tap feedback */
    .social-link:active {
        transform: scale(0.98);
        background: rgba(21, 26, 36, 0.95);
        border-color: rgba(184, 156, 90, 0.4);
    }
}

/* Very small screens */
@media (max-width: 360px) {
    body {
        font-size: 18px; /* Even larger for very small screens */
    }
    
    .slogan-line {
        flex-direction: column;
        gap: 5px;
        font-size: 1rem; /* Larger for small screens */
    }
    
    .logo-text {
        font-size: 2.4rem; /* Adjusted for small screens */
    }
    
    .subtitle {
        font-size: 1.2rem; /* Clear but not too large */
    }
    
    .social-link .link-info h3 {
        font-size: 1.2rem; /* Slightly smaller but still clear */
    }
    
    .social-link .link-info p {
        font-size: 0.95rem; /* Maintains readability */
    }
    
    .markets {
        flex-direction: column;
        gap: 8px;
    }
    
    .separator {
        display: none;
    }
    
    .market-item {
        flex-direction: row;
        gap: 5px;
    }
}
    .container {
        padding: 20px 15px;
    }
    
    .channel-name {
        font-size: 1.2rem;
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .channel-name i {
        font-size: 1.5rem;
    }
    
    .channel-name .arabic-text {
        font-size: 1.1rem;
        margin-left: 8px;
    }
    
    .channel-name .english-text {
        font-size: 0.95rem;
    }
    
    .slogan {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .slogan-line {
        gap: 8px;
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .slogan-line .arabic-text {
        font-size: 1.1rem;
    }
    
    .analysis-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .markets {
        gap: 8px;
    }
    
    .market-item .english-text {
        font-size: 0.9rem;
    }
    
    .market-item .arabic-text {
        font-size: 0.75rem;
    }
    
    .separator {
        margin: 0 2px;
        font-size: 0.9rem;
    }
    
    .logo-image {
        width: 70px;
        height: auto;
        max-height: 70px;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .social-link {
        padding: 15px 20px;
    }
    
    .icon-container i {
        font-size: 1.5rem;
    }
    
    .link-info h3 {
        font-size: 1.1rem;
    }
    
    .stats {
        margin-top: 40px;
    }
}
