/**
 * Pages Styles
 * تنسيقات الصفحات الثابتة
 */

.page-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 100px 0;
    text-align: center;
    color: white;
    margin-bottom: 64px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-image.svg') center/cover no-repeat;
    opacity: 0.1;
    pointer-events: none;
}

.page-hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

.contact-info h2,
.contact-form-container h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.contact-method:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.method-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon svg {
    width: 28px;
    height: 28px;
}

.method-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.method-icon.email {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.method-icon.location {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.method-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.method-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.social-links-large {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-xl);
}

.social-links-large h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-button {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-button svg {
    width: 24px;
    height: 24px;
}

.social-button.facebook {
    background: #1877f2;
    color: white;
}

.social-button.twitter {
    background: #1da1f2;
    color: white;
}

.social-button.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.social-button:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

/* FAQ Page */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Terms & Privacy Pages */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 48px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-color);
}

.content-page h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 40px 0 20px;
}

.content-page h2:first-child {
    margin-top: 0;
}

.content-page h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.content-page p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-page ul,
.content-page ol {
    margin: 16px 0;
    padding-right: 24px;
}

.content-page li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.content-page strong {
    color: var(--text-primary);
    font-weight: 700;
}

.content-page a {
    color: var(--primary-color);
    text-decoration: underline;
}

.content-page a:hover {
    text-decoration: none;
}

.content-footer-meta {
    max-width: 900px;
    margin: 24px auto 0;
}

.last-updated {
    display: inline-block;
    background: #f1f5f9;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* Plugins Page */
.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.plugin-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all 0.3s;
}

.plugin-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.plugin-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-secondary);
}

.plugin-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.plugin-card:hover .plugin-image img {
    transform: scale(1.1);
}

.plugin-content {
    padding: 24px;
}

.plugin-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.plugin-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.plugin-features {
    list-style: none;
    margin-bottom: 20px;
}

.plugin-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.plugin-features li svg {
    width: 16px;
    height: 16px;
    color: var(--success-color);
    flex-shrink: 0;
}

.plugin-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.plugin-price {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .page-hero h1 {
        font-size: 36px;
    }

    .plugins-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 64px 0;
        margin-bottom: 40px;
    }
    
    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero p {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .contact-form-container,
    .content-page {
        padding: 32px 24px;
    }
    
    .plugins-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-methods {
        gap: 12px;
    }

    .contact-method {
        padding: 16px;
    }

    .method-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 48px 0;
        margin-bottom: 32px;
    }

    .page-hero h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .page-hero p {
        font-size: 14px;
    }

    .content-page {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .content-page h2 {
        font-size: 20px;
        margin: 28px 0 14px;
    }

    .contact-form-container {
        padding: 24px 16px;
        border-radius: 20px;
    }

    .social-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links-large {
        padding: 20px 16px;
        text-align: center;
    }

    .content-page h3 {
        font-size: 17px;
    }

    .contact-method {
        padding: 14px;
        gap: 14px;
    }

    .method-icon {
        width: 44px;
        height: 44px;
    }

    .plugin-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Blog page header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 64px 0;
    text-align: center;
    color: white;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }

    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 32px 0;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-header p {
        font-size: 13px;
    }
}

/* Blog section spacing */
.blog-section {
    padding-bottom: 64px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    background: white;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== Store Page ===== */
.store-header { text-align: center; margin-bottom: 48px; }
.store-header h1 { font-size: 42px; font-weight: 900; color: var(--text-primary); margin-bottom: 12px; }
.store-header p { font-size: 16px; color: var(--text-secondary); }

.store-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}
.filter-group { flex: 1; min-width: 200px; }
.filter-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-primary); font-size: 14px; }
.filter-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-group select:focus { outline: none; border-color: var(--primary-color); }
.search-group form { display: flex; gap: 8px; }
.search-group input { flex: 1; padding: 12px; border: 2px solid var(--border-color); border-radius: 10px; font-size: 14px; }
.search-group input:focus { outline: none; border-color: var(--primary-color); }
.search-group button { padding: 12px 20px; background: var(--primary-color); color: white; border: none; border-radius: 10px; cursor: pointer; transition: all 0.3s; }
.search-group button:hover { background: var(--primary-dark); }
.search-group button svg { width: 20px; height: 20px; }

.active-filters { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--primary-color); color: white; border-radius: 20px; font-size: 14px; font-weight: 600; }
.filter-tag a { color: white; text-decoration: none; font-size: 18px; font-weight: 700; line-height: 1; }
.products-count { margin-bottom: 24px; }
.products-count p { color: var(--text-secondary); font-size: 14px; font-weight: 600; }

