/* --- ESTILOS BASE --- */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5; /* لون خلفية خفيف جداً */
    color: #333;
    margin: 0;
    padding: 0;
    text-align: left; /* محاذاة النص لليسار (افتراضية للغة الإسبانية) */
    direction: ltr;
    line-height: 1.6;
}

/* --- HEADERS --- */
header {
    background-color: #ffffff;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.site-logo {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
}

header h1 {
    color: #1a73e8; /* لون أزرق مميز */
    font-weight: 700;
    margin: 0 0 5px;
}

header p {
    color: #5f6368;
    font-size: 1.1em;
}

/* --- CONTAINER & CARDS --- */
.app-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px 20px 50px;
}

.app-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 350px; /* زيادة العرض لجعله أكثر احترافية */
    text-align: center;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* تجميع الأيقونة والعنوان */
.app-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18%; /* شكل دائري قليلاً */
    margin-bottom: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-card h2 {
    color: #202124;
    font-size: 1.6em;
    margin: 0;
}

.description {
    font-size: 0.95em;
    color: #5f6368;
    margin-bottom: 20px;
    min-height: 50px; /* لضمان تساوي ارتفاع البطاقات */
}

/* --- DOWNLOAD BUTTONS --- */
.download-section {
    width: 100%;
    margin-bottom: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.material-icons {
    margin-right: 8px;
    font-size: 1.2em;
}

/* زر أخضر (PLAY 1) */
.green-btn {
    background-color: #4CAF50;
    color: white;
}
.green-btn:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

/* زر أزرق (PLAY IBO) */
.blue-btn {
    background-color: #1a73e8;
    color: white;
}
.blue-btn:hover {
    background-color: #1860c9;
    transform: translateY(-1px);
}

/* --- DOWNLOADER CODE BOX --- */
.downloader-box {
    margin-top: 10px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.downloader-box p {
    font-weight: 500;
    color: #5f6368;
    margin: 0 0 10px;
}

.downloader-code-box {
    background-color: #ffffff;
    color: #d93025; /* لون أحمر مميز للرمز */
    font-family: monospace;
    font-size: 1.6em;
    font-weight: 700;
    padding: 8px 5px;
    border: 2px dashed #d93025;
    border-radius: 6px;
    letter-spacing: 2px;
    display: block;
}

.version {
    font-size: 0.85em;
    color: #999;
    margin-top: 15px;
}

/* --- FOOTER --- */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.8em;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .app-card {
        width: 90%;
        margin: 10px 0;
    }
}
/* --- BOTONES ADICIONALES (PLAY MATE y PLAY B) --- */

/* زر أحمر (PLAY MATE) */
.red-btn {
    background-color: #d93025;
    color: white;
}
.red-btn:hover {
    background-color: #c5221f;
    transform: translateY(-1px);
}

/* زر بنفسجي (PLAY B) */
.purple-btn {
    background-color: #7900b3; /* بنفسجي غامق */
    color: white;
}
.purple-btn:hover {
    background-color: #6a009d;
    transform: translateY(-1px);
}
