:root {
    --primary-color: #2e8b57;
    --secondary-color: #3cb371;
    --dark-green: #006400;
    --light-green: #90ee90;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --gray: #f0f0f0;
    --border-color: #ddd;
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    direction: rtl;
}

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

.main-header {
    background: linear-gradient(to left, var(--dark-green), var(--primary-color));
    color: var(--white);
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.facebook-link {
    display: inline-block;
    background-color: #3b5998;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 15px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.facebook-link:hover {
    background-color: #2d4373;
}

.facebook-link i {
    margin-left: 5px;
}

.main-nav {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.search-box button:hover {
    background-color: var(--dark-green);
}

.leagues-section {
    margin: 30px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--dark-green);
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.league-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.league-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.league-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: var(--gray);
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.league-card h3 {
    padding: 15px;
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    margin: 0;
    font-size: 1.2rem;
}

.league-details {
    background: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.league-details-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.league-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-left: 20px;
    background: var(--gray);
    padding: 10px;
    border-radius: 8px;
}

.league-title h2 {
    color: var(--dark-green);
    margin-bottom: 5px;
}

.league-title p {
    color: #666;
}

.channels-section {
    margin-top: 30px;
}

.channel-type {
    margin-bottom: 30px;
}

.channel-type h3 {
    background-color: var(--dark-green);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.channels-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.channels-table th, .channels-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
}

.channels-table th {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
}

.channels-table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.channels-table tr:hover {
    background-color: #e6f7e6;
}

.frequency {
    font-family: monospace;
    direction: ltr;
    display: inline-block;
}

.encryption {
    color: #d9534f;
    font-weight: bold;
}

.dish-size {
    color: #5bc0de;
}

.back-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s;
    font-size: 16px;
}

.back-button:hover {
    background-color: var(--dark-green);
}

.main-footer {
    background-color: var(--dark-green);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.main-footer p {
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 14px;
    color: #eee;
    margin-top: 10px;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .leagues-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .league-details-header {
        flex-direction: column;
        text-align: center;
    }
    
    .league-logo {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .channels-table {
        font-size: 13px;
    }
    
    .channels-table th, 
    .channels-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 1.8rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .search-box button {
        border-radius: 5px;
        padding: 10px;
        width: 100%;
    }
    
    .channels-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}