/* CSS مضغوط مع إضافة نظام المشاركة */
.app-store-container{max-width:1200px;margin:0 auto;padding:20px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:#1d1d1f;background:#fff;opacity:0;transition:opacity .3s ease}.app-store-container.loaded{opacity:1}.app-hero{display:flex;gap:30px;padding:30px 0;border-bottom:1px solid #e5e5e7}.app-icon-container{flex-shrink:0;position:relative}.app-icon{width:120px;height:120px;border-radius:22px;box-shadow:0 4px 12px rgba(0,0,0,.1);object-fit:cover;aspect-ratio:1/1;content-visibility:auto;contain-intrinsic-size:120px 120px}.app-info{flex:1}.app-info h1{font-size:28px;font-weight:700;margin:0 0 8px;color:#000}.app-developer{color:#0066cc;font-size:18px;margin:0 0 8px;font-weight:600}.app-category{color:#5d5d5d;font-size:16px;margin:0 0 16px;font-weight:500}.rating-container{display:flex;align-items:center;gap:8px;margin-bottom:16px}.stars{display:flex;gap:2px}.star{color:#e0e0e0;font-size:16px}.star.full{color:#ffb400}.star.half{background:linear-gradient(90deg,#ffb400 50%,#e0e0e0 50%);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.rating-value{font-weight:700;color:#000}.reviews-count{color:#5d5d5d;font-weight:500}.app-badges{display:flex;gap:8px;flex-wrap:wrap}.badge{padding:8px 14px;background:#f8f9fa;border-radius:12px;font-size:13px;font-weight:700;color:#1a1a1a;border:1px solid rgba(0,0,0,.1)}.badge.downloads{background:#0056b3;color:#fff;border:1px solid #004085}.badge.size{background:#000!important;color:#fff!important;border:2px solid #333!important;font-weight:900!important}.badge.version{background:#fd7e14;color:#000;border:1px solid #e46c0a}.download-section{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:160px}.price-tag{font-size:24px;font-weight:700;color:#000;text-shadow:1px 1px 2px hsla(0,0%,100%,.8);background:linear-gradient(135deg,#ffd700,#ffc107);padding:8px 16px;border-radius:20px;border:2px solid #ffa000}.btn-download{display:flex;align-items:center;gap:8px;padding:12px 24px;background:linear-gradient(135deg,#0071e3,#0056b3);color:#fff;border-radius:20px;text-decoration:none;font-weight:700;transition:all .3s ease;border:2px solid #004085;cursor:pointer;width:100%;justify-content:center;text-shadow:0 1px 1px rgba(0,0,0,.2);box-shadow:0 4px 12px rgba(0,86,179,.3)}.btn-download:hover{background:linear-gradient(135deg,#0056b3,#004085);color:#fff;text-decoration:none;transform:translateY(-1px);box-shadow:0 6px 16px rgba(0,86,179,.4)}.btn-share{padding:8px;background:#495057;color:#fff;border:2px solid #343a40;border-radius:50%;cursor:pointer;font-size:18px;transition:all .3s ease;width:40px;height:40px;display:flex;align-items:center;justify-content:center}.btn-share:hover{background:#343a40;color:#fff}.section-title{font-size:22px;font-weight:700;margin:40px 0 20px;color:#212529;border-bottom:3px solid #0056b3;padding-bottom:10px;margin-bottom:25px;position:relative}.section-title:after{content:'';position:absolute;bottom:-3px;left:0;width:60px;height:3px;background:#28a745}.screenshots-gallery{display:flex;gap:16px;overflow-x:auto;padding:10px 0;scrollbar-width:none;-ms-overflow-style:none}.screenshots-gallery::-webkit-scrollbar{display:none}.screenshot-item{flex-shrink:0;border-radius:12px;overflow:hidden;box-shadow:0 4px 12px rgba(0,0,0,.1);transition:transform .2s cubic-bezier(.4,0,.2,1)}.screenshot-item:hover{transform:translateY(-2px)}.screenshot-item img{display:block;width:200px;height:360px;object-fit:cover;aspect-ratio:200/360}.eager-image{content-visibility:auto;contain-intrinsic-size:200px 360px;will-change:transform;display:block;opacity:1;transition:opacity .3s ease}.eager-image.loaded{opacity:1}img[loading=eager]{aspect-ratio:attr(width)/attr(height);content-visibility:auto;contain-intrinsic-size:attr(width) attr(height)}img[fetchpriority=high]{content-visibility:auto;contain-intrinsic-size:attr(width) attr(height)}.reviews-summary{display:flex;gap:40px;margin-bottom:20px;background:#fff;padding:25px;border-radius:12px;border:2px solid #e9ecef}.overall-rating{text-align:center;min-width:120px}.rating-large{font-size:48px;font-weight:700;margin-bottom:8px;color:#000}.rating-bars{flex:1;display:flex;flex-direction:column;gap:8px}.rating-bar{display:flex;align-items:center;gap:8px}.star-count{width:45px;font-size:12px;color:#000;font-weight:700}.bar-container{flex:1;height:4px;background:#dee2e6;border-radius:2px;overflow:hidden;border:1px solid #adb5bd}.bar-fill{height:100%;background:linear-gradient(90deg,#ffb400,#ff8c00);transition:width .3s ease}.percentage{width:35px;font-size:12px;color:#212529;font-weight:700}.btn-write-review{padding:14px 28px;background:#28a745;color:#fff;border:2px solid #1e7e34;border-radius:20px;font-weight:700;cursor:pointer;transition:all .3s ease}.btn-write-review:hover{background:#1e7e34;color:#fff;transform:translateY(-1px);box-shadow:0 4px 12px rgba(40,167,69,.3)}.info-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;background:#fff;padding:25px;border-radius:12px;border:2px solid #e9ecef}.info-item{display:flex;justify-content:space-between;padding:12px 0;border-bottom:2px solid #dee2e6}.info-item:last-child{border-bottom:none}.info-label{color:#5a6268;font-weight:700;background:rgba(108,117,125,.05);padding:4px 8px;border-radius:4px}.info-value{font-weight:700;color:#212529;background:rgba(33,37,41,.03);padding:4px 10px;border-radius:4px}.related-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px}.related-card{display:flex;gap:16px;padding:20px;border-radius:12px;text-decoration:none;color:inherit;transition:all .3s ease;border:2px solid #e9ecef;background:#fff;box-shadow:0 4px 12px rgba(0,0,0,.05)}.related-card:hover{background:#f8f9fa;border-color:#0056b3;transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.1);text-decoration:none;color:inherit}.card-image img{width:60px;height:60px;border-radius:12px;object-fit:cover;flex-shrink:0;aspect-ratio:1/1}.card-content{flex:1}.card-content h3{margin:0 0 4px;font-size:16px;color:#212529;font-weight:700}.card-developer{color:#5a6268;font-size:14px;margin:0 0 8px;font-weight:600}.card-rating{display:flex;align-items:center;gap:4px;margin-bottom:4px}.card-rating .stars{font-size:12px}.card-rating .rating-value{font-size:14px;color:#212529;font-weight:600;background:rgba(255,193,7,.1);padding:2px 6px;border-radius:4px}.card-downloads small{font-size:12px;color:#6c757d;font-weight:600}@media (prefers-reduced-motion:no-preference){.related-card,.screenshot-item,.btn-download,.btn-write-review,.btn-read-more{animation-duration:.3s;animation-timing-function:cubic-bezier(.4,0,.2,1);animation-fill-mode:both}.related-card.animate-in{animation-name:slideInUp}}@keyframes slideInUp{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}@media (prefers-reduced-motion:reduce){*,:before,:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.app-store-container *{box-sizing:border-box}img{max-width:100%;height:auto;vertical-align:middle}.app-icon,.screenshot-item img,.card-image img{aspect-ratio:attr(width)/attr(height)}footer a,#footer a{transition:color .2s ease,background-color .2s ease;will-change:color,background-color}.star.empty{color:#e0e0e0;opacity:.8}.star.full{color:#ffd700;text-shadow:0 0 2px rgba(0,0,0,.3)}.app-developer{background:linear-gradient(90deg,transparent,rgba(0,86,179,.05) 10%,rgba(0,86,179,.05) 90%,transparent);padding:4px 8px;border-radius:6px;display:inline-block}.app-category{background-color:#f8f9fa;padding:4px 10px;border-radius:6px;display:inline-block;border:1px solid #e9ecef}@media (prefers-contrast:high){*{border-color:#000!important}.badge{border:2px solid #000!important}.btn-download,.btn-share,.btn-read-more,.btn-write-review{border:3px solid #000!important}.app-info h1{text-shadow:0 2px 3px rgba(0,0,0,.5)!important}}@media (prefers-contrast:more){.app-info h1{color:#000!important;text-shadow:0 2px 4px rgba(0,0,0,.3)!important}.app-developer{color:#00f!important}.badge{background:#000!important;color:#fff!important}}@media (prefers-reduced-transparency:reduce){*{opacity:1!important}.app-developer,.rating-value,.info-label,.info-value{background:0 0!important}}@media (prefers-color-scheme:dark){.app-store-container{background:#121212;color:#e0e0e0}.app-info h1{color:#fff}.badge{background:#2d3748;color:#fff;border-color:#4a5568}.badge.downloads{background:#2b6cb0;color:#fff}.badge.size{background:#276749;color:#fff}.badge.version{background:#c05621;color:#fff}.info-grid,.reviews-summary,.related-card{background:#1a202c;border-color:#4a5568}.info-label{color:#cbd5e0}.info-value{color:#fff}.section-title{color:#fff;border-color:#2b6cb0}.card-content h3{color:#fff}}@media (prefers-reduced-motion:reduce) and (prefers-contrast:more){.app-store-container{font-size:18px!important}.badge{font-size:16px!important;padding:12px 18px!important}.btn-download,.btn-share,.btn-read-more,.btn-write-review{font-size:18px!important;padding:16px 32px!important}}@media (max-width:768px){.app-store-container{padding:16px}.app-hero{flex-direction:column;text-align:center;gap:20px}.app-icon{width:100px;height:100px}.reviews-summary{flex-direction:column;gap:20px}.info-grid,.related-grid{grid-template-columns:1fr}.app-info h1{font-size:24px;text-shadow:0 2px 3px hsla(0,0%,100%,.7)}.app-developer{font-size:16px}.download-section{min-width:auto;width:100%}.btn-download,.btn-write-review{width:100%;font-size:16px;padding:14px 24px}.screenshot-item img{width:160px;height:288px}.badge{font-size:12px!important;padding:10px 16px!important;margin:4px}}@media (max-width:480px){.app-store-container{padding:12px}.app-hero{padding:20px 0}.section-title{font-size:20px;margin:30px 0 16px}.app-badges{justify-content:center}.related-card{padding:15px}.card-image img{width:50px;height:50px}}@media (prefers-reduced-motion:reduce){.app-store-container,.related-card,.screenshot-item,.btn-download,.btn-share,.btn-read-more,.btn-write-review{transition:none!important}}@media print{.btn-download,.btn-share,.btn-read-more,.btn-write-review{display:none!important}.app-store-container{max-width:none!important;padding:0!important;color:#000!important;background:#fff!important}.badge,.btn-download,.btn-share,.btn-read-more,.btn-write-review{background:#fff!important;color:#000!important;border:1px solid #000!important}}

/* تحسين عرض المحتوى الغني */
.rich-content-full {
    line-height: 1.8;
    color: #212529;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    margin-top: 20px;
}

.rich-content-full h2,
.rich-content-full h3,
.rich-content-full h4 {
    color: #212529;
    margin-top: 25px;
    margin-bottom: 15px;
}

.rich-content-full p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.rich-content-full ul,
.rich-content-full ol {
    margin-bottom: 15px;
    padding-right: 20px;
}

.rich-content-full li {
    margin-bottom: 8px;
}

.rich-content-full table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.rich-content-full table th,
.rich-content-full table td {
    padding: 12px;
    border: 1px solid #e2e8f0;
    text-align: right;
}

.rich-content-full table th {
    background: #f8f9fa;
    font-weight: 600;
}

.rich-content-full img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

.rich-content-full code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* حذف أنماط قديمة */
.content-collapsible,
.content-preview,
.btn-read-more {
    display: none !important;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .rich-content-full {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .rich-content-full {
        padding: 16px;
    }
    
    .rich-content-full h2 {
        font-size: 1.4rem;
    }
    
    .rich-content-full h3 {
        font-size: 1.2rem;
    }
}

/* ******** نظام المشاركة على 21 موقعاً ******** */
/* زر المشاركة العائم */
.btn-share {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #4361ee, #3a56d4) !important;
    border: none !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.4) !important;
    z-index: 999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s !important;
    padding: 0 !important;
}

.btn-share:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.6) !important;
    background: linear-gradient(135deg, #3a56d4, #2e4ac9) !important;
}

