/* Custom Styles for Injaz Platform */

/* Font Face Declarations */
@font-face {
    font-family: 'InjazRegular';
    src: url('../regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InjazMedium';
    src: url('../medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InjazBold';
    src: url('../bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Root Variables */
:root {
    --primary-bg-color: #edebe0;
    --text-color: #988561;
    --secondary-color: #002623;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'InjazRegular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* RTL Support */
html[dir="rtl"] {
    direction: rtl;
}

/* Background Shape */
.background-shape {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.shape-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    align-items: center;
}

/* Content Wrapper */
.content-wrapper {
    padding: 2rem 1rem;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

/* Logo Styles */
.logo-container {
    margin-bottom: 1.5rem;
}

.logo-img {
    max-width: 260px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Arabic Title */
.arabic-title {
    font-family: 'InjazBold', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Screenshot Container */
.screenshot-container {
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    padding: 0.75rem;
}

.screenshot-img {
    border-radius: var(--border-radius);
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.screenshot-img:hover {
    transform: scale(1.02);
}

/* Video Section */
.video-container {
    margin: 1.5rem 0;
}

.video-title {
    font-family: 'InjazMedium', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

/* PDF Section */
.pdf-container {
    margin: 1.5rem 0;
}

.pdf-title {
    font-family: 'InjazMedium', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pdf-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 2px solid #e9ecef;
}

.pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
}

.pdf-download-link {
    text-align: center;
}

.pdf-download-link .btn {
    font-family: 'InjazMedium', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.pdf-download-link .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Visit Button */
.btn-visit {
    background-color: var(--secondary-color);
    color: var(--white);
    font-family: 'InjazMedium', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: inline-block;
}

.btn-visit:hover {
    background-color: #003d36;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn-visit:active {
    transform: translateY(0);
}

/* Responsive Design */

/* Mobile Phones (320px - 576px) */
@media (max-width: 576px) {
    .main-container {
        min-height: 100vh;
    }
    
    .content-wrapper {
        padding: 1rem 0.75rem;
    }
    
    .logo-img {
        max-width: 260px;
    }
    
    .arabic-title {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .video-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .video-container {
        margin: 1rem 0;
    }
    
    .btn-visit {
        font-size: 0.9rem;
        padding: 0.65rem 1.5rem;
        width: 100%;
        max-width: 250px;
    }
    
    .screenshot-container {
        margin: 1rem 0;
        padding: 0.5rem;
    }
    
    .screenshot-img {
        max-height: 150px;
    }
}

/* Small Tablets (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {

    .content-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .logo-img {
        max-width: 260px;
    }
    
    .arabic-title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
    }
    
    .video-title {
        font-size: 1.2rem;
    }
    
    .btn-visit {
        font-size: 0.95rem;
        padding: 0.7rem 1.75rem;
    }
    
    .screenshot-img {
        max-height: 200px;
    }
}

/* Large Tablets (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {

    .content-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .arabic-title {
        font-size: 1.6rem;
    }
    
    .screenshot-img {
        max-height: 250px;
    }
}

/* Desktop (993px - 1200px) */
@media (min-width: 993px) and (max-width: 1200px) {
    .arabic-title {
        font-size: 1.9rem;
    }
    
    .logo-img {
        max-width: 300px;
    }
}

/* Large Desktop (1201px and up) */
@media (min-width: 1201px) {
    .content-wrapper {
        padding: 4rem 2rem;
    }
    
    .arabic-title {
        font-size: 2rem;
    }
    
    .logo-img {
        max-width: 300px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .screenshot-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .screenshot-img,
    .btn-visit {
        transition: none;
    }
    
    .screenshot-img:hover {
        transform: none;
    }
}

/* Focus States for Better Accessibility */
.btn-visit:focus {
    outline: 2px solid var(--text-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .background-shape {
        display: none;
    }
    
    .content-wrapper {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btn-visit {
        background: white;
        color: var(--secondary-color);
        border: 1px solid var(--secondary-color);
    }
}