/* --- Features Page (Sitemap Redesign) --- */

:root {
    --feature-bg: #f9f9f9;
    --feature-border: #e9e9ed;
    --feature-title-hover: #f0f2f5;
    --text-primary: #1c1e21;
    --text-secondary: #606770;
    --accent-color: #007AFF;
}

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

.features-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--feature-border);
}

.features-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.features-header h1 i {
    color: var(--accent-color);
    margin-left: 10px;
}

.features-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    background-color: var(--feature-bg);
    border: 1px solid var(--feature-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-title {
    background: none;
    border: none;
    width: 100%;
    text-align: right;
    padding: 20px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background-color 0.2s ease;
}

.feature-title:hover {
    background-color: var(--feature-title-hover);
}

.new-badge {
    background-color: #ff3b30;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 8px;
    margin-right: 10px;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.feature-icon {
    font-size: 20px;
    color: var(--accent-color);
}

.feature-arrow {
    margin-right: auto;
    font-size: 16px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.feature-item.active .feature-arrow {
    transform: rotate(180deg);
}

.feature-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.feature-content.show {
    padding: 0 25px 25px 25px;
}

.feature-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 10px;
    margin-bottom: 10px;
}

.feature-content ul {
    padding-right: 20px;
    list-style-type: '\2728'; /* Sparkle emoji */
}

.feature-content li {
    padding-right: 10px;
    margin-bottom: 12px;
}

.features-footer {
    text-align: center;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 600px) {
    .features-header h1 {
        font-size: 22px;
    }
    .features-header p {
        font-size: 15px;
    }
    .feature-title {
        font-size: 16px;
        padding: 15px;
    }
}