.btn-share .share-icon {
    font-size: 28px !important;
}

/* نافذة المشاركة */
.share-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.share-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.share-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.share-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.share-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.share-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* شبكة أزرار المشاركة */
.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    min-height: 100px;
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: transparent;
    color: white;
    text-decoration: none;
}

.share-btn i {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}

.share-btn span {
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* ألوان المواقع */
.facebook-btn:hover { background: #1877f2; }
.twitter-btn:hover { background: #1da1f2; }
.linkedin-btn:hover { background: #0077b5; }
.whatsapp-btn:hover { background: #25d366; }
.telegram-btn:hover { background: #0088cc; }
.medium-btn:hover { background: #00ab6c; }
.reddit-btn:hover { background: #ff4500; }
.quora-btn:hover { background: #b92b27; }
.github-btn:hover { background: #333; }
.producthunt-btn:hover { background: #da552f; }
.youtube-btn:hover { background: #ff0000; }
.pinterest-btn:hover { background: #e60023; }
.tumblr-btn:hover { background: #001935; }
.slideshare-btn:hover { background: #0077b5; }
.devto-btn:hover { background: #0a0a0a; }
.hashnode-btn:hover { background: #2962ff; }
.g2-btn:hover { background: #ff6154; }
.capterra-btn:hover { background: #00b2a9; }
.alternativeto-btn:hover { background: #0088cc; }
.stackoverflow-btn:hover { background: #f48024; }

/* قسم نسخ الرابط */
.copy-link-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
}

.copy-link-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.copy-link-container {
    display: flex;
    gap: 10px;
}

.copy-link-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    direction: ltr;
    text-align: left;
}

.copy-link-btn {
    padding: 12px 25px;
    background: #4361ee;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.copy-link-btn:hover {
    background: #3a56d4;
}

.copy-link-btn.copied {
    background: #4caf50;
}

/* إشعارات */
.share-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #4caf50;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10001;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* للأجهزة المحمولة */
@media (max-width: 768px) {
    .share-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .share-btn {
        min-height: 85px;
        padding: 12px 8px;
    }
    
    .share-btn i {
        font-size: 24px;
    }
    
    .share-btn span {
        font-size: 11px;
    }
    
    .btn-share {
        bottom: 20px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
    
    .share-modal {
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .share-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