@media (max-width: 768px) {
    .store-header h1 { font-size: 28px; }
    .store-filters { 
        padding: 16px; 
        gap: 12px; 
        flex-direction: column;
    }
    .filter-group { min-width: unset; width: 100%; }
    .search-group form {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .store-header h1 { font-size: 22px; }
    .store-header p { font-size: 14px; }
    .store-filters { padding: 12px; gap: 10px; }
    .filter-group label { font-size: 12px; margin-bottom: 4px; }
    .filter-group select, 
    .search-group input { padding: 10px; font-size: 13px; }
    .search-group button { padding: 10px 15px; }
}

/* ===== Blog Page ===== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.blog-card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: transform 0.3s; }
.blog-card:hover { transform: translateY(-5px); }
.blog-image { position: relative; height: 200px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-category { position: absolute; top: 15px; right: 15px; background: var(--primary-color); color: white; padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.blog-content { padding: 25px; }
.blog-meta { display: flex; gap: 20px; margin-bottom: 15px; font-size: 14px; color: #666; }
.blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-meta svg { width: 16px; height: 16px; }
.blog-card h3 { font-size: 20px; margin-bottom: 15px; color: #2c3e50; }
.blog-card p { color: #666; line-height: 1.6; margin-bottom: 20px; }
.read-more { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-color); font-weight: 600; text-decoration: none; transition: gap 0.3s; }
.read-more:hover { gap: 12px; }
.read-more svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-card h3 { font-size: 17px; }
    .blog-content { padding: 18px; }
}
@media (max-width: 480px) {
    .blog-image { height: 160px; }
    .blog-meta { gap: 12px; font-size: 12px; }
    .blog-card h3 { font-size: 15px; margin-bottom: 10px; }
    .blog-card p { font-size: 13px; }
    .blog-content { padding: 14px; }
}

/* ===== Blog Post Single ===== */
.blog-post-single { max-width: 800px; margin: 0 auto; }
.post-featured-image { width: 100%; height: 400px; border-radius: 16px; overflow: hidden; margin-bottom: 32px; }
.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.post-header h1 { font-size: 36px; font-weight: 900; color: var(--text-primary); margin-bottom: 16px; line-height: 1.3; }
.post-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 2px solid var(--border-color); }
.meta-item { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 14px; }
.meta-item svg { width: 18px; height: 18px; }
.meta-item.category { background: var(--primary-color); color: white; padding: 6px 12px; border-radius: 20px; }
.post-excerpt { background: var(--bg-secondary); padding: 20px; border-radius: 12px; border-right: 4px solid var(--primary-color); margin-bottom: 32px; font-size: 18px; line-height: 1.8; color: var(--text-secondary); }
.post-content { font-size: 18px; line-height: 1.9; color: var(--text-primary); margin-bottom: 32px; }
.post-content h2 { margin-top: 40px; margin-bottom: 16px; font-size: 28px; }
.post-content h3 { margin-top: 32px; margin-bottom: 12px; font-size: 24px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin-bottom: 20px; padding-right: 24px; }
.post-content li { margin-bottom: 8px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 20px 0; border-top: 1px solid var(--border-color); }
.tag { background: var(--bg-secondary); padding: 6px 12px; border-radius: 6px; font-size: 14px; color: var(--text-secondary); }
.related-posts { margin-top: 64px; padding-top: 32px; border-top: 2px solid var(--border-color); }
.related-posts h2 { font-size: 28px; margin-bottom: 24px; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.post-card { background: white; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; text-decoration: none; transition: all 0.3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.post-card-image { width: 100%; height: 160px; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-content { padding: 16px; }
.post-card-content h3 { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.post-card-content p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }
.post-card-meta { font-size: 12px; color: var(--text-secondary); }

@media (max-width: 768px) {
    .post-featured-image { height: 220px; border-radius: 12px; margin-bottom: 24px; }
    .post-header h1 { font-size: 24px; }
    .post-meta { gap: 12px; }
    .post-excerpt { font-size: 15px; padding: 16px; }
    .post-content { font-size: 16px; }
    .post-content h2 { font-size: 22px; }
    .post-content h3 { font-size: 19px; }
    .related-posts h2 { font-size: 22px; }
    .posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .post-featured-image { height: 180px; }
    .post-header h1 { font-size: 20px; }
    .post-meta { gap: 8px; }
    .meta-item { font-size: 12px; }
    .post-excerpt { font-size: 14px; padding: 12px; }
    .post-content { font-size: 15px; line-height: 1.8; }
    .post-tags { gap: 6px; }
}

/* ===== Star Rating (product review form) ===== */
.star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-rating input[type="radio"] { display: none; }
.star-rating label { font-size: 36px; color: #d1d5db; cursor: pointer; transition: color .15s; line-height: 1; }
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f59e0b; }
.star-rating input:checked ~ label { color: #f59e0b; }

/* ===== Notification slideIn/slideOut animations ===== */
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
