/* تنسيقات إضافة المحتوى المخفي */
.comment-reveal-container {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.locked-content {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    position: relative;
    overflow: hidden;
}

.locked-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.lock-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    position: relative;
    z-index: 1;
}

.lock-message {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.scroll-to-comments-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.scroll-to-comments-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.scroll-to-comments-btn:active {
    transform: translateY(0);
}

.revealed-content {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 20px;
    animation: fadeInUp 0.6s ease-out;
}

.revealed-content p {
    margin: 0 0 15px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #155724;
}

.revealed-content p:last-child {
    margin-bottom: 0;
}

.revealed-link {
    display: inline-block;
    background: #007bff;
    color: white !important;
    text-decoration: none !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.revealed-link:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    color: white !important;
    text-decoration: none !important;
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيقات متجاوبة */
@media (max-width: 768px) {
    .comment-reveal-container {
        margin: 15px 0;
        padding: 15px;
    }
    
    .locked-content {
        padding: 25px 15px;
    }
    
    .lock-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .lock-message {
        font-size: 16px;
        margin-bottom: 18px;
    }
    
    .scroll-to-comments-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .revealed-content {
        padding: 15px;
    }
    
    .revealed-content p {
        font-size: 14px;
    }
    
    .revealed-link {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* تنسيقات إضافية للتكامل مع الثيمات المختلفة */
.comment-reveal-container * {
    box-sizing: border-box;
}

/* تأثير التحميل */
.comment-reveal-loading {
    opacity: 0.7;
    pointer-events: none;
}

.comment-reveal-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تحسينات إضافية للوضوح */
.comment-reveal-container .revealed-content {
    position: relative;
}

.comment-reveal-container .revealed-content::before {
    content: '✅';
    position: absolute;
    top: -10px;
    right: -10px;
    background: #28a745;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

