/* General Styles */
body {
    font-family: Vazirmatn, sans-serif;
    background: #f9f9f9;
    margin: 0;
    color: #333;
    direction: rtl;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: #ffffff;
    padding: 30px 20px 20px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.header-top {
    text-align: left;
    margin-bottom: 10px;
}

.telegram-button {
    display: inline-block;
    background-color: #0088cc;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.telegram-button:hover {
    background-color: #0072b2;
}

header h1 {
    font-size: 1.8rem;
    margin: 10px 0;
}

header p {
    font-size: 1rem;
    margin-top: 0;
}

/* Download Grid Section */
.downloads {
    padding: 20px 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-card img {
    width: 50px;
    height: auto;
    margin-bottom: 10px;
}

.download-card span {
    font-size: 0.95rem;
    text-align: center;
}

/* Server Files (Dropdown-style with <details>) */
.dropdowns {
    padding: 30px 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.dropdowns h2 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.server-group {
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.server-group summary {
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 10px;
}

.server-group[open] summary {
    margin-bottom: 15px;
}

.server-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.server-group li {
    margin-bottom: 8px;
}

.server-group a {
    color: #0077cc;
    text-decoration: none;
    font-size: 1rem;
}

.server-group a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: #f0f0f0;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
}

footer a {
    color: #0077cc;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Fixes */
@media (max-width: 600px) {
    .telegram-button {
        width: 100%;
        text-align: center;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .download-card span {
        font-size: 0.85rem;
    }
}
