/* إعدادات المتصفح الافتراضية والخطوط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #111111;
    padding-bottom: 80px; /* لترك مساحة للشريط السفلي الثابت */
}

a {
    text-decoration: none;
    color: inherit;
}

/* التنسيق العلوي - Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 100;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.logo strong {
    font-weight: 700;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.main-nav a:hover, .main-nav a.active {
    opacity: 1;
}

/* حاوية المحتوى الجانبي والوسطي */
.content-wrapper {
    margin-top: 80px;
    padding: 0 40px;
}

/* معرض الصور المعروضة للخط */
.gallery-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
}

.image-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
}

.bg-cream {
    background-color: #f4f4f0;
    padding: 80px 20px;
    text-align: center;
}

.font-specimen {
    font-family: 'Playfair Display', serif;
    font-size: 120px;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 10px;
}

.font-sub {
    font-size: 18px;
    opacity: 0.5;
    font-style: italic;
}

/* قسم تجربة الخطوط - Font Tester */
.font-tester {
    background-color: #fafafa;
    border: 1px solid #eaeaea;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 4px;
}

.tester-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tester-controls select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 14px;
    outline: none;
}

.close-tester {
    font-size: 13px;
    cursor: pointer;
    opacity: 0.5;
}

.tester-input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: #111;
    outline: none;
}

/* الشريط السفلي الثابت - Sticky Action Bar */
.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background-color: #111111;
    color: #ffffff;
    display: flex;
    z-index: 1000;
}

.action-column {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.free-download {
    border-right: 1px solid #222;
    justify-content: space-between;
}

.action-info {
    display: flex;
    flex-direction: column;
}

.action-info strong, .full-link-box strong {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-info span, .full-link-box span {
    font-size: 12px;
    opacity: 0.5;
    margin-top: 2px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #111111;
}

.pay-what-you-want {
    padding: 0;
}

.full-link-box {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    background-color: #1a1a1a;
    transition: background-color 0.2s ease;
}

.full-link-box:hover {
    background-color: #252525;
}

/* توافق التصميم مع الشاشات الصغيرة (الهواتف المحمولة) */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }
    
    .main-nav {
        display: none; /* يمكن استبدالها بقائمة همبرغر مستقبلاً */
    }
    
    .content-wrapper {
        padding: 0 20px;
        margin-top: 60px;
    }
    
    .font-specimen {
        font-size: 70px;
    }
    
    .action-bar {
        flex-direction: column;
        height: auto;
    }
    
    .action-column {
        padding: 15px 20px;
        width: 100%;
    }
    
    .free-download {
        border-right: none;
        border-bottom: 1px solid #222;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    body {
        padding-bottom: 140px;
    }
}
